Documentation ¶
Index ¶
- Constants
- func BuildCommandReplaceMapping(filePath string, log logr.Logger) map[string]string
- func CompareInt32(name string, old, new int32, reqLogger logr.Logger) bool
- func CompareIntValue(name string, old, new *int32, reqLogger logr.Logger) bool
- func CompareStringValue(name string, old, new string, reqLogger logr.Logger) bool
- func Int32(v *int32) int32
- func IsClusterScoped() bool
- func MergeLabels(allLabels ...map[string]string) map[string]string
- func Round(num float64) int
- func SetClusterScoped(namespace string)
- func ShoudManage(meta metav1.Object) bool
- func SliceJoin(a []Stringer, sep string) string
- type Stringer
Constants ¶
View Source
const ( // AnnotationScope annotation name for defining instance scope. Used for specifying cluster wide clusters. // A namespace-scoped operator watches and manages resources in a single namespace, whereas a cluster-scoped operator watches and manages resources cluster-wide. AnnotationScope = "redis.kun/scope" //AnnotationClusterScoped annotation value for cluster wide clusters. AnnotationClusterScoped = "cluster-scoped" )
Variables ¶
This section is empty.
Functions ¶
func BuildCommandReplaceMapping ¶ added in v0.2.0
buildCommandReplaceMapping reads the config file with the command-replace lines and build a mapping of bad lines are ignored silently
func CompareInt32 ¶ added in v0.2.1
func CompareIntValue ¶ added in v0.2.1
func CompareStringValue ¶ added in v0.2.1
func IsClusterScoped ¶ added in v0.2.0
func IsClusterScoped() bool
func MergeLabels ¶
MergeLabels merges all the label maps received as argument into a single new label map.
func SetClusterScoped ¶ added in v0.2.0
func SetClusterScoped(namespace string)
func ShoudManage ¶ added in v0.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.