Enum PolicyControllerDeploymentConfig.Affinity (1.54.0)

public enum PolicyControllerDeploymentConfig.Affinity extends Enum<PolicyControllerDeploymentConfig.Affinity> implements ProtocolMessageEnum

The pod affinity configuration used by a deployment.

Protobuf enum google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity

Implements

ProtocolMessageEnum

Static Fields

Name Description
AFFINITY_UNSPECIFIED

No affinity configuration has been specified.

AFFINITY_UNSPECIFIED = 0;

AFFINITY_UNSPECIFIED_VALUE

No affinity configuration has been specified.

AFFINITY_UNSPECIFIED = 0;

ANTI_AFFINITY

Anti-affinity configuration will be applied to this deployment. Default for admissions deployment.

ANTI_AFFINITY = 2;

ANTI_AFFINITY_VALUE

Anti-affinity configuration will be applied to this deployment. Default for admissions deployment.

ANTI_AFFINITY = 2;

NO_AFFINITY

Affinity configurations will be removed from the deployment.

NO_AFFINITY = 1;

NO_AFFINITY_VALUE

Affinity configurations will be removed from the deployment.

NO_AFFINITY = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()