configmanagement

package
v0.0.0-...-bd15449 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 DeploymentState.

View Source
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,
	}
)

Enum value maps for SyncState_SyncCode.

View Source
var File_google_cloud_gkehub_v1beta_configmanagement_configmanagement_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BinauthzConfig

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
}

Configuration for Binauthz

func (*BinauthzConfig) Descriptor deprecated

func (*BinauthzConfig) Descriptor() ([]byte, []int)

Deprecated: Use BinauthzConfig.ProtoReflect.Descriptor instead.

func (*BinauthzConfig) GetEnabled

func (x *BinauthzConfig) GetEnabled() bool

func (*BinauthzConfig) ProtoMessage

func (*BinauthzConfig) ProtoMessage()

func (*BinauthzConfig) ProtoReflect

func (x *BinauthzConfig) ProtoReflect() protoreflect.Message

func (*BinauthzConfig) Reset

func (x *BinauthzConfig) Reset()

func (*BinauthzConfig) String

func (x *BinauthzConfig) String() string

type BinauthzState

type BinauthzState struct {

	// The state of the binauthz webhook.
	Webhook DeploymentState `` /* 133-byte string literal not displayed */
	// The version of binauthz that is installed.
	Version *BinauthzVersion `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

State for Binauthz

func (*BinauthzState) Descriptor deprecated

func (*BinauthzState) Descriptor() ([]byte, []int)

Deprecated: Use BinauthzState.ProtoReflect.Descriptor instead.

func (*BinauthzState) GetVersion

func (x *BinauthzState) GetVersion() *BinauthzVersion

func (*BinauthzState) GetWebhook

func (x *BinauthzState) GetWebhook() DeploymentState

func (*BinauthzState) ProtoMessage

func (*BinauthzState) ProtoMessage()

func (*BinauthzState) ProtoReflect

func (x *BinauthzState) ProtoReflect() protoreflect.Message

func (*BinauthzState) Reset

func (x *BinauthzState) Reset()

func (*BinauthzState) String

func (x *BinauthzState) String() string

type BinauthzVersion

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
}

The version of binauthz.

func (*BinauthzVersion) Descriptor deprecated

func (*BinauthzVersion) Descriptor() ([]byte, []int)

Deprecated: Use BinauthzVersion.ProtoReflect.Descriptor instead.

func (*BinauthzVersion) GetWebhookVersion

func (x *BinauthzVersion) GetWebhookVersion() string

func (*BinauthzVersion) ProtoMessage

func (*BinauthzVersion) ProtoMessage()

func (*BinauthzVersion) ProtoReflect

func (x *BinauthzVersion) ProtoReflect() protoreflect.Message

func (*BinauthzVersion) Reset

func (x *BinauthzVersion) Reset()

func (*BinauthzVersion) String

func (x *BinauthzVersion) String() string

type ConfigSync

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
}

Configuration for Config Sync

func (*ConfigSync) Descriptor deprecated

func (*ConfigSync) Descriptor() ([]byte, []int)

Deprecated: Use ConfigSync.ProtoReflect.Descriptor instead.

func (*ConfigSync) GetGit

func (x *ConfigSync) GetGit() *GitConfig

func (*ConfigSync) GetSourceFormat

func (x *ConfigSync) GetSourceFormat() string

func (*ConfigSync) ProtoMessage

func (*ConfigSync) ProtoMessage()

func (*ConfigSync) ProtoReflect

func (x *ConfigSync) ProtoReflect() protoreflect.Message

func (*ConfigSync) Reset

func (x *ConfigSync) Reset()

func (*ConfigSync) String

func (x *ConfigSync) String() string

type ConfigSyncDeploymentState

type ConfigSyncDeploymentState struct {

	// Deployment state of the importer pod
	Importer DeploymentState `` /* 135-byte string literal not displayed */
	// Deployment state of the syncer pod
	Syncer DeploymentState `` /* 131-byte string literal not displayed */
	// Deployment state of the git-sync pod
	GitSync DeploymentState `` /* 148-byte string literal not displayed */
	// Deployment state of the monitor pod
	Monitor DeploymentState `` /* 133-byte string literal not displayed */
	// Deployment state of reconciler-manager pod
	ReconcilerManager DeploymentState `` /* 178-byte string literal not displayed */
	// Deployment state of root-reconciler
	RootReconciler DeploymentState `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

The state of ConfigSync's deployment on a cluster

func (*ConfigSyncDeploymentState) Descriptor deprecated

func (*ConfigSyncDeploymentState) Descriptor() ([]byte, []int)

Deprecated: Use ConfigSyncDeploymentState.ProtoReflect.Descriptor instead.

func (*ConfigSyncDeploymentState) GetGitSync

func (*ConfigSyncDeploymentState) GetImporter

func (x *ConfigSyncDeploymentState) GetImporter() DeploymentState

func (*ConfigSyncDeploymentState) GetMonitor

func (*ConfigSyncDeploymentState) GetReconcilerManager

func (x *ConfigSyncDeploymentState) GetReconcilerManager() DeploymentState

func (*ConfigSyncDeploymentState) GetRootReconciler

func (x *ConfigSyncDeploymentState) GetRootReconciler() DeploymentState

func (*ConfigSyncDeploymentState) GetSyncer

func (*ConfigSyncDeploymentState) ProtoMessage

func (*ConfigSyncDeploymentState) ProtoMessage()

func (*ConfigSyncDeploymentState) ProtoReflect

func (*ConfigSyncDeploymentState) Reset

func (x *ConfigSyncDeploymentState) Reset()

func (*ConfigSyncDeploymentState) String

func (x *ConfigSyncDeploymentState) String() string

type ConfigSyncState

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
}

State information for ConfigSync

func (*ConfigSyncState) Descriptor deprecated

func (*ConfigSyncState) Descriptor() ([]byte, []int)

Deprecated: Use ConfigSyncState.ProtoReflect.Descriptor instead.

func (*ConfigSyncState) GetDeploymentState

func (x *ConfigSyncState) GetDeploymentState() *ConfigSyncDeploymentState

func (*ConfigSyncState) GetSyncState

func (x *ConfigSyncState) GetSyncState() *SyncState

func (*ConfigSyncState) GetVersion

func (x *ConfigSyncState) GetVersion() *ConfigSyncVersion

func (*ConfigSyncState) ProtoMessage

func (*ConfigSyncState) ProtoMessage()

func (*ConfigSyncState) ProtoReflect

func (x *ConfigSyncState) ProtoReflect() protoreflect.Message

func (*ConfigSyncState) Reset

func (x *ConfigSyncState) Reset()

func (*ConfigSyncState) String

func (x *ConfigSyncState) String() string

type ConfigSyncVersion

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
}

Specific versioning information pertaining to ConfigSync's Pods

func (*ConfigSyncVersion) Descriptor deprecated

func (*ConfigSyncVersion) Descriptor() ([]byte, []int)

Deprecated: Use ConfigSyncVersion.ProtoReflect.Descriptor instead.

func (*ConfigSyncVersion) GetGitSync

func (x *ConfigSyncVersion) GetGitSync() string

func (*ConfigSyncVersion) GetImporter

func (x *ConfigSyncVersion) GetImporter() string

func (*ConfigSyncVersion) GetMonitor

func (x *ConfigSyncVersion) GetMonitor() string

func (*ConfigSyncVersion) GetReconcilerManager

func (x *ConfigSyncVersion) GetReconcilerManager() string

func (*ConfigSyncVersion) GetRootReconciler

func (x *ConfigSyncVersion) GetRootReconciler() string

func (*ConfigSyncVersion) GetSyncer

func (x *ConfigSyncVersion) GetSyncer() string

func (*ConfigSyncVersion) ProtoMessage

func (*ConfigSyncVersion) ProtoMessage()

func (*ConfigSyncVersion) ProtoReflect

func (x *ConfigSyncVersion) ProtoReflect() protoreflect.Message

func (*ConfigSyncVersion) Reset

func (x *ConfigSyncVersion) Reset()

func (*ConfigSyncVersion) String

func (x *ConfigSyncVersion) String() string

type DeploymentState

type DeploymentState int32

Enum representing the state of an ACM's deployment on a cluster

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

func (DeploymentState) Enum

func (x DeploymentState) Enum() *DeploymentState

func (DeploymentState) EnumDescriptor deprecated

func (DeploymentState) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeploymentState.Descriptor instead.

func (DeploymentState) Number

func (DeploymentState) String

func (x DeploymentState) String() string

func (DeploymentState) Type

type ErrorResource

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
}

Model for a config file in the git repo with an associated Sync error

func (*ErrorResource) Descriptor deprecated

func (*ErrorResource) Descriptor() ([]byte, []int)

Deprecated: Use ErrorResource.ProtoReflect.Descriptor instead.

func (*ErrorResource) GetResourceGvk

func (x *ErrorResource) GetResourceGvk() *GroupVersionKind

func (*ErrorResource) GetResourceName

func (x *ErrorResource) GetResourceName() string

func (*ErrorResource) GetResourceNamespace

func (x *ErrorResource) GetResourceNamespace() string

func (*ErrorResource) GetSourcePath

func (x *ErrorResource) GetSourcePath() string

func (*ErrorResource) ProtoMessage

func (*ErrorResource) ProtoMessage()

func (*ErrorResource) ProtoReflect

func (x *ErrorResource) ProtoReflect() protoreflect.Message

func (*ErrorResource) Reset

func (x *ErrorResource) Reset()

func (*ErrorResource) String

func (x *ErrorResource) String() string

type GatekeeperDeploymentState

type GatekeeperDeploymentState struct {

	// Status of gatekeeper-controller-manager pod.
	GatekeeperControllerManagerState DeploymentState `` /* 227-byte string literal not displayed */
	// Status of gatekeeper-audit deployment.
	GatekeeperAudit DeploymentState `` /* 172-byte string literal not displayed */
	// contains filtered or unexported fields
}

State of Policy Controller installation.

func (*GatekeeperDeploymentState) Descriptor deprecated

func (*GatekeeperDeploymentState) Descriptor() ([]byte, []int)

Deprecated: Use GatekeeperDeploymentState.ProtoReflect.Descriptor instead.

func (*GatekeeperDeploymentState) GetGatekeeperAudit

func (x *GatekeeperDeploymentState) GetGatekeeperAudit() DeploymentState

func (*GatekeeperDeploymentState) GetGatekeeperControllerManagerState

func (x *GatekeeperDeploymentState) GetGatekeeperControllerManagerState() DeploymentState

func (*GatekeeperDeploymentState) ProtoMessage

func (*GatekeeperDeploymentState) ProtoMessage()

func (*GatekeeperDeploymentState) ProtoReflect

func (*GatekeeperDeploymentState) Reset

func (x *GatekeeperDeploymentState) Reset()

func (*GatekeeperDeploymentState) String

func (x *GatekeeperDeploymentState) String() string

type GitConfig

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 `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

Git repo configuration for a single cluster.

func (*GitConfig) Descriptor deprecated

func (*GitConfig) Descriptor() ([]byte, []int)

Deprecated: Use GitConfig.ProtoReflect.Descriptor instead.

func (*GitConfig) GetGcpServiceAccountEmail

func (x *GitConfig) GetGcpServiceAccountEmail() string

func (*GitConfig) GetHttpsProxy

func (x *GitConfig) GetHttpsProxy() string

func (*GitConfig) GetPolicyDir

func (x *GitConfig) GetPolicyDir() string

func (*GitConfig) GetSecretType

func (x *GitConfig) GetSecretType() string

func (*GitConfig) GetSyncBranch

func (x *GitConfig) GetSyncBranch() string

func (*GitConfig) GetSyncRepo

func (x *GitConfig) GetSyncRepo() string

func (*GitConfig) GetSyncRev

func (x *GitConfig) GetSyncRev() string

func (*GitConfig) GetSyncWaitSecs

func (x *GitConfig) GetSyncWaitSecs() int64

func (*GitConfig) ProtoMessage

func (*GitConfig) ProtoMessage()

func (*GitConfig) ProtoReflect

func (x *GitConfig) ProtoReflect() protoreflect.Message

func (*GitConfig) Reset

func (x *GitConfig) Reset()

func (*GitConfig) String

func (x *GitConfig) String() string

type GroupVersionKind

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
}

A Kubernetes object's GVK

func (*GroupVersionKind) Descriptor deprecated

func (*GroupVersionKind) Descriptor() ([]byte, []int)

Deprecated: Use GroupVersionKind.ProtoReflect.Descriptor instead.

func (*GroupVersionKind) GetGroup

func (x *GroupVersionKind) GetGroup() string

func (*GroupVersionKind) GetKind

func (x *GroupVersionKind) GetKind() string

func (*GroupVersionKind) GetVersion

func (x *GroupVersionKind) GetVersion() string

func (*GroupVersionKind) ProtoMessage

func (*GroupVersionKind) ProtoMessage()

func (*GroupVersionKind) ProtoReflect

func (x *GroupVersionKind) ProtoReflect() protoreflect.Message

func (*GroupVersionKind) Reset

func (x *GroupVersionKind) Reset()

func (*GroupVersionKind) String

func (x *GroupVersionKind) String() string

type HierarchyControllerConfig

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 `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration for Hierarchy Controller

func (*HierarchyControllerConfig) Descriptor deprecated

func (*HierarchyControllerConfig) Descriptor() ([]byte, []int)

Deprecated: Use HierarchyControllerConfig.ProtoReflect.Descriptor instead.

func (*HierarchyControllerConfig) GetEnableHierarchicalResourceQuota

func (x *HierarchyControllerConfig) GetEnableHierarchicalResourceQuota() bool

func (*HierarchyControllerConfig) GetEnablePodTreeLabels

func (x *HierarchyControllerConfig) GetEnablePodTreeLabels() bool

func (*HierarchyControllerConfig) GetEnabled

func (x *HierarchyControllerConfig) GetEnabled() bool

func (*HierarchyControllerConfig) ProtoMessage

func (*HierarchyControllerConfig) ProtoMessage()

func (*HierarchyControllerConfig) ProtoReflect

func (*HierarchyControllerConfig) Reset

func (x *HierarchyControllerConfig) Reset()

func (*HierarchyControllerConfig) String

func (x *HierarchyControllerConfig) String() string

type HierarchyControllerDeploymentState

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.v1beta.DeploymentState" json:"hnc,omitempty"`
	// The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
	Extension DeploymentState `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Deployment state for Hierarchy Controller

func (*HierarchyControllerDeploymentState) Descriptor deprecated

func (*HierarchyControllerDeploymentState) Descriptor() ([]byte, []int)

Deprecated: Use HierarchyControllerDeploymentState.ProtoReflect.Descriptor instead.

func (*HierarchyControllerDeploymentState) GetExtension

func (*HierarchyControllerDeploymentState) GetHnc

func (*HierarchyControllerDeploymentState) ProtoMessage

func (*HierarchyControllerDeploymentState) ProtoMessage()

func (*HierarchyControllerDeploymentState) ProtoReflect

func (*HierarchyControllerDeploymentState) Reset

func (*HierarchyControllerDeploymentState) String

type HierarchyControllerState

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
}

State for Hierarchy Controller

func (*HierarchyControllerState) Descriptor deprecated

func (*HierarchyControllerState) Descriptor() ([]byte, []int)

Deprecated: Use HierarchyControllerState.ProtoReflect.Descriptor instead.

func (*HierarchyControllerState) GetState

func (*HierarchyControllerState) GetVersion

func (*HierarchyControllerState) ProtoMessage

func (*HierarchyControllerState) ProtoMessage()

func (*HierarchyControllerState) ProtoReflect

func (x *HierarchyControllerState) ProtoReflect() protoreflect.Message

func (*HierarchyControllerState) Reset

func (x *HierarchyControllerState) Reset()

func (*HierarchyControllerState) String

func (x *HierarchyControllerState) String() string

type HierarchyControllerVersion

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
}

Version for Hierarchy Controller

func (*HierarchyControllerVersion) Descriptor deprecated

func (*HierarchyControllerVersion) Descriptor() ([]byte, []int)

Deprecated: Use HierarchyControllerVersion.ProtoReflect.Descriptor instead.

func (*HierarchyControllerVersion) GetExtension

func (x *HierarchyControllerVersion) GetExtension() string

func (*HierarchyControllerVersion) GetHnc

func (x *HierarchyControllerVersion) GetHnc() string

func (*HierarchyControllerVersion) ProtoMessage

func (*HierarchyControllerVersion) ProtoMessage()

func (*HierarchyControllerVersion) ProtoReflect

func (*HierarchyControllerVersion) Reset

func (x *HierarchyControllerVersion) Reset()

func (*HierarchyControllerVersion) String

func (x *HierarchyControllerVersion) String() string

type InstallError

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
}

Errors pertaining to the installation of ACM

func (*InstallError) Descriptor deprecated

func (*InstallError) Descriptor() ([]byte, []int)

Deprecated: Use InstallError.ProtoReflect.Descriptor instead.

func (*InstallError) GetErrorMessage

func (x *InstallError) GetErrorMessage() string

func (*InstallError) ProtoMessage

func (*InstallError) ProtoMessage()

func (*InstallError) ProtoReflect

func (x *InstallError) ProtoReflect() protoreflect.Message

func (*InstallError) Reset

func (x *InstallError) Reset()

func (*InstallError) String

func (x *InstallError) String() string

type MembershipSpec

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
}

**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.

func (*MembershipSpec) Descriptor deprecated

func (*MembershipSpec) Descriptor() ([]byte, []int)

Deprecated: Use MembershipSpec.ProtoReflect.Descriptor instead.

func (*MembershipSpec) GetBinauthz

func (x *MembershipSpec) GetBinauthz() *BinauthzConfig

func (*MembershipSpec) GetConfigSync

func (x *MembershipSpec) GetConfigSync() *ConfigSync

func (*MembershipSpec) GetHierarchyController

func (x *MembershipSpec) GetHierarchyController() *HierarchyControllerConfig

func (*MembershipSpec) GetPolicyController

func (x *MembershipSpec) GetPolicyController() *PolicyController

func (*MembershipSpec) GetVersion

func (x *MembershipSpec) GetVersion() string

func (*MembershipSpec) ProtoMessage

func (*MembershipSpec) ProtoMessage()

func (*MembershipSpec) ProtoReflect

func (x *MembershipSpec) ProtoReflect() protoreflect.Message

func (*MembershipSpec) Reset

func (x *MembershipSpec) Reset()

func (*MembershipSpec) String

func (x *MembershipSpec) String() string

type MembershipState

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 `` /* 126-byte string literal not displayed */
	// Binauthz status
	BinauthzState *BinauthzState `protobuf:"bytes,6,opt,name=binauthz_state,json=binauthzState,proto3" json:"binauthz_state,omitempty"`
	// Hierarchy Controller status
	HierarchyControllerState *HierarchyControllerState `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

**Anthos Config Management**: State for a single cluster.

func (*MembershipState) Descriptor deprecated

func (*MembershipState) Descriptor() ([]byte, []int)

Deprecated: Use MembershipState.ProtoReflect.Descriptor instead.

func (*MembershipState) GetBinauthzState

func (x *MembershipState) GetBinauthzState() *BinauthzState

func (*MembershipState) GetClusterName

func (x *MembershipState) GetClusterName() string

func (*MembershipState) GetConfigSyncState

func (x *MembershipState) GetConfigSyncState() *ConfigSyncState

func (*MembershipState) GetHierarchyControllerState

func (x *MembershipState) GetHierarchyControllerState() *HierarchyControllerState

func (*MembershipState) GetMembershipSpec

func (x *MembershipState) GetMembershipSpec() *MembershipSpec

func (*MembershipState) GetOperatorState

func (x *MembershipState) GetOperatorState() *OperatorState

func (*MembershipState) GetPolicyControllerState

func (x *MembershipState) GetPolicyControllerState() *PolicyControllerState

func (*MembershipState) ProtoMessage

func (*MembershipState) ProtoMessage()

func (*MembershipState) ProtoReflect

func (x *MembershipState) ProtoReflect() protoreflect.Message

func (*MembershipState) Reset

func (x *MembershipState) Reset()

func (*MembershipState) String

func (x *MembershipState) String() string

type OperatorState

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 `` /* 172-byte string literal not displayed */
	// Install errors.
	Errors []*InstallError `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

State information for an ACM's Operator

func (*OperatorState) Descriptor deprecated

func (*OperatorState) Descriptor() ([]byte, []int)

Deprecated: Use OperatorState.ProtoReflect.Descriptor instead.

func (*OperatorState) GetDeploymentState

func (x *OperatorState) GetDeploymentState() DeploymentState

func (*OperatorState) GetErrors

func (x *OperatorState) GetErrors() []*InstallError

func (*OperatorState) GetVersion

func (x *OperatorState) GetVersion() string

func (*OperatorState) ProtoMessage

func (*OperatorState) ProtoMessage()

func (*OperatorState) ProtoReflect

func (x *OperatorState) ProtoReflect() protoreflect.Message

func (*OperatorState) Reset

func (x *OperatorState) Reset()

func (*OperatorState) String

func (x *OperatorState) String() string

type PolicyController

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 `` /* 142-byte string literal not displayed */
	// Sets the interval for Policy Controller Audit Scans (in seconds).
	// When set to 0, this disables audit functionality altogether.
	AuditIntervalSeconds *int64 `` /* 130-byte string literal not displayed */
	// 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 `` /* 133-byte string literal not displayed */
	// 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"`
	// contains filtered or unexported fields
}

Configuration for Policy Controller

func (*PolicyController) Descriptor deprecated

func (*PolicyController) Descriptor() ([]byte, []int)

Deprecated: Use PolicyController.ProtoReflect.Descriptor instead.

func (*PolicyController) GetAuditIntervalSeconds

func (x *PolicyController) GetAuditIntervalSeconds() int64

func (*PolicyController) GetEnabled

func (x *PolicyController) GetEnabled() bool

func (*PolicyController) GetExemptableNamespaces

func (x *PolicyController) GetExemptableNamespaces() []string

func (*PolicyController) GetLogDeniesEnabled

func (x *PolicyController) GetLogDeniesEnabled() bool

func (*PolicyController) GetReferentialRulesEnabled

func (x *PolicyController) GetReferentialRulesEnabled() bool

func (*PolicyController) GetTemplateLibraryInstalled

func (x *PolicyController) GetTemplateLibraryInstalled() bool

func (*PolicyController) ProtoMessage

func (*PolicyController) ProtoMessage()

func (*PolicyController) ProtoReflect

func (x *PolicyController) ProtoReflect() protoreflect.Message

func (*PolicyController) Reset

func (x *PolicyController) Reset()

func (*PolicyController) String

func (x *PolicyController) String() string

type 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
}

State for PolicyControllerState.

func (*PolicyControllerState) Descriptor deprecated

func (*PolicyControllerState) Descriptor() ([]byte, []int)

Deprecated: Use PolicyControllerState.ProtoReflect.Descriptor instead.

func (*PolicyControllerState) GetDeploymentState

func (x *PolicyControllerState) GetDeploymentState() *GatekeeperDeploymentState

func (*PolicyControllerState) GetVersion

func (*PolicyControllerState) ProtoMessage

func (*PolicyControllerState) ProtoMessage()

func (*PolicyControllerState) ProtoReflect

func (x *PolicyControllerState) ProtoReflect() protoreflect.Message

func (*PolicyControllerState) Reset

func (x *PolicyControllerState) Reset()

func (*PolicyControllerState) String

func (x *PolicyControllerState) String() string

type PolicyControllerVersion

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
}

The build version of Gatekeeper Policy Controller is using.

func (*PolicyControllerVersion) Descriptor deprecated

func (*PolicyControllerVersion) Descriptor() ([]byte, []int)

Deprecated: Use PolicyControllerVersion.ProtoReflect.Descriptor instead.

func (*PolicyControllerVersion) GetVersion

func (x *PolicyControllerVersion) GetVersion() string

func (*PolicyControllerVersion) ProtoMessage

func (*PolicyControllerVersion) ProtoMessage()

func (*PolicyControllerVersion) ProtoReflect

func (x *PolicyControllerVersion) ProtoReflect() protoreflect.Message

func (*PolicyControllerVersion) Reset

func (x *PolicyControllerVersion) Reset()

func (*PolicyControllerVersion) String

func (x *PolicyControllerVersion) String() string

type SyncError

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
}

An ACM created error representing a problem syncing configurations

func (*SyncError) Descriptor deprecated

func (*SyncError) Descriptor() ([]byte, []int)

Deprecated: Use SyncError.ProtoReflect.Descriptor instead.

func (*SyncError) GetCode

func (x *SyncError) GetCode() string

func (*SyncError) GetErrorMessage

func (x *SyncError) GetErrorMessage() string

func (*SyncError) GetErrorResources

func (x *SyncError) GetErrorResources() []*ErrorResource

func (*SyncError) ProtoMessage

func (*SyncError) ProtoMessage()

func (*SyncError) ProtoReflect

func (x *SyncError) ProtoReflect() protoreflect.Message

func (*SyncError) Reset

func (x *SyncError) Reset()

func (*SyncError) String

func (x *SyncError) String() string

type SyncState

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 `` /* 130-byte string literal not displayed */
	// 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
}

State indicating an ACM's progress syncing configurations to a cluster

func (*SyncState) Descriptor deprecated

func (*SyncState) Descriptor() ([]byte, []int)

Deprecated: Use SyncState.ProtoReflect.Descriptor instead.

func (*SyncState) GetCode

func (x *SyncState) GetCode() SyncState_SyncCode

func (*SyncState) GetErrors

func (x *SyncState) GetErrors() []*SyncError

func (*SyncState) GetImportToken

func (x *SyncState) GetImportToken() string

func (*SyncState) GetLastSync deprecated

func (x *SyncState) GetLastSync() string

Deprecated: Do not use.

func (*SyncState) GetLastSyncTime

func (x *SyncState) GetLastSyncTime() *timestamppb.Timestamp

func (*SyncState) GetSourceToken

func (x *SyncState) GetSourceToken() string

func (*SyncState) GetSyncToken

func (x *SyncState) GetSyncToken() string

func (*SyncState) ProtoMessage

func (*SyncState) ProtoMessage()

func (*SyncState) ProtoReflect

func (x *SyncState) ProtoReflect() protoreflect.Message

func (*SyncState) Reset

func (x *SyncState) Reset()

func (*SyncState) String

func (x *SyncState) String() string

type SyncState_SyncCode

type SyncState_SyncCode int32

An enum representing an ACM's status syncing configs to a cluster

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

func (SyncState_SyncCode) Enum

func (SyncState_SyncCode) EnumDescriptor deprecated

func (SyncState_SyncCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SyncState_SyncCode.Descriptor instead.

func (SyncState_SyncCode) Number

func (SyncState_SyncCode) String

func (x SyncState_SyncCode) String() string

func (SyncState_SyncCode) Type

Jump to

Keyboard shortcuts

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