NAME
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement - Compiled Protocol Buffers messages for google/cloud/gkehub/v1/configmanagement/configmanagement.proto
SYNOPSIS
use Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement;
my $msg = Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::MembershipState->new({
cluster_name => $cluster_name,
membership_spec => $membership_spec,
operator_state => $operator_state,
config_sync_state => $config_sync_state,
});
# Read or update a field
my $val = $msg->cluster_name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::MembershipState->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/gkehub/v1/configmanagement/configmanagement.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::MembershipState
Anthos Config Management: State for a single cluster.
Inherits from Protobuf::Message.
Accessors
$msg->cluster_name()/$msg->cluster_name($value)Type:
StringThis field is set to the `cluster_name` field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.
$msg->membership_spec()/$msg->membership_spec($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::MembershipSpec)Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state
$msg->operator_state()/$msg->operator_state($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::OperatorState)Current install status of ACM's Operator
$msg->config_sync_state()/$msg->config_sync_state($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSyncState)Current sync status
$msg->policy_controller_state()/$msg->policy_controller_state($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::PolicyControllerState)PolicyController status
$msg->hierarchy_controller_state()/$msg->hierarchy_controller_state($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::HierarchyControllerState)Hierarchy Controller status
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::MembershipSpec
Anthos Config Management: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.
Inherits from Protobuf::Message.
Accessors
$msg->config_sync()/$msg->config_sync($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSync)Config Sync configuration for the cluster.
$msg->policy_controller()/$msg->policy_controller($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::PolicyController)Policy Controller configuration for the cluster.
$msg->hierarchy_controller()/$msg->hierarchy_controller($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::HierarchyControllerConfig)Hierarchy Controller configuration for the cluster.
$msg->version()/$msg->version($value)Type:
StringVersion of ACM installed.
$msg->cluster()/$msg->cluster($value)Type:
StringThe user-specified cluster name used by Config Sync cluster-name-selector annotation or ClusterSelector, for applying configs to only a subset of clusters. Omit this field if the cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector. Set this field if a name different from the cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector.
$msg->management()/$msg->management($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::MembershipSpec::Management)Enables automatic Feature management.
Enum: MembershipSpec::Management
MANAGEMENT_UNSPECIFIED=>0MANAGEMENT_AUTOMATIC=>1MANAGEMENT_MANUAL=>2
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSync
Configuration for Config Sync
Inherits from Protobuf::Message.
Accessors
$msg->git()/$msg->git($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::GitConfig)Git repo configuration for the cluster.
$msg->source_format()/$msg->source_format($value)Type:
StringSpecifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
$msg->enabled()/$msg->enabled($value)Type:
BoolEnables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.
$msg->prevent_drift()/$msg->prevent_drift($value)Type:
BoolSet to true to enable the Config Sync admission webhook to prevent drifts. If set to `false`, disables the Config Sync admission webhook and does not prevent drifts.
$msg->oci()/$msg->oci($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::OciConfig)OCI repo configuration for the cluster
$msg->metrics_gcp_service_account_email()/$msg->metrics_gcp_service_account_email($value)Type:
StringThe Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA.
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::GitConfig
Git repo configuration for a single cluster.
Inherits from Protobuf::Message.
Accessors
$msg->sync_repo()/$msg->sync_repo($value)Type:
StringThe URL of the Git repository to use as the source of truth.
$msg->sync_branch()/$msg->sync_branch($value)Type:
StringThe branch of the repository to sync from. Default: master.
$msg->policy_dir()/$msg->policy_dir($value)Type:
StringThe path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
$msg->sync_wait_secs()/$msg->sync_wait_secs($value)Type:
Int64Period in seconds between consecutive syncs. Default: 15.
$msg->sync_rev()/$msg->sync_rev($value)Type:
StringGit revision (tag or hash) to check out. Default HEAD.
$msg->secret_type()/$msg->secret_type($value)Type:
StringType of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required.
$msg->https_proxy()/$msg->https_proxy($value)Type:
StringURL for the HTTPS proxy to be used when communicating with the Git repo.
$msg->gcp_service_account_email()/$msg->gcp_service_account_email($value)Type:
StringThe Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::OciConfig
OCI repo configuration for a single cluster
Inherits from Protobuf::Message.
Accessors
$msg->sync_repo()/$msg->sync_repo($value)Type:
StringThe OCI image repository URL for the package to sync from. e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
$msg->policy_dir()/$msg->policy_dir($value)Type:
StringThe absolute path of the directory that contains the local resources. Default: the root directory of the image.
$msg->sync_wait_secs()/$msg->sync_wait_secs($value)Type:
Int64Period in seconds between consecutive syncs. Default: 15.
$msg->secret_type()/$msg->secret_type($value)Type:
StringType of secret configured for access to the Git repo.
$msg->gcp_service_account_email()/$msg->gcp_service_account_email($value)Type:
StringThe Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::PolicyController
Configuration for Policy Controller
Inherits from Protobuf::Message.
Accessors
$msg->enabled()/$msg->enabled($value)Type:
BoolEnables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
$msg->template_library_installed()/$msg->template_library_installed($value)Type:
BoolInstalls the default template library along with Policy Controller.
$msg->audit_interval_seconds()/$msg->audit_interval_seconds($value)Type:
Int64Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
$msg->exemptable_namespaces()/$msg->exemptable_namespaces($value)Type:
StringThe set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
$msg->referential_rules_enabled()/$msg->referential_rules_enabled($value)Type:
BoolEnables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
$msg->log_denies_enabled()/$msg->log_denies_enabled($value)Type:
BoolLogs all denies and dry run failures.
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::HierarchyControllerConfig
Configuration for Hierarchy Controller
Inherits from Protobuf::Message.
Accessors
$msg->enabled()/$msg->enabled($value)Type:
BoolWhether Hierarchy Controller is enabled in this cluster.
$msg->enable_pod_tree_labels()/$msg->enable_pod_tree_labels($value)Type:
BoolWhether pod tree labels are enabled in this cluster.
$msg->enable_hierarchical_resource_quota()/$msg->enable_hierarchical_resource_quota($value)Type:
BoolWhether hierarchical resource quota is enabled in this cluster.
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::HierarchyControllerDeploymentState
Deployment state for Hierarchy Controller
Inherits from Protobuf::Message.
Accessors
$msg->hnc()/$msg->hnc($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)The deployment state for open source HNC (e.g. v0.7.0-hc.0)
$msg->extension()/$msg->extension($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::HierarchyControllerVersion
Version for Hierarchy Controller
Inherits from Protobuf::Message.
Accessors
$msg->hnc()/$msg->hnc($value)Type:
StringVersion for open source HNC
$msg->extension()/$msg->extension($value)Type:
StringVersion for Hierarchy Controller extension
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::HierarchyControllerState
State for Hierarchy Controller
Inherits from Protobuf::Message.
Accessors
$msg->version()/$msg->version($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::HierarchyControllerVersion)The version for Hierarchy Controller
$msg->state()/$msg->state($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::HierarchyControllerDeploymentState)The deployment state for Hierarchy Controller
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::OperatorState
State information for an ACM's Operator
Inherits from Protobuf::Message.
Accessors
$msg->version()/$msg->version($value)Type:
StringThe semenatic version number of the operator
$msg->deployment_state()/$msg->deployment_state($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)The state of the Operator's deployment
$msg->errors()/$msg->errors($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::InstallError)Install errors.
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::InstallError
Errors pertaining to the installation of ACM
Inherits from Protobuf::Message.
Accessors
$msg->error_message()/$msg->error_message($value)Type:
StringA string representing the user facing error message
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSyncState
State information for ConfigSync
Inherits from Protobuf::Message.
Accessors
$msg->version()/$msg->version($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSyncVersion)The version of ConfigSync deployed
$msg->deployment_state()/$msg->deployment_state($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSyncDeploymentState)Information about the deployment of ConfigSync, including the version of the various Pods deployed
$msg->sync_state()/$msg->sync_state($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::SyncState)The state of ConfigSync's process to sync configs to a cluster
$msg->errors()/$msg->errors($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSyncError)Errors pertaining to the installation of Config Sync.
$msg->rootsync_crd()/$msg->rootsync_crd($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::ConfigSyncState::CRDState)The state of the RootSync CRD
$msg->reposync_crd()/$msg->reposync_crd($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::ConfigSyncState::CRDState)The state of the Reposync CRD
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::ConfigSyncState::State)The state of CS This field summarizes the other fields in this message.
Enum: ConfigSyncState::CRDState
CRD_STATE_UNSPECIFIED=>0NOT_INSTALLED=>1INSTALLED=>2TERMINATING=>3INSTALLING=>4
Enum: ConfigSyncState::State
STATE_UNSPECIFIED=>0CONFIG_SYNC_NOT_INSTALLED=>1CONFIG_SYNC_INSTALLED=>2CONFIG_SYNC_ERROR=>3CONFIG_SYNC_PENDING=>4
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSyncError
Errors pertaining to the installation of Config Sync
Inherits from Protobuf::Message.
Accessors
$msg->error_message()/$msg->error_message($value)Type:
StringA string representing the user facing error message
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSyncVersion
Specific versioning information pertaining to ConfigSync's Pods
Inherits from Protobuf::Message.
Accessors
$msg->importer()/$msg->importer($value)Type:
StringVersion of the deployed importer pod
$msg->syncer()/$msg->syncer($value)Type:
StringVersion of the deployed syncer pod
$msg->git_sync()/$msg->git_sync($value)Type:
StringVersion of the deployed git-sync pod
$msg->monitor()/$msg->monitor($value)Type:
StringVersion of the deployed monitor pod
$msg->reconciler_manager()/$msg->reconciler_manager($value)Type:
StringVersion of the deployed reconciler-manager pod
$msg->root_reconciler()/$msg->root_reconciler($value)Type:
StringVersion of the deployed reconciler container in root-reconciler pod
$msg->admission_webhook()/$msg->admission_webhook($value)Type:
StringVersion of the deployed admission_webhook pod
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ConfigSyncDeploymentState
The state of ConfigSync's deployment on a cluster
Inherits from Protobuf::Message.
Accessors
$msg->importer()/$msg->importer($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)Deployment state of the importer pod
$msg->syncer()/$msg->syncer($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)Deployment state of the syncer pod
$msg->git_sync()/$msg->git_sync($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)Deployment state of the git-sync pod
$msg->monitor()/$msg->monitor($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)Deployment state of the monitor pod
$msg->reconciler_manager()/$msg->reconciler_manager($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)Deployment state of reconciler-manager pod
$msg->root_reconciler()/$msg->root_reconciler($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)Deployment state of root-reconciler
$msg->admission_webhook()/$msg->admission_webhook($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)Deployment state of admission-webhook
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::SyncState
State indicating an ACM's progress syncing configurations to a cluster
Inherits from Protobuf::Message.
Accessors
$msg->source_token()/$msg->source_token($value)Type:
StringToken indicating the state of the repo.
$msg->import_token()/$msg->import_token($value)Type:
StringToken indicating the state of the importer.
$msg->sync_token()/$msg->sync_token($value)Type:
StringToken indicating the state of the syncer.
$msg->last_sync()/$msg->last_sync($value)Type:
StringDeprecated: 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
$msg->last_sync_time()/$msg->last_sync_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp type of when ACM last successfully synced the repo
$msg->code()/$msg->code($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::SyncState::SyncCode)Sync status code
$msg->errors()/$msg->errors($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::SyncError)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.
Enum: SyncState::SyncCode
SYNC_CODE_UNSPECIFIED=>0SYNCED=>1PENDING=>2ERROR=>3NOT_CONFIGURED=>4NOT_INSTALLED=>5UNAUTHORIZED=>6UNREACHABLE=>7
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::SyncError
An ACM created error representing a problem syncing configurations
Inherits from Protobuf::Message.
Accessors
$msg->code()/$msg->code($value)Type:
StringAn ACM defined error code
$msg->error_message()/$msg->error_message($value)Type:
StringA description of the error
$msg->error_resources()/$msg->error_resources($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ErrorResource)A list of config(s) associated with the error, if any
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::ErrorResource
Model for a config file in the git repo with an associated Sync error
Inherits from Protobuf::Message.
Accessors
$msg->source_path()/$msg->source_path($value)Type:
StringPath in the git repo of the erroneous config
$msg->resource_name()/$msg->resource_name($value)Type:
StringMetadata name of the resource that is causing an error
$msg->resource_namespace()/$msg->resource_namespace($value)Type:
StringNamespace of the resource that is causing an error
$msg->resource_gvk()/$msg->resource_gvk($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::GroupVersionKind)Group/version/kind of the resource that is causing an error
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::GroupVersionKind
A Kubernetes object's GVK
Inherits from Protobuf::Message.
Accessors
$msg->group()/$msg->group($value)Type:
StringKubernetes Group
$msg->version()/$msg->version($value)Type:
StringKubernetes Version
$msg->kind()/$msg->kind($value)Type:
StringKubernetes Kind
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::PolicyControllerState
State for PolicyControllerState.
Inherits from Protobuf::Message.
Accessors
$msg->version()/$msg->version($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::PolicyControllerVersion)The version of Gatekeeper Policy Controller deployed.
$msg->deployment_state()/$msg->deployment_state($value)Type:
Message(Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::GatekeeperDeploymentState)The state about the policy controller installation.
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::PolicyControllerVersion
The build version of Gatekeeper Policy Controller is using.
Inherits from Protobuf::Message.
Accessors
$msg->version()/$msg->version($value)Type:
StringThe gatekeeper image tag that is composed of ACM version, git tag, build number.
Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::GatekeeperDeploymentState
State of Policy Controller installation.
Inherits from Protobuf::Message.
Accessors
$msg->gatekeeper_controller_manager_state()/$msg->gatekeeper_controller_manager_state($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)Status of gatekeeper-controller-manager pod.
$msg->gatekeeper_audit()/$msg->gatekeeper_audit($value)Type:
Enum(Google::Cloud::Gkehub::Configmanagement::V1::DeploymentState)Status of gatekeeper-audit deployment.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Gkehub::Configmanagement::V1::Configmanagement::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.