restmapper

package
v0.0.0-...-70aa31a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllGroups

func AllGroups(*metav1.APIGroup) bool

AllGroups predicate which permits all groups

func KubernetesAppsGroup

func KubernetesAppsGroup(group *metav1.APIGroup) bool

KubernetesAppsGroup checks if APIGroup is the Kubernetes' "apps" group Deployment and Daemonset resources are sitting here.

func KubernetesCoreGroup

func KubernetesCoreGroup(group *metav1.APIGroup) bool

KubernetesCoreGroup checks if APIGroup is the Kubernetes' "core" ("legacy") group ConfigMaps, Secrets, and other Kube native resources sit here. ref: https://kubernetes.io/docs/reference/using-api/#api-groups

func KubernetesPolicyGroup

func KubernetesPolicyGroup(group *metav1.APIGroup) bool

KubernetesPolicyGroup checks if APIGroup is the Kubernetes' "apps" group PodDisruptionBudget is sitting here.

func NewPartialRestMapperProvider

func NewPartialRestMapperProvider(groupFilterPredicate GroupFilterPredicate) func(c *rest.Config, httpClient *http.Client) (meta.RESTMapper, error)

NewPartialRestMapperProvider returns configured 'partial' rest mapper provider intended to be used with controller-runtime manager. Takes GroupFilterPredicate as an argument for filtering out APIGroups during discovery procedure.

func OpenshiftConfigGroup

func OpenshiftConfigGroup(group *metav1.APIGroup) bool

OpenshiftConfigGroup checks if APIGroup is openshift-specific "config.openshift.io"

func OpenshiftOperatorGroup

func OpenshiftOperatorGroup(group *metav1.APIGroup) bool

OpenshiftOperatorGroup checks if APIGroup is openshift-specific "operator.openshift.io"

Types

type GroupFilterPredicate

type GroupFilterPredicate func(*metav1.APIGroup) bool

GroupFilterPredicate filters group during discovery process

func Or

Or combines passed predicate functions in a way to implement logical OR between them.

type RESTMapperProvider

type RESTMapperProvider func(c *rest.Config) (meta.RESTMapper, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL