constant

package
v0.0.0-...-639c86f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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 Saas configMap
	SaasConfigMap = "saas-config"
	// Namespace Scope Operator resource name
	NsSubResourceName = "nsSubscription"
	// Namespace Scope Operator Restricted resource name
	NsRestrictedSubResourceName = "nsRestrictedSubscription"
	// Namespace Scope Operator sub name
	NsSubName = "ibm-namespace-scope-operator"
	// 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"
	// NamespaceScopeConfigmapName is the name of ConfigMap which stores the NamespaceScope Info
	NamespaceScopeConfigmapName = "namespace-scope"
	// 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"
)
View Source
const (
	MongoDBOpReg = `` /* 1197-byte string literal not displayed */

	IMOpReg = `` /* 1203-byte string literal not displayed */

	IdpConfigUIOpReg = `` /* 1263-byte string literal not displayed */

	PlatformUIOpReg = `` /* 1227-byte string literal not displayed */

)
View Source
const (
	MongoDBOpCon = `` /* 521-byte string literal not displayed */

	IMOpCon = `` /* 1436-byte string literal not displayed */

	IdpConfigUIOpCon = `` /* 617-byte string literal not displayed */

	PlatformUIOpCon = `` /* 470-byte string literal not displayed */

)
View Source
const (
	CSV2OpReg = `` /* 4067-byte string literal not displayed */

	CSV3OpReg = `` /* 2875-byte string literal not displayed */

)
View Source
const (
	CSV2SaasOpReg = `` /* 2515-byte string literal not displayed */

	CSV3SaasOpReg = `` /* 2016-byte string literal not displayed */

)
View Source
const APICatalogTemplate = `` /* 150-byte string literal not displayed */
View Source
const CSCACert = `` /* 653-byte string literal not displayed */

CSCACert is the CR of cs-ca-certificate

View Source
const CSCAIssuer = `` /* 353-byte string literal not displayed */

CSCAIssuer is the CR of cs-ca-issuer

View Source
const CSSSIssuer = `` /* 323-byte string literal not displayed */

CSSSIsuuer is the CR of cs-ss-issuer

View Source
const CSV3OpCon = `` /* 9100-byte string literal not displayed */
View Source
const CSV3SaasOpCon = `` /* 4659-byte string literal not displayed */
View Source
const CommonServiceMaps = `` /* 272-byte string literal not displayed */

CommonServiceMaps is the default common service maps ConfigMap

View Source
const CsCR = `` /* 285-byte string literal not displayed */

CsCR is the default common service operator CR

View Source
const CsNoSizeCR = `` /* 166-byte string literal not displayed */

CsNoSizeCR is the default common service operator CR for upgrade

View Source
const CsOperatorGroup = `` /* 176-byte string literal not displayed */

CsOg is OperatorGroup constent for the common service operator

View Source
const DefaultAdminUserTemplate = `` /* 214-byte string literal not displayed */
View Source
const FipsEnabledTemplate = `` /* 707-byte string literal not displayed */
View Source
const GeneralTroubleshooting = `https://ibm.biz/cpfs_general_troubleshooting`
View Source
const (
	KeyCloakOpCon = `` /* 24539-byte string literal not displayed */

)
View Source
const (
	KeyCloakOpReg = `` /* 847-byte string literal not displayed */

)
View Source
const MultipleInstancesEnabledTemplate = `` /* 215-byte string literal not displayed */
View Source
const NSRestrictedSubscription = `` /* 351-byte string literal not displayed */
View Source
const NSSubscription = `` /* 329-byte string literal not displayed */
View Source
const NamespaceScopeConfigMap = `` /* 140-byte string literal not displayed */

NamespaceScopeConfigMap is the init configmap

View Source
const ODLMSubscription = `` /* 311-byte string literal not displayed */
View Source
const RouteHostTemplate = `
- name: ibm-management-ingress-operator
  spec:
    managementIngress:
      routeHost: placeholder
`
View Source
const StorageClassTemplate = `` /* 487-byte string literal not displayed */

Variables

View Source
var (
	CertManagerAPIGroupVersionV1Alpha1 = "certmanager.k8s.io/v1alpha1"
	CertManagerAPIGroupVersionV1       = "cert-manager.io/v1"
	CertManagerKinds                   = []string{"Issuer", "Certificate"}
	CertManagerIssuers                 = []string{CSSSIssuer, CSCAIssuer}
	CertManagerCerts                   = []string{CSCACert}
)
View Source
var (
	CSV3OperandRegistry     string
	CSV3SaasOperandRegistry string
	CSV3OperandConfig       string
	CSV3SaasOperandConfig   string
)

Functions

func ConcatenateConfigs

func ConcatenateConfigs(baseConfigTemplate, insertedConfigTemplate string, data interface{}) (string, error)

ConcatenateConfigs concatenate the two YAML strings and return the new YAML string

func ConcatenateRegistries

func ConcatenateRegistries(baseRegistryTemplate, insertedRegistryTemplate string, data interface{}) (string, error)

ConcatenateRegistries concatenate the two YAML strings and return the new YAML string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL