common

package
v0.0.0-...-0533826 Latest Latest
Warning

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

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

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

func GetSharedServicesNamespace(ctx context.Context, name string) (namespace string, err error)

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.

func MergeMap

func MergeMap(in map[string]string, mergeMap map[string]string) map[string]string

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

Jump to

Keyboard shortcuts

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