Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigConnectorComponentName = "configconnector" WorkloadIdentityAnnotation = "iam.gke.io/gcp-service-account" ServiceAccountNamePrefix = "cnrm-controller-manager-" ControllerManagerPodForClusterMode = "cnrm-controller-manager-0" OperatorFinalizer = "configconnector.cnrm.cloud.google.com/finalizer" ConfigConnectorContextNamespaceLabel = "configconnectorcontext.cnrm.cloud.google.com/namespace" KCCFinalizer = "cnrm.cloud.google.com/finalizer" KCCSystemLabelSelectorRaw = "cnrm.cloud.google.com/system" KCCSystemComponentLabel = "cnrm.cloud.google.com/component" KCCControllerManagerComponent = "cnrm-controller-manager" KCCUnmanagedDetectorComponent = "cnrm-unmanaged-detector" CNRMDomain = "cnrm.cloud.google.com" CNRMSystemNamespace = "cnrm-system" NamespacedComponentLabel = "cnrm.cloud.google.com/scoped-namespace" OperatorSystemNamespace = "configconnector-operator-system" VersionAnnotation = "cnrm.cloud.google.com/version" OperatorVersionAnnotation = "cnrm.cloud.google.com/operator-version" ProjectIDAnnotation = "cnrm.cloud.google.com/project-id" StableChannel = "stable" CoreCNRMGroup = "core.cnrm.cloud.google.com" ConfigConnectorAllowedName = "configconnector.core.cnrm.cloud.google.com" ConfigConnectorContextAllowedName = "configconnectorcontext.core.cnrm.cloud.google.com" UpToDate = "UpToDate" UpToDateMessage = "ConfigConnector is up to date" UpdateFailed = "UpdateFailed" ControllerManagerService = "cnrm-manager" NamespacedManagerServicePrefix = "cnrm-manager-" NamespacedManagerServiceTmpl = "cnrm-manager-${NAMESPACE?}" ClusterMode = "cluster" NamespacedMode = "namespaced" ServiceAccountProjectPolicy = "SERVICE_ACCOUNT_PROJECT" ResourceProjectPolicy = "RESOURCE_PROJECT" BillingProjectPolicy = "BILLING_PROJECT" UserProjectOverrideFlag = "--user-project-override" BillingProjectFlag = "--billing-project" CNRMManagerContainerName = "manager" )
Variables ¶
View Source
var ( KCCControllerPodLabelSelectorRaw = fmt.Sprintf("%v=%v", KCCSystemComponentLabel, KCCControllerManagerComponent) // IgnoredCRDList contains CRDs that should be ignored by the operator. IgnoredCRDList = map[string]bool{ "servicemappings.core.cnrm.cloud.google.com": true, "gameservicesrealms.gameservices.cnrm.cloud.google.com": true, } OperatorNamespaceIDConfigMapNN = types.NamespacedName{ Namespace: OperatorSystemNamespace, Name: "namespace-id", } )
Functions ¶
func ListCRDs ¶
func ListCRDs(ctx context.Context, kubeClient client.Client, pageToken string) (crds []v1.CustomResourceDefinition, nextPageToken string, err error)
ListCRDs returns the list of KCC CRDs on the API Server. The function returns the CRDs in paginated fashion, i.e. one chunk of at most 100 CRDs at a time, and the nextPageToken to be used by the caller to fetch the next chunk of CRDs. When there are no more CRDs to list, the function returns an empty string nextPageToken. Callers are expected to pass an empty string for pageToken when initiating a new list operation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.