Documentation ¶
Index ¶
Constants ¶
View Source
const CommonServiceName string = "common-service"
View Source
const GlobalConfigMapName string = "ibm-cpp-config"
Variables ¶
This section is empty.
Functions ¶
func GetSharedServicesNamespace ¶
GetSharedServicesNamespace returns the name of the shared services namespace for the Common Services instance that this Operator is a part of. Fails if the CommonService CR by the name provided cannot be found in the namespace this Operator is running in.
Types ¶
type ClusterType ¶
type ClusterType int64
const ( Unknown ClusterType = iota OpenShift CNCF )
func GetClusterType ¶
func GetClusterType(ctx context.Context, cmName string) (clusterType ClusterType, err error)
GetClusterType attempts to determine whether the Operator is running on Openshift versus a CNCF cluster. Exits in the event that the cluster config can't be obtained to make queries or if the watch namespace can't be obtained.
func (ClusterType) String ¶
func (ct ClusterType) String() string
Click to show internal directories.
Click to hide internal directories.