Documentation ¶
Index ¶
- func AllGroups(*metav1.APIGroup) bool
- func KubernetesAppsGroup(group *metav1.APIGroup) bool
- func KubernetesCoreGroup(group *metav1.APIGroup) bool
- func KubernetesPolicyGroup(group *metav1.APIGroup) bool
- func NewPartialRestMapperProvider(groupFilterPredicate GroupFilterPredicate) func(c *rest.Config, httpClient *http.Client) (meta.RESTMapper, error)
- func OpenshiftConfigGroup(group *metav1.APIGroup) bool
- func OpenshiftOperatorGroup(group *metav1.APIGroup) bool
- type GroupFilterPredicate
- type RESTMapperProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubernetesAppsGroup ¶
KubernetesAppsGroup checks if APIGroup is the Kubernetes' "apps" group Deployment and Daemonset resources are sitting here.
func KubernetesCoreGroup ¶
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 ¶
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 ¶
OpenshiftConfigGroup checks if APIGroup is openshift-specific "config.openshift.io"
func OpenshiftOperatorGroup ¶
OpenshiftOperatorGroup checks if APIGroup is openshift-specific "operator.openshift.io"
Types ¶
type GroupFilterPredicate ¶
GroupFilterPredicate filters group during discovery process
func Or ¶
func Or(predicates ...GroupFilterPredicate) GroupFilterPredicate
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)