Documentation ¶
Overview ¶
Package kmeta provides Knative utilities for operating on Kubernetes resources' ObjectMeta.
Index ¶
- func MakeGenerationLabelSelector(om metav1.ObjectMetaAccessor) labels.Selector
- func MakeGenerationLabels(om metav1.ObjectMetaAccessor) labels.Set
- func MakeOldGenerationLabelSelector(om metav1.ObjectMetaAccessor) labels.Selector
- func MakeOldVersionLabelSelector(om metav1.ObjectMetaAccessor) labels.Selector
- func MakeVersionLabelSelector(om metav1.ObjectMetaAccessor) labels.Selector
- func MakeVersionLabels(om metav1.ObjectMetaAccessor) labels.Set
- func NewControllerRef(obj OwnerRefable) *metav1.OwnerReference
- type OwnerRefable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeGenerationLabelSelector ¶
func MakeGenerationLabelSelector(om metav1.ObjectMetaAccessor) labels.Selector
MakeGenerationLabelSelector constructs a selector for subresources instantiated at this version of the parent resource. This keys off of the labels populated by MakeGenerationLabels.
func MakeGenerationLabels ¶
func MakeGenerationLabels(om metav1.ObjectMetaAccessor) labels.Set
MakeGenerationLabels constructs a set of labels to apply to subresources instantiated at this version of the parent resource, so that we can efficiently select them.
func MakeOldGenerationLabelSelector ¶
func MakeOldGenerationLabelSelector(om metav1.ObjectMetaAccessor) labels.Selector
MakeOldGenerationLabelSelector constructs a selector for subresources instantiated at an older version of the parent resource. This keys off of the labels populated by MakeGenerationLabels.
func MakeOldVersionLabelSelector ¶
func MakeOldVersionLabelSelector(om metav1.ObjectMetaAccessor) labels.Selector
MakeOldVersionLabelSelector constructs a selector for subresources instantiated at an older version of the parent resource. This keys off of the labels populated by MakeVersionLabels.
func MakeVersionLabelSelector ¶
func MakeVersionLabelSelector(om metav1.ObjectMetaAccessor) labels.Selector
MakeVersionLabelSelector constructs a selector for subresources instantiated at this version of the parent resource. This keys off of the labels populated by MakeVersionLabels.
func MakeVersionLabels ¶
func MakeVersionLabels(om metav1.ObjectMetaAccessor) labels.Set
MakeVersionLabels constructs a set of labels to apply to subresources instantiated at this version of the parent resource, so that we can efficiently select them.
func NewControllerRef ¶
func NewControllerRef(obj OwnerRefable) *metav1.OwnerReference
NewControllerRef creates an OwnerReference pointing to the given controller.
Types ¶
type OwnerRefable ¶
type OwnerRefable interface { metav1.ObjectMetaAccessor // GetGroupVersionKind returns a GroupVersionKind. The name is chosen // to avoid collision with TypeMeta's GroupVersionKind() method. // See: https://issues.k8s.io/3030 GetGroupVersionKind() schema.GroupVersionKind }
OwnerRefable indicates that a particular type has sufficient information to produce a metav1.OwnerReference to an object.