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 Constants
    Enum Constant
    Description
    The 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The PC is fully installed on the cluster and in an operational mode.
    static final int
    The PC is not operational, and the PCH is unable to act to make it operational.
    static final int
    The PC may have resources on the cluster, but the PCH wishes to remove the Membership.
    static final int
    PoCo Hub is not taking any action to reconcile cluster objects.
    static final int
    In this state, the PC may still be operational, and only the PCH is unable to act.
    static final int
    The PCH possesses a Membership, however the PC is not fully installed on the cluster.
    static final int
    The lifecycle state is unspecified.
    static final int
    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.
    static final int
    Policy Controller (PC) is installed but suspended.
    static final int
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    forNumber(int value)
     
    static com.google.protobuf.Descriptors.EnumDescriptor
     
    final com.google.protobuf.Descriptors.EnumDescriptor
     
    final int
     
    final com.google.protobuf.Descriptors.EnumValueDescriptor
     
    static 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.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LIFECYCLE_STATE_UNSPECIFIED

      public static final MembershipState.LifecycleState LIFECYCLE_STATE_UNSPECIFIED
       The lifecycle state is unspecified.
       
      LIFECYCLE_STATE_UNSPECIFIED = 0;
    • NOT_INSTALLED

      public static final MembershipState.LifecycleState 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

      public static final MembershipState.LifecycleState 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

      public static final MembershipState.LifecycleState 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

      public static final MembershipState.LifecycleState 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

      public static final MembershipState.LifecycleState 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

      public static final MembershipState.LifecycleState 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

      public static final MembershipState.LifecycleState 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

      public static final MembershipState.LifecycleState 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

      public static final MembershipState.LifecycleState 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

      public static final MembershipState.LifecycleState UNRECOGNIZED
  • Field Details

    • LIFECYCLE_STATE_UNSPECIFIED_VALUE

      public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE
       The lifecycle state is unspecified.
       
      LIFECYCLE_STATE_UNSPECIFIED = 0;
      See Also:
    • NOT_INSTALLED_VALUE

      public static final int NOT_INSTALLED_VALUE
       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;
      See Also:
    • INSTALLING_VALUE

      public static final int INSTALLING_VALUE
       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;
      See Also:
    • ACTIVE_VALUE

      public static final int ACTIVE_VALUE
       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;
      See Also:
    • UPDATING_VALUE

      public static final int UPDATING_VALUE
       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;
      See Also:
    • DECOMMISSIONING_VALUE

      public static final int DECOMMISSIONING_VALUE
       The 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_VALUE
       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;
      See Also:
    • HUB_ERROR_VALUE

      public static final int HUB_ERROR_VALUE
       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;
      See Also:
    • SUSPENDED_VALUE

      public static final int SUSPENDED_VALUE
       Policy 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_VALUE
       PoCo 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

      public static MembershipState.LifecycleState[] 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

      public static MembershipState.LifecycleState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static MembershipState.LifecycleState valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static MembershipState.LifecycleState forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null