Enum value maps for DeploymentState.
var ( DeploymentState_name = map[int32]string{ 0: "DEPLOYMENT_STATE_UNSPECIFIED", 1: "NOT_INSTALLED", 2: "INSTALLED", 3: "ERROR", } DeploymentState_value = map[string]int32{ "DEPLOYMENT_STATE_UNSPECIFIED": 0, "NOT_INSTALLED": 1, "INSTALLED": 2, "ERROR": 3, } )
Enum value maps for SyncState_SyncCode.
var ( SyncState_SyncCode_name = map[int32]string{ 0: "SYNC_CODE_UNSPECIFIED", 1: "SYNCED", 2: "PENDING", 3: "ERROR", 4: "NOT_CONFIGURED", 5: "NOT_INSTALLED", 6: "UNAUTHORIZED", 7: "UNREACHABLE", } SyncState_SyncCode_value = map[string]int32{ "SYNC_CODE_UNSPECIFIED": 0, "SYNCED": 1, "PENDING": 2, "ERROR": 3, "NOT_CONFIGURED": 4, "NOT_INSTALLED": 5, "UNAUTHORIZED": 6, "UNREACHABLE": 7, } )
var File_google_cloud_gkehub_v1alpha_configmanagement_configmanagement_proto protoreflect.FileDescriptor
Configuration for Binauthz
type BinauthzConfig struct { // Whether binauthz is enabled in this cluster. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // contains filtered or unexported fields }
func (*BinauthzConfig) Descriptor() ([]byte, []int)
Deprecated: Use BinauthzConfig.ProtoReflect.Descriptor instead.
func (x *BinauthzConfig) GetEnabled() bool
func (*BinauthzConfig) ProtoMessage()
func (x *BinauthzConfig) ProtoReflect() protoreflect.Message
func (x *BinauthzConfig) Reset()
func (x *BinauthzConfig) String() string
State for Binauthz
type BinauthzState struct { // The state of the binauthz webhook. Webhook DeploymentState `protobuf:"varint,1,opt,name=webhook,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"webhook,omitempty"` // The version of binauthz that is installed. Version *BinauthzVersion `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*BinauthzState) Descriptor() ([]byte, []int)
Deprecated: Use BinauthzState.ProtoReflect.Descriptor instead.
func (x *BinauthzState) GetVersion() *BinauthzVersion
func (x *BinauthzState) GetWebhook() DeploymentState
func (*BinauthzState) ProtoMessage()
func (x *BinauthzState) ProtoReflect() protoreflect.Message
func (x *BinauthzState) Reset()
func (x *BinauthzState) String() string
The version of binauthz.
type BinauthzVersion struct { // The version of the binauthz webhook. WebhookVersion string `protobuf:"bytes,1,opt,name=webhook_version,json=webhookVersion,proto3" json:"webhook_version,omitempty"` // contains filtered or unexported fields }
func (*BinauthzVersion) Descriptor() ([]byte, []int)
Deprecated: Use BinauthzVersion.ProtoReflect.Descriptor instead.
func (x *BinauthzVersion) GetWebhookVersion() string
func (*BinauthzVersion) ProtoMessage()
func (x *BinauthzVersion) ProtoReflect() protoreflect.Message
func (x *BinauthzVersion) Reset()
func (x *BinauthzVersion) String() string
Configuration for Config Sync
type ConfigSync struct { // Git repo configuration for the cluster. Git *GitConfig `protobuf:"bytes,7,opt,name=git,proto3" json:"git,omitempty"` // Specifies whether the Config Sync Repo is // in “hierarchical” or “unstructured” mode. SourceFormat string `protobuf:"bytes,8,opt,name=source_format,json=sourceFormat,proto3" json:"source_format,omitempty"` // contains filtered or unexported fields }
func (*ConfigSync) Descriptor() ([]byte, []int)
Deprecated: Use ConfigSync.ProtoReflect.Descriptor instead.
func (x *ConfigSync) GetGit() *GitConfig
func (x *ConfigSync) GetSourceFormat() string
func (*ConfigSync) ProtoMessage()
func (x *ConfigSync) ProtoReflect() protoreflect.Message
func (x *ConfigSync) Reset()
func (x *ConfigSync) String() string
The state of ConfigSync's deployment on a cluster
type ConfigSyncDeploymentState struct { // Deployment state of the importer pod Importer DeploymentState `protobuf:"varint,1,opt,name=importer,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"importer,omitempty"` // Deployment state of the syncer pod Syncer DeploymentState `protobuf:"varint,2,opt,name=syncer,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"syncer,omitempty"` // Deployment state of the git-sync pod GitSync DeploymentState `protobuf:"varint,3,opt,name=git_sync,json=gitSync,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"git_sync,omitempty"` // Deployment state of the monitor pod Monitor DeploymentState `protobuf:"varint,4,opt,name=monitor,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"monitor,omitempty"` // Deployment state of reconciler-manager pod ReconcilerManager DeploymentState `protobuf:"varint,5,opt,name=reconciler_manager,json=reconcilerManager,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"reconciler_manager,omitempty"` // Deployment state of root-reconciler RootReconciler DeploymentState `protobuf:"varint,6,opt,name=root_reconciler,json=rootReconciler,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"root_reconciler,omitempty"` // contains filtered or unexported fields }
func (*ConfigSyncDeploymentState) Descriptor() ([]byte, []int)
Deprecated: Use ConfigSyncDeploymentState.ProtoReflect.Descriptor instead.
func (x *ConfigSyncDeploymentState) GetGitSync() DeploymentState
func (x *ConfigSyncDeploymentState) GetImporter() DeploymentState
func (x *ConfigSyncDeploymentState) GetMonitor() DeploymentState
func (x *ConfigSyncDeploymentState) GetReconcilerManager() DeploymentState
func (x *ConfigSyncDeploymentState) GetRootReconciler() DeploymentState
func (x *ConfigSyncDeploymentState) GetSyncer() DeploymentState
func (*ConfigSyncDeploymentState) ProtoMessage()
func (x *ConfigSyncDeploymentState) ProtoReflect() protoreflect.Message
func (x *ConfigSyncDeploymentState) Reset()
func (x *ConfigSyncDeploymentState) String() string
State information for ConfigSync
type ConfigSyncState struct { // The version of ConfigSync deployed Version *ConfigSyncVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Information about the deployment of ConfigSync, including the version // of the various Pods deployed DeploymentState *ConfigSyncDeploymentState `protobuf:"bytes,2,opt,name=deployment_state,json=deploymentState,proto3" json:"deployment_state,omitempty"` // The state of ConfigSync's process to sync configs to a cluster SyncState *SyncState `protobuf:"bytes,3,opt,name=sync_state,json=syncState,proto3" json:"sync_state,omitempty"` // contains filtered or unexported fields }
func (*ConfigSyncState) Descriptor() ([]byte, []int)
Deprecated: Use ConfigSyncState.ProtoReflect.Descriptor instead.
func (x *ConfigSyncState) GetDeploymentState() *ConfigSyncDeploymentState
func (x *ConfigSyncState) GetSyncState() *SyncState
func (x *ConfigSyncState) GetVersion() *ConfigSyncVersion
func (*ConfigSyncState) ProtoMessage()
func (x *ConfigSyncState) ProtoReflect() protoreflect.Message
func (x *ConfigSyncState) Reset()
func (x *ConfigSyncState) String() string
Specific versioning information pertaining to ConfigSync's Pods
type ConfigSyncVersion struct { // Version of the deployed importer pod Importer string `protobuf:"bytes,1,opt,name=importer,proto3" json:"importer,omitempty"` // Version of the deployed syncer pod Syncer string `protobuf:"bytes,2,opt,name=syncer,proto3" json:"syncer,omitempty"` // Version of the deployed git-sync pod GitSync string `protobuf:"bytes,3,opt,name=git_sync,json=gitSync,proto3" json:"git_sync,omitempty"` // Version of the deployed monitor pod Monitor string `protobuf:"bytes,4,opt,name=monitor,proto3" json:"monitor,omitempty"` // Version of the deployed reconciler-manager pod ReconcilerManager string `protobuf:"bytes,5,opt,name=reconciler_manager,json=reconcilerManager,proto3" json:"reconciler_manager,omitempty"` // Version of the deployed reconciler container in root-reconciler pod RootReconciler string `protobuf:"bytes,6,opt,name=root_reconciler,json=rootReconciler,proto3" json:"root_reconciler,omitempty"` // contains filtered or unexported fields }
func (*ConfigSyncVersion) Descriptor() ([]byte, []int)
Deprecated: Use ConfigSyncVersion.ProtoReflect.Descriptor instead.
func (x *ConfigSyncVersion) GetGitSync() string
func (x *ConfigSyncVersion) GetImporter() string
func (x *ConfigSyncVersion) GetMonitor() string
func (x *ConfigSyncVersion) GetReconcilerManager() string
func (x *ConfigSyncVersion) GetRootReconciler() string
func (x *ConfigSyncVersion) GetSyncer() string
func (*ConfigSyncVersion) ProtoMessage()
func (x *ConfigSyncVersion) ProtoReflect() protoreflect.Message
func (x *ConfigSyncVersion) Reset()
func (x *ConfigSyncVersion) String() string
Enum representing the state of an ACM's deployment on a cluster
type DeploymentState int32
const ( // Deployment's state cannot be determined DeploymentState_DEPLOYMENT_STATE_UNSPECIFIED DeploymentState = 0 // Deployment is not installed DeploymentState_NOT_INSTALLED DeploymentState = 1 // Deployment is installed DeploymentState_INSTALLED DeploymentState = 2 // Deployment was attempted to be installed, but has errors DeploymentState_ERROR DeploymentState = 3 )
func (DeploymentState) Descriptor() protoreflect.EnumDescriptor
func (x DeploymentState) Enum() *DeploymentState
func (DeploymentState) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeploymentState.Descriptor instead.
func (x DeploymentState) Number() protoreflect.EnumNumber
func (x DeploymentState) String() string
func (DeploymentState) Type() protoreflect.EnumType
Model for a config file in the git repo with an associated Sync error
type ErrorResource struct { // Path in the git repo of the erroneous config SourcePath string `protobuf:"bytes,1,opt,name=source_path,json=sourcePath,proto3" json:"source_path,omitempty"` // Metadata name of the resource that is causing an error ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // Namespace of the resource that is causing an error ResourceNamespace string `protobuf:"bytes,3,opt,name=resource_namespace,json=resourceNamespace,proto3" json:"resource_namespace,omitempty"` // Group/version/kind of the resource that is causing an error ResourceGvk *GroupVersionKind `protobuf:"bytes,4,opt,name=resource_gvk,json=resourceGvk,proto3" json:"resource_gvk,omitempty"` // contains filtered or unexported fields }
func (*ErrorResource) Descriptor() ([]byte, []int)
Deprecated: Use ErrorResource.ProtoReflect.Descriptor instead.
func (x *ErrorResource) GetResourceGvk() *GroupVersionKind
func (x *ErrorResource) GetResourceName() string
func (x *ErrorResource) GetResourceNamespace() string
func (x *ErrorResource) GetSourcePath() string
func (*ErrorResource) ProtoMessage()
func (x *ErrorResource) ProtoReflect() protoreflect.Message
func (x *ErrorResource) Reset()
func (x *ErrorResource) String() string
State of Policy Controller installation.
type GatekeeperDeploymentState struct { // Status of gatekeeper-controller-manager pod. GatekeeperControllerManagerState DeploymentState `protobuf:"varint,1,opt,name=gatekeeper_controller_manager_state,json=gatekeeperControllerManagerState,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"gatekeeper_controller_manager_state,omitempty"` // Status of gatekeeper-audit deployment. GatekeeperAudit DeploymentState `protobuf:"varint,2,opt,name=gatekeeper_audit,json=gatekeeperAudit,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"gatekeeper_audit,omitempty"` // Status of the pod serving the mutation webhook. GatekeeperMutation DeploymentState `protobuf:"varint,3,opt,name=gatekeeper_mutation,json=gatekeeperMutation,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"gatekeeper_mutation,omitempty"` // contains filtered or unexported fields }
func (*GatekeeperDeploymentState) Descriptor() ([]byte, []int)
Deprecated: Use GatekeeperDeploymentState.ProtoReflect.Descriptor instead.
func (x *GatekeeperDeploymentState) GetGatekeeperAudit() DeploymentState
func (x *GatekeeperDeploymentState) GetGatekeeperControllerManagerState() DeploymentState
func (x *GatekeeperDeploymentState) GetGatekeeperMutation() DeploymentState
func (*GatekeeperDeploymentState) ProtoMessage()
func (x *GatekeeperDeploymentState) ProtoReflect() protoreflect.Message
func (x *GatekeeperDeploymentState) Reset()
func (x *GatekeeperDeploymentState) String() string
Git repo configuration for a single cluster.
type GitConfig struct { // The URL of the Git repository to use as the source of truth. SyncRepo string `protobuf:"bytes,1,opt,name=sync_repo,json=syncRepo,proto3" json:"sync_repo,omitempty"` // The branch of the repository to sync from. Default: master. SyncBranch string `protobuf:"bytes,2,opt,name=sync_branch,json=syncBranch,proto3" json:"sync_branch,omitempty"` // The path within the Git repository that represents the top level of the // repo to sync. Default: the root directory of the repository. PolicyDir string `protobuf:"bytes,3,opt,name=policy_dir,json=policyDir,proto3" json:"policy_dir,omitempty"` // Period in seconds between consecutive syncs. Default: 15. SyncWaitSecs int64 `protobuf:"varint,4,opt,name=sync_wait_secs,json=syncWaitSecs,proto3" json:"sync_wait_secs,omitempty"` // Git revision (tag or hash) to check out. Default HEAD. SyncRev string `protobuf:"bytes,5,opt,name=sync_rev,json=syncRev,proto3" json:"sync_rev,omitempty"` // Type of secret configured for access to the Git repo. SecretType string `protobuf:"bytes,6,opt,name=secret_type,json=secretType,proto3" json:"secret_type,omitempty"` // URL for the HTTPS proxy to be used when communicating with the Git repo. HttpsProxy string `protobuf:"bytes,7,opt,name=https_proxy,json=httpsProxy,proto3" json:"https_proxy,omitempty"` // The GCP Service Account Email used for auth when secret_type is // gcpServiceAccount. GcpServiceAccountEmail string `protobuf:"bytes,8,opt,name=gcp_service_account_email,json=gcpServiceAccountEmail,proto3" json:"gcp_service_account_email,omitempty"` // contains filtered or unexported fields }
func (*GitConfig) Descriptor() ([]byte, []int)
Deprecated: Use GitConfig.ProtoReflect.Descriptor instead.
func (x *GitConfig) GetGcpServiceAccountEmail() string
func (x *GitConfig) GetHttpsProxy() string
func (x *GitConfig) GetPolicyDir() string
func (x *GitConfig) GetSecretType() string
func (x *GitConfig) GetSyncBranch() string
func (x *GitConfig) GetSyncRepo() string
func (x *GitConfig) GetSyncRev() string
func (x *GitConfig) GetSyncWaitSecs() int64
func (*GitConfig) ProtoMessage()
func (x *GitConfig) ProtoReflect() protoreflect.Message
func (x *GitConfig) Reset()
func (x *GitConfig) String() string
A Kubernetes object's GVK
type GroupVersionKind struct { // Kubernetes Group Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // Kubernetes Version Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Kubernetes Kind Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*GroupVersionKind) Descriptor() ([]byte, []int)
Deprecated: Use GroupVersionKind.ProtoReflect.Descriptor instead.
func (x *GroupVersionKind) GetGroup() string
func (x *GroupVersionKind) GetKind() string
func (x *GroupVersionKind) GetVersion() string
func (*GroupVersionKind) ProtoMessage()
func (x *GroupVersionKind) ProtoReflect() protoreflect.Message
func (x *GroupVersionKind) Reset()
func (x *GroupVersionKind) String() string
Configuration for Hierarchy Controller
type HierarchyControllerConfig struct { // Whether Hierarchy Controller is enabled in this cluster. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // Whether pod tree labels are enabled in this cluster. EnablePodTreeLabels bool `protobuf:"varint,2,opt,name=enable_pod_tree_labels,json=enablePodTreeLabels,proto3" json:"enable_pod_tree_labels,omitempty"` // Whether hierarchical resource quota is enabled in this cluster. EnableHierarchicalResourceQuota bool `protobuf:"varint,3,opt,name=enable_hierarchical_resource_quota,json=enableHierarchicalResourceQuota,proto3" json:"enable_hierarchical_resource_quota,omitempty"` // contains filtered or unexported fields }
func (*HierarchyControllerConfig) Descriptor() ([]byte, []int)
Deprecated: Use HierarchyControllerConfig.ProtoReflect.Descriptor instead.
func (x *HierarchyControllerConfig) GetEnableHierarchicalResourceQuota() bool
func (x *HierarchyControllerConfig) GetEnablePodTreeLabels() bool
func (x *HierarchyControllerConfig) GetEnabled() bool
func (*HierarchyControllerConfig) ProtoMessage()
func (x *HierarchyControllerConfig) ProtoReflect() protoreflect.Message
func (x *HierarchyControllerConfig) Reset()
func (x *HierarchyControllerConfig) String() string
Deployment state for Hierarchy Controller
type HierarchyControllerDeploymentState struct { // The deployment state for open source HNC (e.g. v0.7.0-hc.0) Hnc DeploymentState `protobuf:"varint,1,opt,name=hnc,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"hnc,omitempty"` // The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) Extension DeploymentState `protobuf:"varint,2,opt,name=extension,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"extension,omitempty"` // contains filtered or unexported fields }
func (*HierarchyControllerDeploymentState) Descriptor() ([]byte, []int)
Deprecated: Use HierarchyControllerDeploymentState.ProtoReflect.Descriptor instead.
func (x *HierarchyControllerDeploymentState) GetExtension() DeploymentState
func (x *HierarchyControllerDeploymentState) GetHnc() DeploymentState
func (*HierarchyControllerDeploymentState) ProtoMessage()
func (x *HierarchyControllerDeploymentState) ProtoReflect() protoreflect.Message
func (x *HierarchyControllerDeploymentState) Reset()
func (x *HierarchyControllerDeploymentState) String() string
State for Hierarchy Controller
type HierarchyControllerState struct { // The version for Hierarchy Controller Version *HierarchyControllerVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // The deployment state for Hierarchy Controller State *HierarchyControllerDeploymentState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*HierarchyControllerState) Descriptor() ([]byte, []int)
Deprecated: Use HierarchyControllerState.ProtoReflect.Descriptor instead.
func (x *HierarchyControllerState) GetState() *HierarchyControllerDeploymentState
func (x *HierarchyControllerState) GetVersion() *HierarchyControllerVersion
func (*HierarchyControllerState) ProtoMessage()
func (x *HierarchyControllerState) ProtoReflect() protoreflect.Message
func (x *HierarchyControllerState) Reset()
func (x *HierarchyControllerState) String() string
Version for Hierarchy Controller
type HierarchyControllerVersion struct { // Version for open source HNC Hnc string `protobuf:"bytes,1,opt,name=hnc,proto3" json:"hnc,omitempty"` // Version for Hierarchy Controller extension Extension string `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"` // contains filtered or unexported fields }
func (*HierarchyControllerVersion) Descriptor() ([]byte, []int)
Deprecated: Use HierarchyControllerVersion.ProtoReflect.Descriptor instead.
func (x *HierarchyControllerVersion) GetExtension() string
func (x *HierarchyControllerVersion) GetHnc() string
func (*HierarchyControllerVersion) ProtoMessage()
func (x *HierarchyControllerVersion) ProtoReflect() protoreflect.Message
func (x *HierarchyControllerVersion) Reset()
func (x *HierarchyControllerVersion) String() string
Errors pertaining to the installation of ACM
type InstallError struct { // A string representing the user facing error message ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // contains filtered or unexported fields }
func (*InstallError) Descriptor() ([]byte, []int)
Deprecated: Use InstallError.ProtoReflect.Descriptor instead.
func (x *InstallError) GetErrorMessage() string
func (*InstallError) ProtoMessage()
func (x *InstallError) ProtoReflect() protoreflect.Message
func (x *InstallError) Reset()
func (x *InstallError) String() string
**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.
type MembershipSpec struct { // Config Sync configuration for the cluster. ConfigSync *ConfigSync `protobuf:"bytes,1,opt,name=config_sync,json=configSync,proto3" json:"config_sync,omitempty"` // Policy Controller configuration for the cluster. PolicyController *PolicyController `protobuf:"bytes,2,opt,name=policy_controller,json=policyController,proto3" json:"policy_controller,omitempty"` // Binauthz conifguration for the cluster. Binauthz *BinauthzConfig `protobuf:"bytes,3,opt,name=binauthz,proto3" json:"binauthz,omitempty"` // Hierarchy Controller configuration for the cluster. HierarchyController *HierarchyControllerConfig `protobuf:"bytes,4,opt,name=hierarchy_controller,json=hierarchyController,proto3" json:"hierarchy_controller,omitempty"` // Version of ACM installed. Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*MembershipSpec) Descriptor() ([]byte, []int)
Deprecated: Use MembershipSpec.ProtoReflect.Descriptor instead.
func (x *MembershipSpec) GetBinauthz() *BinauthzConfig
func (x *MembershipSpec) GetConfigSync() *ConfigSync
func (x *MembershipSpec) GetHierarchyController() *HierarchyControllerConfig
func (x *MembershipSpec) GetPolicyController() *PolicyController
func (x *MembershipSpec) GetVersion() string
func (*MembershipSpec) ProtoMessage()
func (x *MembershipSpec) ProtoReflect() protoreflect.Message
func (x *MembershipSpec) Reset()
func (x *MembershipSpec) String() string
**Anthos Config Management**: State for a single cluster.
type MembershipState struct { // The user-defined name for the cluster used by ClusterSelectors to group // clusters together. This should match Membership's membership_name, // unless the user installed ACM on the cluster manually prior to enabling // the ACM hub feature. // Unique within a Anthos Config Management installation. ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` // Membership configuration in the cluster. This represents the actual state // in the cluster, while the MembershipSpec in the FeatureSpec represents // the intended state MembershipSpec *MembershipSpec `protobuf:"bytes,2,opt,name=membership_spec,json=membershipSpec,proto3" json:"membership_spec,omitempty"` // Current install status of ACM's Operator OperatorState *OperatorState `protobuf:"bytes,3,opt,name=operator_state,json=operatorState,proto3" json:"operator_state,omitempty"` // Current sync status ConfigSyncState *ConfigSyncState `protobuf:"bytes,4,opt,name=config_sync_state,json=configSyncState,proto3" json:"config_sync_state,omitempty"` // PolicyController status PolicyControllerState *PolicyControllerState `protobuf:"bytes,5,opt,name=policy_controller_state,json=policyControllerState,proto3" json:"policy_controller_state,omitempty"` // Binauthz status BinauthzState *BinauthzState `protobuf:"bytes,6,opt,name=binauthz_state,json=binauthzState,proto3" json:"binauthz_state,omitempty"` // Hierarchy Controller status HierarchyControllerState *HierarchyControllerState `protobuf:"bytes,7,opt,name=hierarchy_controller_state,json=hierarchyControllerState,proto3" json:"hierarchy_controller_state,omitempty"` // contains filtered or unexported fields }
func (*MembershipState) Descriptor() ([]byte, []int)
Deprecated: Use MembershipState.ProtoReflect.Descriptor instead.
func (x *MembershipState) GetBinauthzState() *BinauthzState
func (x *MembershipState) GetClusterName() string
func (x *MembershipState) GetConfigSyncState() *ConfigSyncState
func (x *MembershipState) GetHierarchyControllerState() *HierarchyControllerState
func (x *MembershipState) GetMembershipSpec() *MembershipSpec
func (x *MembershipState) GetOperatorState() *OperatorState
func (x *MembershipState) GetPolicyControllerState() *PolicyControllerState
func (*MembershipState) ProtoMessage()
func (x *MembershipState) ProtoReflect() protoreflect.Message
func (x *MembershipState) Reset()
func (x *MembershipState) String() string
State information for an ACM's Operator
type OperatorState struct { // The semenatic version number of the operator Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // The state of the Operator's deployment DeploymentState DeploymentState `protobuf:"varint,2,opt,name=deployment_state,json=deploymentState,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.DeploymentState" json:"deployment_state,omitempty"` // Install errors. Errors []*InstallError `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*OperatorState) Descriptor() ([]byte, []int)
Deprecated: Use OperatorState.ProtoReflect.Descriptor instead.
func (x *OperatorState) GetDeploymentState() DeploymentState
func (x *OperatorState) GetErrors() []*InstallError
func (x *OperatorState) GetVersion() string
func (*OperatorState) ProtoMessage()
func (x *OperatorState) ProtoReflect() protoreflect.Message
func (x *OperatorState) Reset()
func (x *OperatorState) String() string
Configuration for Policy Controller
type PolicyController struct { // Enables the installation of Policy Controller. // If false, the rest of PolicyController fields take no // effect. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // Installs the default template library along with Policy Controller. TemplateLibraryInstalled *bool `protobuf:"varint,2,opt,name=template_library_installed,json=templateLibraryInstalled,proto3,oneof" json:"template_library_installed,omitempty"` // Sets the interval for Policy Controller Audit Scans (in seconds). // When set to 0, this disables audit functionality altogether. AuditIntervalSeconds *int64 `protobuf:"varint,3,opt,name=audit_interval_seconds,json=auditIntervalSeconds,proto3,oneof" json:"audit_interval_seconds,omitempty"` // The set of namespaces that are excluded from Policy Controller checks. // Namespaces do not need to currently exist on the cluster. ExemptableNamespaces []string `protobuf:"bytes,4,rep,name=exemptable_namespaces,json=exemptableNamespaces,proto3" json:"exemptable_namespaces,omitempty"` // Enables the ability to use Constraint Templates that reference to objects // other than the object currently being evaluated. ReferentialRulesEnabled bool `protobuf:"varint,5,opt,name=referential_rules_enabled,json=referentialRulesEnabled,proto3" json:"referential_rules_enabled,omitempty"` // Logs all denies and dry run failures. LogDeniesEnabled bool `protobuf:"varint,6,opt,name=log_denies_enabled,json=logDeniesEnabled,proto3" json:"log_denies_enabled,omitempty"` // Enable users to try out mutation for PolicyController. MutationEnabled bool `protobuf:"varint,7,opt,name=mutation_enabled,json=mutationEnabled,proto3" json:"mutation_enabled,omitempty"` // contains filtered or unexported fields }
func (*PolicyController) Descriptor() ([]byte, []int)
Deprecated: Use PolicyController.ProtoReflect.Descriptor instead.
func (x *PolicyController) GetAuditIntervalSeconds() int64
func (x *PolicyController) GetEnabled() bool
func (x *PolicyController) GetExemptableNamespaces() []string
func (x *PolicyController) GetLogDeniesEnabled() bool
func (x *PolicyController) GetMutationEnabled() bool
func (x *PolicyController) GetReferentialRulesEnabled() bool
func (x *PolicyController) GetTemplateLibraryInstalled() bool
func (*PolicyController) ProtoMessage()
func (x *PolicyController) ProtoReflect() protoreflect.Message
func (x *PolicyController) Reset()
func (x *PolicyController) String() string
State for PolicyControllerState.
type PolicyControllerState struct { // The version of Gatekeeper Policy Controller deployed. Version *PolicyControllerVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // The state about the policy controller installation. DeploymentState *GatekeeperDeploymentState `protobuf:"bytes,2,opt,name=deployment_state,json=deploymentState,proto3" json:"deployment_state,omitempty"` // contains filtered or unexported fields }
func (*PolicyControllerState) Descriptor() ([]byte, []int)
Deprecated: Use PolicyControllerState.ProtoReflect.Descriptor instead.
func (x *PolicyControllerState) GetDeploymentState() *GatekeeperDeploymentState
func (x *PolicyControllerState) GetVersion() *PolicyControllerVersion
func (*PolicyControllerState) ProtoMessage()
func (x *PolicyControllerState) ProtoReflect() protoreflect.Message
func (x *PolicyControllerState) Reset()
func (x *PolicyControllerState) String() string
The build version of Gatekeeper Policy Controller is using.
type PolicyControllerVersion struct { // The gatekeeper image tag that is composed of ACM version, git tag, build // number. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*PolicyControllerVersion) Descriptor() ([]byte, []int)
Deprecated: Use PolicyControllerVersion.ProtoReflect.Descriptor instead.
func (x *PolicyControllerVersion) GetVersion() string
func (*PolicyControllerVersion) ProtoMessage()
func (x *PolicyControllerVersion) ProtoReflect() protoreflect.Message
func (x *PolicyControllerVersion) Reset()
func (x *PolicyControllerVersion) String() string
An ACM created error representing a problem syncing configurations
type SyncError struct { // An ACM defined error code Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // A description of the error ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // A list of config(s) associated with the error, if any ErrorResources []*ErrorResource `protobuf:"bytes,3,rep,name=error_resources,json=errorResources,proto3" json:"error_resources,omitempty"` // contains filtered or unexported fields }
func (*SyncError) Descriptor() ([]byte, []int)
Deprecated: Use SyncError.ProtoReflect.Descriptor instead.
func (x *SyncError) GetCode() string
func (x *SyncError) GetErrorMessage() string
func (x *SyncError) GetErrorResources() []*ErrorResource
func (*SyncError) ProtoMessage()
func (x *SyncError) ProtoReflect() protoreflect.Message
func (x *SyncError) Reset()
func (x *SyncError) String() string
State indicating an ACM's progress syncing configurations to a cluster
type SyncState struct { // Token indicating the state of the repo. SourceToken string `protobuf:"bytes,1,opt,name=source_token,json=sourceToken,proto3" json:"source_token,omitempty"` // Token indicating the state of the importer. ImportToken string `protobuf:"bytes,2,opt,name=import_token,json=importToken,proto3" json:"import_token,omitempty"` // Token indicating the state of the syncer. SyncToken string `protobuf:"bytes,3,opt,name=sync_token,json=syncToken,proto3" json:"sync_token,omitempty"` // Deprecated: use last_sync_time instead. // Timestamp of when ACM last successfully synced the repo // The time format is specified in https://golang.org/pkg/time/#Time.String // // Deprecated: Do not use. LastSync string `protobuf:"bytes,4,opt,name=last_sync,json=lastSync,proto3" json:"last_sync,omitempty"` // Timestamp type of when ACM last successfully synced the repo LastSyncTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_sync_time,json=lastSyncTime,proto3" json:"last_sync_time,omitempty"` // Sync status code Code SyncState_SyncCode `protobuf:"varint,5,opt,name=code,proto3,enum=google.cloud.gkehub.configmanagement.v1alpha.SyncState_SyncCode" json:"code,omitempty"` // A list of errors resulting from problematic configs. // This list will be truncated after 100 errors, although it is // unlikely for that many errors to simultaneously exist. Errors []*SyncError `protobuf:"bytes,6,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*SyncState) Descriptor() ([]byte, []int)
Deprecated: Use SyncState.ProtoReflect.Descriptor instead.
func (x *SyncState) GetCode() SyncState_SyncCode
func (x *SyncState) GetErrors() []*SyncError
func (x *SyncState) GetImportToken() string
func (x *SyncState) GetLastSync() string
Deprecated: Do not use.
func (x *SyncState) GetLastSyncTime() *timestamppb.Timestamp
func (x *SyncState) GetSourceToken() string
func (x *SyncState) GetSyncToken() string
func (*SyncState) ProtoMessage()
func (x *SyncState) ProtoReflect() protoreflect.Message
func (x *SyncState) Reset()
func (x *SyncState) String() string
An enum representing an ACM's status syncing configs to a cluster
type SyncState_SyncCode int32
const ( // ACM cannot determine a sync code SyncState_SYNC_CODE_UNSPECIFIED SyncState_SyncCode = 0 // ACM successfully synced the git Repo with the cluster SyncState_SYNCED SyncState_SyncCode = 1 // ACM is in the progress of syncing a new change SyncState_PENDING SyncState_SyncCode = 2 // Indicates an error configuring ACM, and user action is required SyncState_ERROR SyncState_SyncCode = 3 // ACM has been installed (operator manifest deployed), // but not configured. SyncState_NOT_CONFIGURED SyncState_SyncCode = 4 // ACM has not been installed (no operator pod found) SyncState_NOT_INSTALLED SyncState_SyncCode = 5 // Error authorizing with the cluster SyncState_UNAUTHORIZED SyncState_SyncCode = 6 // Cluster could not be reached SyncState_UNREACHABLE SyncState_SyncCode = 7 )
func (SyncState_SyncCode) Descriptor() protoreflect.EnumDescriptor
func (x SyncState_SyncCode) Enum() *SyncState_SyncCode
func (SyncState_SyncCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SyncState_SyncCode.Descriptor instead.
func (x SyncState_SyncCode) Number() protoreflect.EnumNumber
func (x SyncState_SyncCode) String() string
func (SyncState_SyncCode) Type() protoreflect.EnumType