Google Cloud Gke Hub V1 Client - Class MembershipSpec (1.0.1)

Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class MembershipSpec.

Anthos Config Management: Configuration for a single cluster.

Intended to parallel the ConfigManagement CR.

Generated from protobuf message google.cloud.gkehub.configmanagement.v1.MembershipSpec

Namespace

Google \ Cloud \ GkeHub \ ConfigManagement \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ config_sync ConfigSync

Config Sync configuration for the cluster.

↳ policy_controller PolicyController

Policy Controller configuration for the cluster.

↳ hierarchy_controller HierarchyControllerConfig

Hierarchy Controller configuration for the cluster.

↳ version string

Version of ACM installed.

↳ cluster string

The 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.

↳ management int

Enables automatic Feature management.

getConfigSync

Config Sync configuration for the cluster.

Returns
Type Description
ConfigSync|null

hasConfigSync

clearConfigSync

setConfigSync

Config Sync configuration for the cluster.

Parameter
Name Description
var ConfigSync
Returns
Type Description
$this

getPolicyController

Policy Controller configuration for the cluster.

Returns
Type Description
PolicyController|null

hasPolicyController

clearPolicyController

setPolicyController

Policy Controller configuration for the cluster.

Parameter
Name Description
var PolicyController
Returns
Type Description
$this

getHierarchyController

Hierarchy Controller configuration for the cluster.

Returns
Type Description
HierarchyControllerConfig|null

hasHierarchyController

clearHierarchyController

setHierarchyController

Hierarchy Controller configuration for the cluster.

Parameter
Name Description
var HierarchyControllerConfig
Returns
Type Description
$this

getVersion

Version of ACM installed.

Returns
Type Description
string

setVersion

Version of ACM installed.

Parameter
Name Description
var string
Returns
Type Description
$this

getCluster

The 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.

Returns
Type Description
string

setCluster

The 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.

Parameter
Name Description
var string
Returns
Type Description
$this

getManagement

Enables automatic Feature management.

Returns
Type Description
int

setManagement

Enables automatic Feature management.

Parameter
Name Description
var int
Returns
Type Description
$this