Documentation ¶
Index ¶
- func AddAnnotation(obj Annotated, annotationKey string, annotationValue string)
- func AddHashAnnotation(obj Annotated, annotationKey string)
- func AddLabel(obj Labeled, labelKey string, labelValue string)
- func CompareAnnotations(r1, r2 Annotated, annotationKey string) bool
- func CreatedByK8ssandraControllerLabels(klusterKey client.ObjectKey) map[string]string
- func DeepHashString(obj interface{}) string
- func GetAnnotation(component Annotated, annotationKey string) string
- func GetLabel(component Labeled, labelKey string) string
- func HasAnnotationWithValue(component Annotated, annotationKey string, annotationValue string) bool
- func HasLabelWithValue(component Labeled, labelKey string, labelValue string) bool
- func IsCreatedByK8ssandraController(component Labeled, klusterKey client.ObjectKey) bool
- func IsManagedBy(component Labeled, klusterKey client.ObjectKey) bool
- func ManagedByLabels(klusterKey client.ObjectKey) map[string]string
- func MergeMap(sources ...map[string]string) map[string]string
- func SetManagedBy(component Labeled, klusterKey client.ObjectKey)
- func SliceContains(slice []string, s string) bool
- type Annotated
- type Labeled
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnnotation ¶
func AddHashAnnotation ¶
func CompareAnnotations ¶
func CreatedByK8ssandraControllerLabels ¶
CreatedByK8ssandraControllerLabels 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 DeepHashString ¶
func DeepHashString(obj interface{}) string
func GetAnnotation ¶
func HasAnnotationWithValue ¶
func HasLabelWithValue ¶
func IsCreatedByK8ssandraController ¶
IsCreatedByK8ssandraController returns true if this component was created by the k8ssandra-cluster controller, and belongs to the K8ssandraCluster resource specified by klusterKey. klusterKey referns to the namespace and name of the K8ssandraCluster.
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 ManagedByLabels ¶
ManagedByLabels returns the labels used to identify a component managed by K8ssandra. klusterKey specifies the namespace and name of the K8ssandraCluster.
func MergeMap ¶
MergeMap will take two or more maps, merging the entries of the sources map into a destination map. If both maps share the same key then destination's value for that key will be overwritten with what's in source.
func SetManagedBy ¶
SetManagedBy sets the required labels for making a component managed by K8ssandra. klusterKey specifies the namespace and name of the K8ssandraCluster.