# Functions
CheckMultiInstance checks whether it is a MultiInstances including SaaS and on-prem MultiInstances.
CheckSaas checks whether it is a SaaS deployment for Common Services.
CheckStorageClass gets StorageClassList in current cluster, then validates whether StorageClass created.
No description provided by the author
CompareVersion takes vx.y.z, vx.y.z -> bool: if v1 is larger than v2.
Contains returns whether the sub-string is contained.
EncodeBase64 encodes data to base64 string.
EnsureLabels ensures that the specifc resource has the certain labels.
EnsureLabelsForConfigMap ensures that the specifc ConfigMap has the certain labels.
EnsureLabelsForConfigMap ensures that the specifc ConfigMap has the certain labels.
FieldIndexName constructs the name of the index over the given field, for use with an indexer.
No description provided by the author
GetCatalogSource gets CatalogSource will be used by operators.
GetCmOfMapCs gets ConfigMap of Common Services Maps.
GetCmOfNss gets ConfigMap of Namespace-scope.
GetControlNs gets control namespace of deploying cluster scope services.
GetCPFSNamespace returns the namespace where foundational services operator should be running.
GetCsScope fetchs the namespaces from its own requested-from-namespace and map-to-common-service-namespace.
GetEnableOpreqWebhook check if enable the webhook for the OperandRequest.
No description provided by the author
No description provided by the author
GetNssCmNs gets namespaces from namespace-scope ConfigMap.
GetNSSCMSynchronization returns whether NSS ConfigMap shchronization with OperatorGroup is enabled.
GetOperatorName return the operator name.
GetOperatorNamespace returns the namespace the operator should be running in.
No description provided by the author
GetRequestNs gets requested-from-namespace of map-to-common-service-namespace.
No description provided by the author
GetServicesNamespace returns the namespace where foundational services CRs should be running.
GetWatchNamespace returns the list of namespaces that the operator watches.
KeyToNamespacedKey prefixes the given index key with a namespace for use in field selector indexes.
Namespacelize adds the namespace specified.
NewCSCache implements a customized cache with a for CS.
NewUnstructured return Unstructured object.
NewUnstructuredList return UnstructuredList object.
No description provided by the author
ReadFile reads file from local path.
No description provided by the author
Reverse resverses the string.
SanitizeData keep the key-value pair in the map if the value fulfill the valueType and requirement.
UpdateAllNSList updates all adopter and CS namespaces into NSS CR.
UpdateCsMaps will update namespaceMapping in common-service-maps.
UpdateNSList updates adopter namespaces of Common Services.
No description provided by the author
ValidateCsMaps checks common-service-maps has no scope overlapping.
YamlToObject converting large yaml file, we can remove it after using "apimachinery" v0.19.0.
YamlToObjects convert YAML content to unstructured objects.
# Variables
No description provided by the author