Documentation ¶
Index ¶
Constants ¶
View Source
const ( OperatorConfigMapName = "gcp-project-operator" OperatorConfigMapNamespace = "gcp-project-operator" OperatorConfigMapKey = "config.yaml" )
OperatorConfigMapName holds the name of configmap
Variables ¶
This section is empty.
Functions ¶
func ValidateOperatorConfigMap ¶
func ValidateOperatorConfigMap(configmap OperatorConfigMap) error
ValidateOperatorConfigMap checks if OperatorConfigMap filled properly
Types ¶
type OperatorConfigMap ¶
type OperatorConfigMap struct { BillingAccount string `yaml:"billingAccount"` ParentFolderID string `yaml:"parentFolderID"` CCSConsoleAccess []string `yaml:"ccsConsoleAccess,omitempty"` CCSReadOnlyConsoleAccess []string `yaml:"ccsReadOnlyConsoleAccess,omitempty"` DisabledRegions []string `yaml:"disabledRegions,omitempty"` }
OperatorConfigMap store data for the specified configmap
func GetOperatorConfigMap ¶
func GetOperatorConfigMap(kubeClient client.Client) (OperatorConfigMap, error)
GetOperatorConfigMap returns a configmap defined in requested namespace and name
Click to show internal directories.
Click to hide internal directories.