# 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.
CompareVersion takes vx.y.z, vx.y.z -> bool: if v1 is larger than v2.
Contains returns whether the sub-string is contained.
CreateCsMaps will create a empty common-service-maps configmap if not exists.
deleteConfigMap deletes ConfigMap by name and namespace.
DisableMaintenanceMode disables maintenance mode for CommonService CR.
EnableMaintenanceMode enables maintenance mode for CommonService CR.
EnsureLabelsForConfigMap ensures that the specifc ConfigMap has the certain labels.
No description provided by the author
No description provided by the author
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.
GetCsScope fetches the namespaces from its own requested-from-namespace and map-to-common-service-namespace.
GetExcludedScope fetches the namespaces, which are not part of existing tenant scope, and exists in the common-service-maps ConfigMap.
No description provided by the author
GetMaintenanceMode gets maintenance mode for CommonService CR.
GetMasterNs gets MasterNamespaces of deploying Common Services.
GetNssCmNs gets namespaces from namespace-scope ConfigMap.
GetOperatorName return the operator name.
GetOperatorNamespace returns the namespace the operator should be running in.
GetPV Get PersistentVolumes name.
GetRequestNs gets requested-from-namespace of map-to-common-service-namespace.
No description provided by the author
GetScopenWatcher return whether scope watcher is enabled.
migrateConfigMap migrates ConfigMap from one namespace to another.
Namespacelize adds the namespace specified.
NewUnstructured return Unstructured object.
NewUnstructuredList return UnstructuredList object.
ObjectToYaml converts object to yaml string.
No description provided by the author
Reverse resverses the string.
ScaleDeployment scales the deployment.
No description provided by the author
TurnOffRouteChangeInMgmtIngress set multipleInstancesEnabled to false for ibm-management-ingress-operator in CommonService CR.
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.
UpdateNsToNSS update a list of namesapces into NamespaceScope CR.
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