Documentation ¶
Index ¶
- func AddLabel(obj Labeled, labelKey string, labelValue string)
- func GetLabel(component Labeled, labelKey string) string
- func HasLabel(component Labeled, labelKey string) bool
- func HasLabelWithValue(component Labeled, labelKey string, labelValue string) bool
- func IsManagedBy(component Labeled, klusterKey client.ObjectKey) bool
- func IsOwnedByK8ssandraController(component Labeled) bool
- func IsPartOf(component Labeled, klusterKey client.ObjectKey) bool
- func ManagedByLabels(klusterKey client.ObjectKey) map[string]string
- func PartOfLabels(klusterKey client.ObjectKey) map[string]string
- func SetManagedBy(component Labeled, klusterKey client.ObjectKey)
- type Labeled
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasLabelWithValue ¶
func IsManagedBy ¶
IsManagedBy checks whether the given component is managed by K8ssandra, and belongs to the K8ssandraCluster resource specified by klusterKey which specifies the namespace and name of the K8ssandraCluster.
func IsOwnedByK8ssandraController ¶
IsOwnedByK8ssandraController returns true if this component was created by the k8ssandra-cluster controller.
func IsPartOf ¶
IsPartOf returns true if this component was created by the k8ssandra-cluster controller, and belongs to the K8ssandraCluster resource specified by klusterKey. klusterKey refers to the namespace and name of the K8ssandraCluster.
func ManagedByLabels ¶
ManagedByLabels returns the labels used to identify a component managed by K8ssandra. klusterKey specifies the namespace and name of the K8ssandraCluster.
func PartOfLabels ¶
PartOfLabels returns the labels used to identify a component created by the k8ssandra-cluster controller, and belonging to the K8ssandraCluster resource specified by klusterKey, which is namespace and name of the K8ssandraCluster.
func SetManagedBy ¶
SetManagedBy sets the required labels for making a component managed by K8ssandra. klusterKey specifies the namespace and name of the K8ssandraCluster.