Enum MembershipState.LifecycleState
java.lang.Object
java.lang.Enum<MembershipState.LifecycleState>
com.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<MembershipState.LifecycleState>
- Enclosing class:
- MembershipState
public static enum MembershipState.LifecycleState
extends Enum<MembershipState.LifecycleState>
implements com.google.protobuf.ProtocolMessageEnum
The set of states Policy Controller can exist in.Protobuf enum
google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe PC is fully installed on the cluster and in an operational mode.The PC is not operational, and the PCH is unable to act to make it operational.The PC may have resources on the cluster, but the PCH wishes to remove the Membership.PoCo Hub is not taking any action to reconcile cluster objects.In this state, the PC may still be operational, and only the PCH is unable to act.The PCH possesses a Membership, however the PC is not fully installed on the cluster.The lifecycle state is unspecified.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.Policy Controller (PC) is installed but suspended.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. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe PC is fully installed on the cluster and in an operational mode.static final intThe PC is not operational, and the PCH is unable to act to make it operational.static final intThe PC may have resources on the cluster, but the PCH wishes to remove the Membership.static final intPoCo Hub is not taking any action to reconcile cluster objects.static final intIn this state, the PC may still be operational, and only the PCH is unable to act.static final intThe PCH possesses a Membership, however the PC is not fully installed on the cluster.static final intThe lifecycle state is unspecified.static final intThe PC does not exist on the given cluster, and no k8s resources of any type that are associated with the PC should exist there.static final intPolicy Controller (PC) is installed but suspended.static final intThe 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. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<MembershipState.LifecycleState>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static MembershipState.LifecycleState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LIFECYCLE_STATE_UNSPECIFIED
The lifecycle state is unspecified.
LIFECYCLE_STATE_UNSPECIFIED = 0; -
NOT_INSTALLED
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.
NOT_INSTALLED = 1; -
INSTALLING
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.
INSTALLING = 2; -
ACTIVE
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.
ACTIVE = 3; -
UPDATING
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.
UPDATING = 4; -
DECOMMISSIONING
The PC may have resources on the cluster, but the PCH wishes to remove the Membership. The Membership still exists.
DECOMMISSIONING = 5; -
CLUSTER_ERROR
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').
CLUSTER_ERROR = 6; -
HUB_ERROR
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.
HUB_ERROR = 7; -
SUSPENDED
Policy Controller (PC) is installed but suspended. This means that the policies are not enforced, but violations are still recorded (through audit).
SUSPENDED = 8; -
DETACHED
PoCo Hub is not taking any action to reconcile cluster objects. Changes to those objects will not be overwritten by PoCo Hub.
DETACHED = 9; -
UNRECOGNIZED
-
-
Field Details
-
LIFECYCLE_STATE_UNSPECIFIED_VALUE
public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUEThe lifecycle state is unspecified.
LIFECYCLE_STATE_UNSPECIFIED = 0;- See Also:
-
NOT_INSTALLED_VALUE
public static final int NOT_INSTALLED_VALUEThe 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.
NOT_INSTALLED = 1;- See Also:
-
INSTALLING_VALUE
public static final int INSTALLING_VALUEThe 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.
INSTALLING = 2;- See Also:
-
ACTIVE_VALUE
public static final int ACTIVE_VALUEThe 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.
ACTIVE = 3;- See Also:
-
UPDATING_VALUE
public static final int UPDATING_VALUEThe 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.
UPDATING = 4;- See Also:
-
DECOMMISSIONING_VALUE
public static final int DECOMMISSIONING_VALUEThe PC may have resources on the cluster, but the PCH wishes to remove the Membership. The Membership still exists.
DECOMMISSIONING = 5;- See Also:
-
CLUSTER_ERROR_VALUE
public static final int CLUSTER_ERROR_VALUEThe 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').
CLUSTER_ERROR = 6;- See Also:
-
HUB_ERROR_VALUE
public static final int HUB_ERROR_VALUEIn 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.
HUB_ERROR = 7;- See Also:
-
SUSPENDED_VALUE
public static final int SUSPENDED_VALUEPolicy Controller (PC) is installed but suspended. This means that the policies are not enforced, but violations are still recorded (through audit).
SUSPENDED = 8;- See Also:
-
DETACHED_VALUE
public static final int DETACHED_VALUEPoCo Hub is not taking any action to reconcile cluster objects. Changes to those objects will not be overwritten by PoCo Hub.
DETACHED = 9;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<MembershipState.LifecycleState> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static MembershipState.LifecycleState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-