Documentation
¶
Index ¶
Constants ¶
const ( OperatorGeneratedAnno = "ibm-cert-manager-operator-generated" ProperV1Label = "ibm-cert-manager-operator/conditionally-generated-v1" RefreshCALabel = "ibm-cert-manager-operator/refresh-ca-chain" ManageCertRotationLabel = "manage-cert-rotation" )
Labels and Annotations added by this operator
const ( // OperatorNameEnvVar is the constant for env variable OPERATOR_NAME // which is the name of the current operator OperatorNameEnvVar = "OPERATOR_NAME" // OperatorNamespaceEnvVar is the constant for env variable OPERATOR_NAMESPACE // which is the namespace of the current operator OperatorNamespaceEnvVar = "OPERATOR_NAMESPACE" // UseExistingCluster is the constant for env variable USE_EXISTING_CLUSTER // it used to control unit test run into existing cluster or kubebuilder UseExistingCluster = "USE_EXISTING_CLUSTER" // Default CS CR MasterCR = "common-service" // CS main namespace MasterNamespace = "ibm-common-services" // CS kind KindCR = "CommonService" // CS api version APIVersion = "operator.ibm.com/v3" // Cluster Operator namespace ClusterOperatorNamespace = "openshift-operators" // CS map configMap CsMapConfigMap = "common-service-maps" // CS map configMap namespace CsMapConfigMapNs = "kube-public" // CS Saas configMap SaasConfigMap = "saas-config" // Namespace Scope Operator resource name NsSubResourceName = "nsSubscription" // Namespace Scope Operator sub name NsSubName = "ibm-namespace-scope-operator" // NamespaceScope CRs kind NssKindCR = "NamespaceScope" // NamespaceScope CRs api version NssAPIVersion = "operator.ibm.com/v1" // NamespaceScopeConfigmapName is the name of ConfigMap which stores the NamespaceScope Info NamespaceScopeConfigmapName = "namespace-scope" // NssCRFinalizer is the name for the finalizer to allow for deletion NssCRFinalizer = "finalizer.nss.operator.ibm.com" // Namespace Scope Operator Restricted resource name NsRestrictedSubResourceName = "nsRestrictedSubscription" // Namespace Scope Operator Restricted sub name NsRestrictedSubName = "ibm-namespace-scope-operator-restricted" //DefaultRequeueDuration is the default requeue time duration for request DefaultRequeueDuration = 20 * time.Second //CsMapsLabel is the label used to label the configmaps are managed by cs operator CsManagedLabel = "operator.ibm.com/managedByCsOperator" //CatalogsourceNs is the namespace of the catalogsource CatalogsourceNs = "openshift-marketplace" //CSCatalogsource is the name of the common service catalogsource CSCatalogsource = "opencloud-operators" //IBMCatalogsource is the names of the ibm catalogsource IBMCatalogsource = "ibm-operator-catalog" //Certified is the names of the ibm catalogsource CertifiedCatalogsource = "certified-operators" //Community is the names of the ibm catalogsource CommunityCatalogsource = "community-operators" //RedhatMarketplace is the names of the ibm catalogsource RedhatMarketplaceCatalogsource = "redhat-marketplace" //Redhat is the names of the ibm catalogsource RedhatCatalogsource = "redhat-operators" //IBMCSPackage is the package name of the ibm common service operator IBMCSPackage = "ibm-common-service-operator" //IBMODLMSPackage is the package name of the ODLM operator IBMODLMPackage = "operand-deployment-lifecycle-manager-app" //IBMNSSPackage is the package name of the namespace scope operator IBMNSSPackage = "ibm-namespace-scope-operator" // DevBuildImage is regular expression of the image address of internal dev build for testing DevBuildImage = `^hyc\-cloud\-private\-(.*)\-docker\-local\.artifactory\.swg\-devops\.com\/ibmcom\/ibm\-common\-service\-catalog\:(.*)` // BedrockCatalogsourcePriority is an annotation defined in the catalogsource BedrockCatalogsourcePriority = "bedrock_catalogsource_priority" // CSCACertificate is the name of cs-ca-certificate CSCACertificate = "cs-ca-certificate" // CertManagerSub is the name of ibm-cert-manager-operator subscription CertManagerSub = "ibm-cert-manager-operator" // CsClonedFromLabel is the label used to label the CommonService CR are cloned from the default CR in operatorNamespace CsClonedFromLabel = "operator.ibm.com/common-services.cloned-from" // IBMCPPCONFIG is the name of ibm-cpp-config ConfigMap IBMCPPCONFIG = "ibm-cpp-config" // OpregAPIGroupVersion is the api group version of OperandRegistry OpregAPIGroupVersion = "operator.ibm.com/v1alpha1" // OpregKind is the kind of OperandRegistry OpregKind = "OperandRegistry" // OpconKind is the kind of OperandConfig OpconKind = "OperandConfig" // SubscriptionAPIGroupVersion is the api group version of Subscription SubscriptionAPIGroupVersion = "operators.coreos.com/v1alpha1" // SubscriptionKind is the kind of Subscription SubscriptionKind = "Subscription" // DefaultHugePageAllocation is the default huge page allocation DefaultHugePageAllocation = "100Mi" // WebhookServiceName is the name of the webhook service used for v3 operator WebhookServiceName = "ibm-common-service-webhook" Secretshare = "secretshare" // Some WebhookConfigurations CSWebhookConfig = "ibm-common-service-webhook-configuration" OperanReqConfig = "ibm-operandrequest-webhook-configuration" CSMappingConfig = "ibm-cs-ns-mapping-webhook-configuration" // RequeueDuration is the requeue time duration for request RequeueDuration = 30 * time.Second // OpreqLabel is the label used to label the Subscription/CR/Configmap managed by ODLM OpreqLabel string = "operator.ibm.com/opreq-control" // CSPGCluster is the name of the common service postgresql cluster CSPGCluster = "common-service-db" // PGClusterGroup is the name of the common service postgresql cluster group PGClusterGroup = "postgresql.k8s.enterprisedb.io" // PGClusterKind is the kind of the common service postgresql cluster PGClusterKind = "Cluster" // PostgreSQLImageConfigMap is the name of the postgresql image list ConfigMap deployed with Postgres Operator PostgreSQLImageConfigMap = "cloud-native-postgresql-operand-images-config" // CSPostgreSQLImageConfigMap is the name of the postgresql image list ConfigMap deployed by Common Service Operator CSPostgreSQLImageConfigMap = "cloud-native-postgresql-image-list" // PostgreSQL16ImageKey is the key for PostgreSQL 16 image in the ConfigMap PostgreSQL16ImageKey = "ibm-postgresql-16-operand-image" // ODLMWatchLabel is the label used to label the Subscription/CR/Configmap managed by ODLM ODLMWatchLabel = "operator.ibm.com/watched-by-odlm" // ODLMReferenceAnno is the annotation used to label the Subscription/CR/Configmap managed by ODLM ODLMReferenceAnno = "operator.ibm.com/referenced-by-odlm-resource" )
const ( ExcludedCatalog = "certified-operators,community-operators,redhat-marketplace,ibm-cp-automation-foundation-catalog,operatorhubio-catalog" StatusMonitoredServices = "ibm-idp-config-ui-operator,ibm-mongodb-operator,ibm-im-operator" )
const ( MongoDBOpReg = `` /* 886-byte string literal not displayed */ IMOpReg = `` /* 2668-byte string literal not displayed */ IdpConfigUIOpReg = `` /* 2331-byte string literal not displayed */ PlatformUIOpReg = `` /* 1841-byte string literal not displayed */ )
const ( MongoDBOpCon = `` /* 521-byte string literal not displayed */ IMOpCon = `` /* 3777-byte string literal not displayed */ UserMgmtOpCon = `` /* 1498-byte string literal not displayed */ IdpConfigUIOpCon = `` /* 1485-byte string literal not displayed */ PlatformUIOpCon = `` /* 2153-byte string literal not displayed */ )
const ( CSV3OpReg = `` /* 3174-byte string literal not displayed */ CSV4OpReg = `` /* 5211-byte string literal not displayed */ )
const APICatalogTemplate = `` /* 150-byte string literal not displayed */
const AutoScaleConfigTemplate = `` /* 217-byte string literal not displayed */
const CSCACert = `` /* 686-byte string literal not displayed */
CSCACert is the CR of cs-ca-certificate
const CSCAIssuer = `` /* 353-byte string literal not displayed */
CSCAIssuer is the CR of cs-ca-issuer
const CSSSIssuer = `` /* 323-byte string literal not displayed */
CSSSIsuuer is the CR of cs-ss-issuer
const (
CSV3SaasOpReg = `` /* 1856-byte string literal not displayed */
)
const CSV4OpCon = `` /* 3030-byte string literal not displayed */
const CommonServiceMaps = `` /* 272-byte string literal not displayed */
CommonServiceMaps is the default common service maps ConfigMap
const (
CommonServicePGOpCon = `` /* 12256-byte string literal not displayed */
)
const (
CommonServicePGOpReg = `` /* 676-byte string literal not displayed */
)
const CsCR = `` /* 350-byte string literal not displayed */
CsCR is the default common service operator CR
const CsNoSizeCR = `` /* 166-byte string literal not displayed */
CsNoSizeCR is the default common service operator CR for upgrade
const CsOperatorGroup = `` /* 176-byte string literal not displayed */
CsOg is OperatorGroup constent for the common service operator
const DefaultAdminUserTemplate = `` /* 214-byte string literal not displayed */
const EDBImageConfigMap = `` /* 1133-byte string literal not displayed */
const EDBOpCon = `` /* 5624-byte string literal not displayed */
const FipsEnabledTemplate = `` /* 1123-byte string literal not displayed */
const GeneralTroubleshooting = `https://ibm.biz/cpfs_general_troubleshooting`
const HugePagesTemplate = `` /* 706-byte string literal not displayed */
const InstanaEnableTemplate = `` /* 229-byte string literal not displayed */
const (
KeyCloakOpCon = `` /* 35355-byte string literal not displayed */
)
const (
KeyCloakOpReg = `` /* 1080-byte string literal not displayed */
)
const KeycloakCertTemplate = `` /* 454-byte string literal not displayed */
const KeycloakThemesConfigMap = `` /* 307-byte string literal not displayed */
const KeycloakThemesJar = `/hack/keycloak-themes/cloudpak-theme.jar`
const NSRestrictedSubscription = `` /* 351-byte string literal not displayed */
const NSSubscription = `` /* 329-byte string literal not displayed */
const NamespaceScopeConfigMap = `` /* 140-byte string literal not displayed */
NamespaceScopeConfigMap is the init configmap
const ODLMSubscription = `` /* 311-byte string literal not displayed */
const RouteHostTemplate = `
- name: ibm-management-ingress-operator
spec:
managementIngress:
routeHost: placeholder
`
const SecretWatchLabel string = "operator.ibm.com/watched-by-cert-manager"
SecretWatchLabel is a string of secrets that watched by cert manager operator labels
const ServiceLabelTemplate = `` /* 1957-byte string literal not displayed */
still need flink and elastic
const StorageClassTemplate = `` /* 1061-byte string literal not displayed */
Variables ¶
var ( CertManagerAPIGroupVersionV1Alpha1 = "certmanager.k8s.io/v1alpha1" CertManagerAPIGroupVersionV1 = "cert-manager.io/v1" CertManagerKinds = []string{"Issuer", "Certificate"} CertManagerIssuers = []string{CSSSIssuer, CSCAIssuer} CertManagerCerts = []string{CSCACert} KeycloakCert = "cs-keycloak-tls-cert" )
var ( CSV4OperandRegistry string CSV4SaasOperandRegistry string CSV4OperandConfig string CSV4SaasOperandConfig string )
var DefaultChannels = map[string][]string{
"keycloak-operator": {"stable-v26", "stable-v24", "stable-v22"},
}
DefaultChannels defines the default channels available for each operator
var PostGresOperatorConfig string
var ServiceNames = map[string][]string{
"PostgreSQL": {
"cloud-native-postgresql",
},
}
ServiceNames defines the list of service names used in the OperandConfig template.
Functions ¶
Types ¶
This section is empty.