Documentation
¶
Index ¶
- Variables
- type BundleInstallSpec
- func (*BundleInstallSpec) Descriptor() ([]byte, []int)deprecated
- func (x *BundleInstallSpec) GetExemptedNamespaces() []string
- func (*BundleInstallSpec) ProtoMessage()
- func (x *BundleInstallSpec) ProtoReflect() protoreflect.Message
- func (x *BundleInstallSpec) Reset()
- func (x *BundleInstallSpec) String() string
- type HubConfig
- func (*HubConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HubConfig) GetAuditIntervalSeconds() int64
- func (x *HubConfig) GetConstraintViolationLimit() int64
- func (x *HubConfig) GetDeploymentConfigs() map[string]*PolicyControllerDeploymentConfig
- func (x *HubConfig) GetExemptableNamespaces() []string
- func (x *HubConfig) GetInstallSpec() HubConfig_InstallSpec
- func (x *HubConfig) GetLogDeniesEnabled() bool
- func (x *HubConfig) GetMonitoring() *MonitoringConfig
- func (x *HubConfig) GetMutationEnabled() bool
- func (x *HubConfig) GetPolicyContent() *PolicyContentSpec
- func (x *HubConfig) GetReferentialRulesEnabled() bool
- func (*HubConfig) ProtoMessage()
- func (x *HubConfig) ProtoReflect() protoreflect.Message
- func (x *HubConfig) Reset()
- func (x *HubConfig) String() string
- type HubConfig_InstallSpec
- func (HubConfig_InstallSpec) Descriptor() protoreflect.EnumDescriptor
- func (x HubConfig_InstallSpec) Enum() *HubConfig_InstallSpec
- func (HubConfig_InstallSpec) EnumDescriptor() ([]byte, []int)deprecated
- func (x HubConfig_InstallSpec) Number() protoreflect.EnumNumber
- func (x HubConfig_InstallSpec) String() string
- func (HubConfig_InstallSpec) Type() protoreflect.EnumType
- type MembershipSpec
- func (*MembershipSpec) Descriptor() ([]byte, []int)deprecated
- func (x *MembershipSpec) GetPolicyControllerHubConfig() *HubConfig
- func (x *MembershipSpec) GetVersion() string
- func (*MembershipSpec) ProtoMessage()
- func (x *MembershipSpec) ProtoReflect() protoreflect.Message
- func (x *MembershipSpec) Reset()
- func (x *MembershipSpec) String() string
- type MembershipState
- func (*MembershipState) Descriptor() ([]byte, []int)deprecated
- func (x *MembershipState) GetComponentStates() map[string]*OnClusterState
- func (x *MembershipState) GetPolicyContentState() *PolicyContentState
- func (x *MembershipState) GetState() MembershipState_LifecycleState
- func (*MembershipState) ProtoMessage()
- func (x *MembershipState) ProtoReflect() protoreflect.Message
- func (x *MembershipState) Reset()
- func (x *MembershipState) String() string
- type MembershipState_LifecycleState
- func (MembershipState_LifecycleState) Descriptor() protoreflect.EnumDescriptor
- func (x MembershipState_LifecycleState) Enum() *MembershipState_LifecycleState
- func (MembershipState_LifecycleState) EnumDescriptor() ([]byte, []int)deprecated
- func (x MembershipState_LifecycleState) Number() protoreflect.EnumNumber
- func (x MembershipState_LifecycleState) String() string
- func (MembershipState_LifecycleState) Type() protoreflect.EnumType
- type MonitoringConfig
- func (*MonitoringConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MonitoringConfig) GetBackends() []MonitoringConfig_MonitoringBackend
- func (*MonitoringConfig) ProtoMessage()
- func (x *MonitoringConfig) ProtoReflect() protoreflect.Message
- func (x *MonitoringConfig) Reset()
- func (x *MonitoringConfig) String() string
- type MonitoringConfig_MonitoringBackend
- func (MonitoringConfig_MonitoringBackend) Descriptor() protoreflect.EnumDescriptor
- func (x MonitoringConfig_MonitoringBackend) Enum() *MonitoringConfig_MonitoringBackend
- func (MonitoringConfig_MonitoringBackend) EnumDescriptor() ([]byte, []int)deprecated
- func (x MonitoringConfig_MonitoringBackend) Number() protoreflect.EnumNumber
- func (x MonitoringConfig_MonitoringBackend) String() string
- func (MonitoringConfig_MonitoringBackend) Type() protoreflect.EnumType
- type OnClusterState
- func (*OnClusterState) Descriptor() ([]byte, []int)deprecated
- func (x *OnClusterState) GetDetails() string
- func (x *OnClusterState) GetState() MembershipState_LifecycleState
- func (*OnClusterState) ProtoMessage()
- func (x *OnClusterState) ProtoReflect() protoreflect.Message
- func (x *OnClusterState) Reset()
- func (x *OnClusterState) String() string
- type PolicyContentSpec
- func (*PolicyContentSpec) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyContentSpec) GetBundles() map[string]*BundleInstallSpec
- func (x *PolicyContentSpec) GetTemplateLibrary() *TemplateLibraryConfig
- func (*PolicyContentSpec) ProtoMessage()
- func (x *PolicyContentSpec) ProtoReflect() protoreflect.Message
- func (x *PolicyContentSpec) Reset()
- func (x *PolicyContentSpec) String() string
- type PolicyContentState
- func (*PolicyContentState) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyContentState) GetBundleStates() map[string]*OnClusterState
- func (x *PolicyContentState) GetReferentialSyncConfigState() *OnClusterState
- func (x *PolicyContentState) GetTemplateLibraryState() *OnClusterState
- func (*PolicyContentState) ProtoMessage()
- func (x *PolicyContentState) ProtoReflect() protoreflect.Message
- func (x *PolicyContentState) Reset()
- func (x *PolicyContentState) String() string
- type PolicyControllerDeploymentConfig
- func (*PolicyControllerDeploymentConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyControllerDeploymentConfig) GetContainerResources() *ResourceRequirements
- func (x *PolicyControllerDeploymentConfig) GetPodAffinity() PolicyControllerDeploymentConfig_Affinity
- func (x *PolicyControllerDeploymentConfig) GetPodAntiAffinity() booldeprecated
- func (x *PolicyControllerDeploymentConfig) GetPodTolerations() []*PolicyControllerDeploymentConfig_Toleration
- func (x *PolicyControllerDeploymentConfig) GetReplicaCount() int64
- func (*PolicyControllerDeploymentConfig) ProtoMessage()
- func (x *PolicyControllerDeploymentConfig) ProtoReflect() protoreflect.Message
- func (x *PolicyControllerDeploymentConfig) Reset()
- func (x *PolicyControllerDeploymentConfig) String() string
- type PolicyControllerDeploymentConfig_Affinity
- func (PolicyControllerDeploymentConfig_Affinity) Descriptor() protoreflect.EnumDescriptor
- func (x PolicyControllerDeploymentConfig_Affinity) Enum() *PolicyControllerDeploymentConfig_Affinity
- func (PolicyControllerDeploymentConfig_Affinity) EnumDescriptor() ([]byte, []int)deprecated
- func (x PolicyControllerDeploymentConfig_Affinity) Number() protoreflect.EnumNumber
- func (x PolicyControllerDeploymentConfig_Affinity) String() string
- func (PolicyControllerDeploymentConfig_Affinity) Type() protoreflect.EnumType
- type PolicyControllerDeploymentConfig_Toleration
- func (*PolicyControllerDeploymentConfig_Toleration) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyControllerDeploymentConfig_Toleration) GetEffect() string
- func (x *PolicyControllerDeploymentConfig_Toleration) GetKey() string
- func (x *PolicyControllerDeploymentConfig_Toleration) GetOperator() string
- func (x *PolicyControllerDeploymentConfig_Toleration) GetValue() string
- func (*PolicyControllerDeploymentConfig_Toleration) ProtoMessage()
- func (x *PolicyControllerDeploymentConfig_Toleration) ProtoReflect() protoreflect.Message
- func (x *PolicyControllerDeploymentConfig_Toleration) Reset()
- func (x *PolicyControllerDeploymentConfig_Toleration) String() string
- type ResourceList
- func (*ResourceList) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceList) GetCpu() string
- func (x *ResourceList) GetMemory() string
- func (*ResourceList) ProtoMessage()
- func (x *ResourceList) ProtoReflect() protoreflect.Message
- func (x *ResourceList) Reset()
- func (x *ResourceList) String() string
- type ResourceRequirements
- func (*ResourceRequirements) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceRequirements) GetLimits() *ResourceList
- func (x *ResourceRequirements) GetRequests() *ResourceList
- func (*ResourceRequirements) ProtoMessage()
- func (x *ResourceRequirements) ProtoReflect() protoreflect.Message
- func (x *ResourceRequirements) Reset()
- func (x *ResourceRequirements) String() string
- type TemplateLibraryConfig
- func (*TemplateLibraryConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TemplateLibraryConfig) GetInstallation() TemplateLibraryConfig_Installation
- func (*TemplateLibraryConfig) ProtoMessage()
- func (x *TemplateLibraryConfig) ProtoReflect() protoreflect.Message
- func (x *TemplateLibraryConfig) Reset()
- func (x *TemplateLibraryConfig) String() string
- type TemplateLibraryConfig_Installation
- func (TemplateLibraryConfig_Installation) Descriptor() protoreflect.EnumDescriptor
- func (x TemplateLibraryConfig_Installation) Enum() *TemplateLibraryConfig_Installation
- func (TemplateLibraryConfig_Installation) EnumDescriptor() ([]byte, []int)deprecated
- func (x TemplateLibraryConfig_Installation) Number() protoreflect.EnumNumber
- func (x TemplateLibraryConfig_Installation) String() string
- func (TemplateLibraryConfig_Installation) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( MembershipState_LifecycleState_name = map[int32]string{ 0: "LIFECYCLE_STATE_UNSPECIFIED", 1: "NOT_INSTALLED", 2: "INSTALLING", 3: "ACTIVE", 4: "UPDATING", 5: "DECOMMISSIONING", 6: "CLUSTER_ERROR", 7: "HUB_ERROR", 8: "SUSPENDED", 9: "DETACHED", } MembershipState_LifecycleState_value = map[string]int32{ "LIFECYCLE_STATE_UNSPECIFIED": 0, "NOT_INSTALLED": 1, "INSTALLING": 2, "ACTIVE": 3, "UPDATING": 4, "DECOMMISSIONING": 5, "CLUSTER_ERROR": 6, "HUB_ERROR": 7, "SUSPENDED": 8, "DETACHED": 9, } )
Enum value maps for MembershipState_LifecycleState.
var ( HubConfig_InstallSpec_name = map[int32]string{ 0: "INSTALL_SPEC_UNSPECIFIED", 1: "INSTALL_SPEC_NOT_INSTALLED", 2: "INSTALL_SPEC_ENABLED", 3: "INSTALL_SPEC_SUSPENDED", 4: "INSTALL_SPEC_DETACHED", } HubConfig_InstallSpec_value = map[string]int32{ "INSTALL_SPEC_UNSPECIFIED": 0, "INSTALL_SPEC_NOT_INSTALLED": 1, "INSTALL_SPEC_ENABLED": 2, "INSTALL_SPEC_SUSPENDED": 3, "INSTALL_SPEC_DETACHED": 4, } )
Enum value maps for HubConfig_InstallSpec.
var ( PolicyControllerDeploymentConfig_Affinity_name = map[int32]string{ 0: "AFFINITY_UNSPECIFIED", 1: "NO_AFFINITY", 2: "ANTI_AFFINITY", } PolicyControllerDeploymentConfig_Affinity_value = map[string]int32{ "AFFINITY_UNSPECIFIED": 0, "NO_AFFINITY": 1, "ANTI_AFFINITY": 2, } )
Enum value maps for PolicyControllerDeploymentConfig_Affinity.
var ( TemplateLibraryConfig_Installation_name = map[int32]string{ 0: "INSTALLATION_UNSPECIFIED", 1: "NOT_INSTALLED", 2: "ALL", } TemplateLibraryConfig_Installation_value = map[string]int32{ "INSTALLATION_UNSPECIFIED": 0, "NOT_INSTALLED": 1, "ALL": 2, } )
Enum value maps for TemplateLibraryConfig_Installation.
var ( MonitoringConfig_MonitoringBackend_name = map[int32]string{ 0: "MONITORING_BACKEND_UNSPECIFIED", 1: "PROMETHEUS", 2: "CLOUD_MONITORING", } MonitoringConfig_MonitoringBackend_value = map[string]int32{ "MONITORING_BACKEND_UNSPECIFIED": 0, "PROMETHEUS": 1, "CLOUD_MONITORING": 2, } )
Enum value maps for MonitoringConfig_MonitoringBackend.
var File_mockgcp_cloud_gkehub_policycontroller_v1beta_policycontroller_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BundleInstallSpec ¶
type BundleInstallSpec struct { // The set of namespaces to be exempted from the bundle. ExemptedNamespaces []string `protobuf:"bytes,2,rep,name=exempted_namespaces,json=exemptedNamespaces,proto3" json:"exempted_namespaces,omitempty"` // contains filtered or unexported fields }
BundleInstallSpec is the specification configuration for a single managed bundle.
func (*BundleInstallSpec) Descriptor
deprecated
func (*BundleInstallSpec) Descriptor() ([]byte, []int)
Deprecated: Use BundleInstallSpec.ProtoReflect.Descriptor instead.
func (*BundleInstallSpec) GetExemptedNamespaces ¶
func (x *BundleInstallSpec) GetExemptedNamespaces() []string
func (*BundleInstallSpec) ProtoMessage ¶
func (*BundleInstallSpec) ProtoMessage()
func (*BundleInstallSpec) ProtoReflect ¶
func (x *BundleInstallSpec) ProtoReflect() protoreflect.Message
func (*BundleInstallSpec) Reset ¶
func (x *BundleInstallSpec) Reset()
func (*BundleInstallSpec) String ¶
func (x *BundleInstallSpec) String() string
type HubConfig ¶
type HubConfig struct { // The install_spec represents the intended state specified by the // latest request that mutated install_spec in the feature spec, // not the lifecycle state of the // feature observed by the Hub feature controller // that is reported in the feature state. InstallSpec HubConfig_InstallSpec `` /* 167-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,3,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,5,opt,name=log_denies_enabled,json=logDeniesEnabled,proto3" json:"log_denies_enabled,omitempty"` // Enables the ability to mutate resources using Policy Controller. MutationEnabled bool `protobuf:"varint,6,opt,name=mutation_enabled,json=mutationEnabled,proto3" json:"mutation_enabled,omitempty"` // Monitoring specifies the configuration of monitoring. Monitoring *MonitoringConfig `protobuf:"bytes,8,opt,name=monitoring,proto3,oneof" json:"monitoring,omitempty"` // Specifies the desired policy content on the cluster PolicyContent *PolicyContentSpec `protobuf:"bytes,9,opt,name=policy_content,json=policyContent,proto3,oneof" json:"policy_content,omitempty"` // The maximum number of audit violations to be stored in a constraint. // If not set, the internal default (currently 20) will be used. ConstraintViolationLimit *int64 `` /* 143-byte string literal not displayed */ // Map of deployment configs to deployments ("admission", "audit", // "mutation'). DeploymentConfigs map[string]*PolicyControllerDeploymentConfig `` /* 201-byte string literal not displayed */ // contains filtered or unexported fields }
Configuration for Policy Controller
func (*HubConfig) Descriptor
deprecated
func (*HubConfig) GetAuditIntervalSeconds ¶
func (*HubConfig) GetConstraintViolationLimit ¶
func (*HubConfig) GetDeploymentConfigs ¶
func (x *HubConfig) GetDeploymentConfigs() map[string]*PolicyControllerDeploymentConfig
func (*HubConfig) GetExemptableNamespaces ¶
func (*HubConfig) GetInstallSpec ¶
func (x *HubConfig) GetInstallSpec() HubConfig_InstallSpec
func (*HubConfig) GetLogDeniesEnabled ¶
func (*HubConfig) GetMonitoring ¶
func (x *HubConfig) GetMonitoring() *MonitoringConfig
func (*HubConfig) GetMutationEnabled ¶
func (*HubConfig) GetPolicyContent ¶
func (x *HubConfig) GetPolicyContent() *PolicyContentSpec
func (*HubConfig) GetReferentialRulesEnabled ¶
func (*HubConfig) ProtoMessage ¶
func (*HubConfig) ProtoMessage()
func (*HubConfig) ProtoReflect ¶
func (x *HubConfig) ProtoReflect() protoreflect.Message
type HubConfig_InstallSpec ¶
type HubConfig_InstallSpec int32
The set of installation specs that the Hub Feature controller may actuate.
const ( // Spec is unknown. HubConfig_INSTALL_SPEC_UNSPECIFIED HubConfig_InstallSpec = 0 // Request to uninstall Policy Controller. HubConfig_INSTALL_SPEC_NOT_INSTALLED HubConfig_InstallSpec = 1 // Request to install and enable Policy Controller. HubConfig_INSTALL_SPEC_ENABLED HubConfig_InstallSpec = 2 // Request to suspend Policy Controller i.e. its webhooks. If Policy // Controller is not installed, it will be installed but suspended. HubConfig_INSTALL_SPEC_SUSPENDED HubConfig_InstallSpec = 3 // Request to stop all reconciliation actions by PoCo Hub controller. // This is a breakglass mechanism to stop PoCo Hub from affecting // cluster resources. HubConfig_INSTALL_SPEC_DETACHED HubConfig_InstallSpec = 4 )
func (HubConfig_InstallSpec) Descriptor ¶
func (HubConfig_InstallSpec) Descriptor() protoreflect.EnumDescriptor
func (HubConfig_InstallSpec) Enum ¶
func (x HubConfig_InstallSpec) Enum() *HubConfig_InstallSpec
func (HubConfig_InstallSpec) EnumDescriptor
deprecated
func (HubConfig_InstallSpec) EnumDescriptor() ([]byte, []int)
Deprecated: Use HubConfig_InstallSpec.Descriptor instead.
func (HubConfig_InstallSpec) Number ¶
func (x HubConfig_InstallSpec) Number() protoreflect.EnumNumber
func (HubConfig_InstallSpec) String ¶
func (x HubConfig_InstallSpec) String() string
func (HubConfig_InstallSpec) Type ¶
func (HubConfig_InstallSpec) Type() protoreflect.EnumType
type MembershipSpec ¶
type MembershipSpec struct { // Policy Controller configuration for the cluster. PolicyControllerHubConfig *HubConfig `` /* 140-byte string literal not displayed */ // Version of Policy Controller installed. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
**Policy Controller**: Configuration for a single cluster. Intended to parallel the PolicyController CR.
func (*MembershipSpec) Descriptor
deprecated
func (*MembershipSpec) Descriptor() ([]byte, []int)
Deprecated: Use MembershipSpec.ProtoReflect.Descriptor instead.
func (*MembershipSpec) GetPolicyControllerHubConfig ¶
func (x *MembershipSpec) GetPolicyControllerHubConfig() *HubConfig
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 { // Currently these include (also serving as map keys): // 1. "admission" // 2. "audit" // 3. "mutation" ComponentStates map[string]*OnClusterState `` /* 194-byte string literal not displayed */ // The overall Policy Controller lifecycle state observed by the Hub Feature // controller. State MembershipState_LifecycleState `` /* 145-byte string literal not displayed */ // The overall content state observed by the Hub Feature controller. PolicyContentState *PolicyContentState `protobuf:"bytes,6,opt,name=policy_content_state,json=policyContentState,proto3" json:"policy_content_state,omitempty"` // contains filtered or unexported fields }
**Policy Controller**: State for a single cluster.
func (*MembershipState) Descriptor
deprecated
func (*MembershipState) Descriptor() ([]byte, []int)
Deprecated: Use MembershipState.ProtoReflect.Descriptor instead.
func (*MembershipState) GetComponentStates ¶
func (x *MembershipState) GetComponentStates() map[string]*OnClusterState
func (*MembershipState) GetPolicyContentState ¶
func (x *MembershipState) GetPolicyContentState() *PolicyContentState
func (*MembershipState) GetState ¶
func (x *MembershipState) GetState() MembershipState_LifecycleState
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 MembershipState_LifecycleState ¶
type MembershipState_LifecycleState int32
The set of states Policy Controller can exist in.
const ( // The lifecycle state is unspecified. MembershipState_LIFECYCLE_STATE_UNSPECIFIED MembershipState_LifecycleState = 0 // The PC does not exist on the given cluster, and no k8s resources of any // type that are associated with the PC should exist there. The cluster // does not possess a membership with the PCH. MembershipState_NOT_INSTALLED MembershipState_LifecycleState = 1 // The PCH possesses a Membership, however the PC is not fully installed // on the cluster. // In this state the hub can be expected to be taking actions to // install the PC on the cluster. MembershipState_INSTALLING MembershipState_LifecycleState = 2 // The PC is fully installed on the cluster and in an operational mode. // In this state PCH will be reconciling state with the PC, and // the PC will be performing it's operational tasks per that software. // Entering a READY state requires that the hub has confirmed the PC is // installed and its pods are operational with the version of // the PC the PCH expects. MembershipState_ACTIVE MembershipState_LifecycleState = 3 // The PC is fully installed, but in the process of changing the // configuration (including changing the version of PC either up and down, // or modifying the manifests of PC) of the resources running on the // cluster. The PCH has a Membership, is aware of the version the cluster // should be running in, but has not confirmed for itself that the PC is // running with that version. MembershipState_UPDATING MembershipState_LifecycleState = 4 // The PC may have resources on the cluster, // but the PCH wishes to remove the Membership. // The Membership still exists. MembershipState_DECOMMISSIONING MembershipState_LifecycleState = 5 // The PC is not operational, and the PCH is unable to act to make it // operational. // Entering a CLUSTER_ERROR state happens automatically when the PCH // determines that a PC installed on the cluster is non-operative or // that the cluster does not meet requirements set for the PCH to // administer the cluster but has nevertheless been given an instruction to // do so (such as 'install'). MembershipState_CLUSTER_ERROR MembershipState_LifecycleState = 6 // In this state, the PC may still be operational, // and only the PCH is unable to act. // The hub should not issue instructions to change the PC state, // or otherwise interfere with the on-cluster resources. // Entering a HUB_ERROR state happens automatically when the PCH determines // the hub is in an unhealthy state and it wishes to 'take hands off' to // avoid corrupting the PC or other data. MembershipState_HUB_ERROR MembershipState_LifecycleState = 7 // Policy Controller (PC) is installed but suspended. This means that the // policies are not enforced, but violations are still recorded (through // audit). MembershipState_SUSPENDED MembershipState_LifecycleState = 8 // PoCo Hub is not taking any action to reconcile cluster objects. Changes // to those objects will not be overwritten by PoCo Hub. MembershipState_DETACHED MembershipState_LifecycleState = 9 )
func (MembershipState_LifecycleState) Descriptor ¶
func (MembershipState_LifecycleState) Descriptor() protoreflect.EnumDescriptor
func (MembershipState_LifecycleState) Enum ¶
func (x MembershipState_LifecycleState) Enum() *MembershipState_LifecycleState
func (MembershipState_LifecycleState) EnumDescriptor
deprecated
func (MembershipState_LifecycleState) EnumDescriptor() ([]byte, []int)
Deprecated: Use MembershipState_LifecycleState.Descriptor instead.
func (MembershipState_LifecycleState) Number ¶
func (x MembershipState_LifecycleState) Number() protoreflect.EnumNumber
func (MembershipState_LifecycleState) String ¶
func (x MembershipState_LifecycleState) String() string
func (MembershipState_LifecycleState) Type ¶
func (MembershipState_LifecycleState) Type() protoreflect.EnumType
type MonitoringConfig ¶
type MonitoringConfig struct { // Specifies the list of backends Policy Controller will export to. // An empty list would effectively disable metrics export. Backends []MonitoringConfig_MonitoringBackend `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
MonitoringConfig specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]
func (*MonitoringConfig) Descriptor
deprecated
func (*MonitoringConfig) Descriptor() ([]byte, []int)
Deprecated: Use MonitoringConfig.ProtoReflect.Descriptor instead.
func (*MonitoringConfig) GetBackends ¶
func (x *MonitoringConfig) GetBackends() []MonitoringConfig_MonitoringBackend
func (*MonitoringConfig) ProtoMessage ¶
func (*MonitoringConfig) ProtoMessage()
func (*MonitoringConfig) ProtoReflect ¶
func (x *MonitoringConfig) ProtoReflect() protoreflect.Message
func (*MonitoringConfig) Reset ¶
func (x *MonitoringConfig) Reset()
func (*MonitoringConfig) String ¶
func (x *MonitoringConfig) String() string
type MonitoringConfig_MonitoringBackend ¶
type MonitoringConfig_MonitoringBackend int32
Supported backend options for monitoring
const ( // Backend cannot be determined MonitoringConfig_MONITORING_BACKEND_UNSPECIFIED MonitoringConfig_MonitoringBackend = 0 // Prometheus backend for monitoring MonitoringConfig_PROMETHEUS MonitoringConfig_MonitoringBackend = 1 // Stackdriver/Cloud Monitoring backend for monitoring MonitoringConfig_CLOUD_MONITORING MonitoringConfig_MonitoringBackend = 2 )
func (MonitoringConfig_MonitoringBackend) Descriptor ¶
func (MonitoringConfig_MonitoringBackend) Descriptor() protoreflect.EnumDescriptor
func (MonitoringConfig_MonitoringBackend) Enum ¶
func (x MonitoringConfig_MonitoringBackend) Enum() *MonitoringConfig_MonitoringBackend
func (MonitoringConfig_MonitoringBackend) EnumDescriptor
deprecated
func (MonitoringConfig_MonitoringBackend) EnumDescriptor() ([]byte, []int)
Deprecated: Use MonitoringConfig_MonitoringBackend.Descriptor instead.
func (MonitoringConfig_MonitoringBackend) Number ¶
func (x MonitoringConfig_MonitoringBackend) Number() protoreflect.EnumNumber
func (MonitoringConfig_MonitoringBackend) String ¶
func (x MonitoringConfig_MonitoringBackend) String() string
func (MonitoringConfig_MonitoringBackend) Type ¶
func (MonitoringConfig_MonitoringBackend) Type() protoreflect.EnumType
type OnClusterState ¶
type OnClusterState struct { // The lifecycle state of this component. State MembershipState_LifecycleState `` /* 145-byte string literal not displayed */ // Surface potential errors or information logs. Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
OnClusterState represents the state of a sub-component of Policy Controller.
func (*OnClusterState) Descriptor
deprecated
func (*OnClusterState) Descriptor() ([]byte, []int)
Deprecated: Use OnClusterState.ProtoReflect.Descriptor instead.
func (*OnClusterState) GetDetails ¶
func (x *OnClusterState) GetDetails() string
func (*OnClusterState) GetState ¶
func (x *OnClusterState) GetState() MembershipState_LifecycleState
func (*OnClusterState) ProtoMessage ¶
func (*OnClusterState) ProtoMessage()
func (*OnClusterState) ProtoReflect ¶
func (x *OnClusterState) ProtoReflect() protoreflect.Message
func (*OnClusterState) Reset ¶
func (x *OnClusterState) Reset()
func (*OnClusterState) String ¶
func (x *OnClusterState) String() string
type PolicyContentSpec ¶
type PolicyContentSpec struct { // map of bundle name to BundleInstallSpec. The bundle name maps to the // `bundleName` key in the `policycontroller.gke.io/constraintData` annotation // on a constraint. Bundles map[string]*BundleInstallSpec `` /* 155-byte string literal not displayed */ // Configures the installation of the Template Library. TemplateLibrary *TemplateLibraryConfig `protobuf:"bytes,2,opt,name=template_library,json=templateLibrary,proto3" json:"template_library,omitempty"` // contains filtered or unexported fields }
PolicyContentSpec defines the user's desired content configuration on the cluster.
func (*PolicyContentSpec) Descriptor
deprecated
func (*PolicyContentSpec) Descriptor() ([]byte, []int)
Deprecated: Use PolicyContentSpec.ProtoReflect.Descriptor instead.
func (*PolicyContentSpec) GetBundles ¶
func (x *PolicyContentSpec) GetBundles() map[string]*BundleInstallSpec
func (*PolicyContentSpec) GetTemplateLibrary ¶
func (x *PolicyContentSpec) GetTemplateLibrary() *TemplateLibraryConfig
func (*PolicyContentSpec) ProtoMessage ¶
func (*PolicyContentSpec) ProtoMessage()
func (*PolicyContentSpec) ProtoReflect ¶
func (x *PolicyContentSpec) ProtoReflect() protoreflect.Message
func (*PolicyContentSpec) Reset ¶
func (x *PolicyContentSpec) Reset()
func (*PolicyContentSpec) String ¶
func (x *PolicyContentSpec) String() string
type PolicyContentState ¶
type PolicyContentState struct { // The state of the template library TemplateLibraryState *OnClusterState `protobuf:"bytes,1,opt,name=template_library_state,json=templateLibraryState,proto3" json:"template_library_state,omitempty"` // The state of the any bundles included in the chosen // version of the manifest BundleStates map[string]*OnClusterState `` /* 185-byte string literal not displayed */ // The state of the referential data sync configuration. This could // represent the state of either the syncSet object(s) or the config // object, depending on the version of PoCo configured by the user. ReferentialSyncConfigState *OnClusterState `` /* 143-byte string literal not displayed */ // contains filtered or unexported fields }
The state of the policy controller policy content
func (*PolicyContentState) Descriptor
deprecated
func (*PolicyContentState) Descriptor() ([]byte, []int)
Deprecated: Use PolicyContentState.ProtoReflect.Descriptor instead.
func (*PolicyContentState) GetBundleStates ¶
func (x *PolicyContentState) GetBundleStates() map[string]*OnClusterState
func (*PolicyContentState) GetReferentialSyncConfigState ¶
func (x *PolicyContentState) GetReferentialSyncConfigState() *OnClusterState
func (*PolicyContentState) GetTemplateLibraryState ¶
func (x *PolicyContentState) GetTemplateLibraryState() *OnClusterState
func (*PolicyContentState) ProtoMessage ¶
func (*PolicyContentState) ProtoMessage()
func (*PolicyContentState) ProtoReflect ¶
func (x *PolicyContentState) ProtoReflect() protoreflect.Message
func (*PolicyContentState) Reset ¶
func (x *PolicyContentState) Reset()
func (*PolicyContentState) String ¶
func (x *PolicyContentState) String() string
type PolicyControllerDeploymentConfig ¶
type PolicyControllerDeploymentConfig struct { // Pod replica count. ReplicaCount *int64 `protobuf:"varint,1,opt,name=replica_count,json=replicaCount,proto3,oneof" json:"replica_count,omitempty"` // Container resource requirements. ContainerResources *ResourceRequirements `protobuf:"bytes,2,opt,name=container_resources,json=containerResources,proto3,oneof" json:"container_resources,omitempty"` // Pod anti-affinity enablement. Deprecated: use `pod_affinity` instead. // // Deprecated: Do not use. PodAntiAffinity *bool `protobuf:"varint,3,opt,name=pod_anti_affinity,json=podAntiAffinity,proto3,oneof" json:"pod_anti_affinity,omitempty"` // Pod tolerations of node taints. PodTolerations []*PolicyControllerDeploymentConfig_Toleration `protobuf:"bytes,4,rep,name=pod_tolerations,json=podTolerations,proto3" json:"pod_tolerations,omitempty"` // Pod affinity configuration. PodAffinity PolicyControllerDeploymentConfig_Affinity `` /* 187-byte string literal not displayed */ // contains filtered or unexported fields }
Deployment-specific configuration.
func (*PolicyControllerDeploymentConfig) Descriptor
deprecated
func (*PolicyControllerDeploymentConfig) Descriptor() ([]byte, []int)
Deprecated: Use PolicyControllerDeploymentConfig.ProtoReflect.Descriptor instead.
func (*PolicyControllerDeploymentConfig) GetContainerResources ¶
func (x *PolicyControllerDeploymentConfig) GetContainerResources() *ResourceRequirements
func (*PolicyControllerDeploymentConfig) GetPodAffinity ¶
func (x *PolicyControllerDeploymentConfig) GetPodAffinity() PolicyControllerDeploymentConfig_Affinity
func (*PolicyControllerDeploymentConfig) GetPodAntiAffinity
deprecated
func (x *PolicyControllerDeploymentConfig) GetPodAntiAffinity() bool
Deprecated: Do not use.
func (*PolicyControllerDeploymentConfig) GetPodTolerations ¶
func (x *PolicyControllerDeploymentConfig) GetPodTolerations() []*PolicyControllerDeploymentConfig_Toleration
func (*PolicyControllerDeploymentConfig) GetReplicaCount ¶
func (x *PolicyControllerDeploymentConfig) GetReplicaCount() int64
func (*PolicyControllerDeploymentConfig) ProtoMessage ¶
func (*PolicyControllerDeploymentConfig) ProtoMessage()
func (*PolicyControllerDeploymentConfig) ProtoReflect ¶
func (x *PolicyControllerDeploymentConfig) ProtoReflect() protoreflect.Message
func (*PolicyControllerDeploymentConfig) Reset ¶
func (x *PolicyControllerDeploymentConfig) Reset()
func (*PolicyControllerDeploymentConfig) String ¶
func (x *PolicyControllerDeploymentConfig) String() string
type PolicyControllerDeploymentConfig_Affinity ¶
type PolicyControllerDeploymentConfig_Affinity int32
The pod affinity configuration used by a deployment.
const ( // No affinity configuration has been specified. PolicyControllerDeploymentConfig_AFFINITY_UNSPECIFIED PolicyControllerDeploymentConfig_Affinity = 0 // Affinity configurations will be removed from the deployment. PolicyControllerDeploymentConfig_NO_AFFINITY PolicyControllerDeploymentConfig_Affinity = 1 // Anti-affinity configuration will be applied to this deployment. // Default for admissions deployment. PolicyControllerDeploymentConfig_ANTI_AFFINITY PolicyControllerDeploymentConfig_Affinity = 2 )
func (PolicyControllerDeploymentConfig_Affinity) Descriptor ¶
func (PolicyControllerDeploymentConfig_Affinity) Descriptor() protoreflect.EnumDescriptor
func (PolicyControllerDeploymentConfig_Affinity) EnumDescriptor
deprecated
func (PolicyControllerDeploymentConfig_Affinity) EnumDescriptor() ([]byte, []int)
Deprecated: Use PolicyControllerDeploymentConfig_Affinity.Descriptor instead.
func (PolicyControllerDeploymentConfig_Affinity) Number ¶
func (x PolicyControllerDeploymentConfig_Affinity) Number() protoreflect.EnumNumber
func (PolicyControllerDeploymentConfig_Affinity) String ¶
func (x PolicyControllerDeploymentConfig_Affinity) String() string
func (PolicyControllerDeploymentConfig_Affinity) Type ¶
func (PolicyControllerDeploymentConfig_Affinity) Type() protoreflect.EnumType
type PolicyControllerDeploymentConfig_Toleration ¶
type PolicyControllerDeploymentConfig_Toleration struct { // Matches a taint key (not necessarily unique). Key *string `protobuf:"bytes,1,opt,name=key,proto3,oneof" json:"key,omitempty"` // Matches a taint operator. Operator *string `protobuf:"bytes,2,opt,name=operator,proto3,oneof" json:"operator,omitempty"` // Matches a taint value. Value *string `protobuf:"bytes,3,opt,name=value,proto3,oneof" json:"value,omitempty"` // Matches a taint effect. Effect *string `protobuf:"bytes,4,opt,name=effect,proto3,oneof" json:"effect,omitempty"` // contains filtered or unexported fields }
Toleration of a node taint.
func (*PolicyControllerDeploymentConfig_Toleration) Descriptor
deprecated
func (*PolicyControllerDeploymentConfig_Toleration) Descriptor() ([]byte, []int)
Deprecated: Use PolicyControllerDeploymentConfig_Toleration.ProtoReflect.Descriptor instead.
func (*PolicyControllerDeploymentConfig_Toleration) GetEffect ¶
func (x *PolicyControllerDeploymentConfig_Toleration) GetEffect() string
func (*PolicyControllerDeploymentConfig_Toleration) GetKey ¶
func (x *PolicyControllerDeploymentConfig_Toleration) GetKey() string
func (*PolicyControllerDeploymentConfig_Toleration) GetOperator ¶
func (x *PolicyControllerDeploymentConfig_Toleration) GetOperator() string
func (*PolicyControllerDeploymentConfig_Toleration) GetValue ¶
func (x *PolicyControllerDeploymentConfig_Toleration) GetValue() string
func (*PolicyControllerDeploymentConfig_Toleration) ProtoMessage ¶
func (*PolicyControllerDeploymentConfig_Toleration) ProtoMessage()
func (*PolicyControllerDeploymentConfig_Toleration) ProtoReflect ¶
func (x *PolicyControllerDeploymentConfig_Toleration) ProtoReflect() protoreflect.Message
func (*PolicyControllerDeploymentConfig_Toleration) Reset ¶
func (x *PolicyControllerDeploymentConfig_Toleration) Reset()
func (*PolicyControllerDeploymentConfig_Toleration) String ¶
func (x *PolicyControllerDeploymentConfig_Toleration) String() string
type ResourceList ¶
type ResourceList struct { // Memory requirement expressed in Kubernetes resource units. Memory *string `protobuf:"bytes,1,opt,name=memory,proto3,oneof" json:"memory,omitempty"` // CPU requirement expressed in Kubernetes resource units. Cpu *string `protobuf:"bytes,2,opt,name=cpu,proto3,oneof" json:"cpu,omitempty"` // contains filtered or unexported fields }
ResourceList contains container resource requirements.
func (*ResourceList) Descriptor
deprecated
func (*ResourceList) Descriptor() ([]byte, []int)
Deprecated: Use ResourceList.ProtoReflect.Descriptor instead.
func (*ResourceList) GetCpu ¶
func (x *ResourceList) GetCpu() string
func (*ResourceList) GetMemory ¶
func (x *ResourceList) GetMemory() string
func (*ResourceList) ProtoMessage ¶
func (*ResourceList) ProtoMessage()
func (*ResourceList) ProtoReflect ¶
func (x *ResourceList) ProtoReflect() protoreflect.Message
func (*ResourceList) Reset ¶
func (x *ResourceList) Reset()
func (*ResourceList) String ¶
func (x *ResourceList) String() string
type ResourceRequirements ¶
type ResourceRequirements struct { // Limits describes the maximum amount of compute resources allowed for use by // the running container. Limits *ResourceList `protobuf:"bytes,1,opt,name=limits,proto3,oneof" json:"limits,omitempty"` // Requests describes the amount of compute resources reserved for the // container by the kube-scheduler. Requests *ResourceList `protobuf:"bytes,2,opt,name=requests,proto3,oneof" json:"requests,omitempty"` // contains filtered or unexported fields }
ResourceRequirements describes the compute resource requirements.
func (*ResourceRequirements) Descriptor
deprecated
func (*ResourceRequirements) Descriptor() ([]byte, []int)
Deprecated: Use ResourceRequirements.ProtoReflect.Descriptor instead.
func (*ResourceRequirements) GetLimits ¶
func (x *ResourceRequirements) GetLimits() *ResourceList
func (*ResourceRequirements) GetRequests ¶
func (x *ResourceRequirements) GetRequests() *ResourceList
func (*ResourceRequirements) ProtoMessage ¶
func (*ResourceRequirements) ProtoMessage()
func (*ResourceRequirements) ProtoReflect ¶
func (x *ResourceRequirements) ProtoReflect() protoreflect.Message
func (*ResourceRequirements) Reset ¶
func (x *ResourceRequirements) Reset()
func (*ResourceRequirements) String ¶
func (x *ResourceRequirements) String() string
type TemplateLibraryConfig ¶
type TemplateLibraryConfig struct { // Configures the manner in which the template library is installed on the // cluster. Installation TemplateLibraryConfig_Installation `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
The config specifying which default library templates to install.
func (*TemplateLibraryConfig) Descriptor
deprecated
func (*TemplateLibraryConfig) Descriptor() ([]byte, []int)
Deprecated: Use TemplateLibraryConfig.ProtoReflect.Descriptor instead.
func (*TemplateLibraryConfig) GetInstallation ¶
func (x *TemplateLibraryConfig) GetInstallation() TemplateLibraryConfig_Installation
func (*TemplateLibraryConfig) ProtoMessage ¶
func (*TemplateLibraryConfig) ProtoMessage()
func (*TemplateLibraryConfig) ProtoReflect ¶
func (x *TemplateLibraryConfig) ProtoReflect() protoreflect.Message
func (*TemplateLibraryConfig) Reset ¶
func (x *TemplateLibraryConfig) Reset()
func (*TemplateLibraryConfig) String ¶
func (x *TemplateLibraryConfig) String() string
type TemplateLibraryConfig_Installation ¶
type TemplateLibraryConfig_Installation int32
How the template library should be installed
const ( // No installation strategy has been specified. TemplateLibraryConfig_INSTALLATION_UNSPECIFIED TemplateLibraryConfig_Installation = 0 // Do not install the template library. TemplateLibraryConfig_NOT_INSTALLED TemplateLibraryConfig_Installation = 1 // Install the entire template library. TemplateLibraryConfig_ALL TemplateLibraryConfig_Installation = 2 )
func (TemplateLibraryConfig_Installation) Descriptor ¶
func (TemplateLibraryConfig_Installation) Descriptor() protoreflect.EnumDescriptor
func (TemplateLibraryConfig_Installation) Enum ¶
func (x TemplateLibraryConfig_Installation) Enum() *TemplateLibraryConfig_Installation
func (TemplateLibraryConfig_Installation) EnumDescriptor
deprecated
func (TemplateLibraryConfig_Installation) EnumDescriptor() ([]byte, []int)
Deprecated: Use TemplateLibraryConfig_Installation.Descriptor instead.
func (TemplateLibraryConfig_Installation) Number ¶
func (x TemplateLibraryConfig_Installation) Number() protoreflect.EnumNumber
func (TemplateLibraryConfig_Installation) String ¶
func (x TemplateLibraryConfig_Installation) String() string
func (TemplateLibraryConfig_Installation) Type ¶
func (TemplateLibraryConfig_Installation) Type() protoreflect.EnumType