workloadselector

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkloadSelector

type WorkloadSelector struct {
	KubeClient kubernetes.Interface
}

WorkloadSelector type for accessing functions

func (*WorkloadSelector) DoesWorkloadMatch

func (w *WorkloadSelector) DoesWorkloadMatch(workload *unstructured.Unstructured, namespaceSelector *metav1.LabelSelector, objectSelector *metav1.LabelSelector, apiGroups []string, apiVersions []string, resources []string) (bool, error)

DoesWorkloadMatch returns a boolean indicating whether an unstructured resource matches any of the criteria for a match. The criteria used to match is a namespace label selector, object label selector, and group, version, and kind of resource.

Jump to

Keyboard shortcuts

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