configmap

package
v0.0.0-...-ec4eabd Latest Latest
Warning

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

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

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

Jump to

Keyboard shortcuts

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