Class: Google::Container::V1::StatusCondition

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb

Overview

StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).

Defined Under Namespace

Modules: Code

Instance Attribute Summary collapse

Instance Attribute Details

#codeGoogle::Container::V1::StatusCondition::Code

Returns Machine-friendly representation of the condition.

Returns:



2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 2146

class StatusCondition
  # Code for each condition
  module Code
    # UNKNOWN indicates a generic condition.
    UNKNOWN = 0

    # GCE_STOCKOUT indicates a Google Compute Engine stockout.
    GCE_STOCKOUT = 1

    # GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
    # service account.
    GKE_SERVICE_ACCOUNT_DELETED = 2

    # Google Compute Engine quota was exceeded.
    GCE_QUOTA_EXCEEDED = 3

    # Cluster state was manually changed by an SRE due to a system logic error.
    SET_BY_OPERATOR = 4

    # Unable to perform an encrypt operation against the CloudKMS key used for
    # etcd level encryption.
    # More codes TBA
    CLOUD_KMS_KEY_ERROR = 7
  end
end

#messageString

Returns Human-friendly representation of the condition.

Returns:

  • (String)

    Human-friendly representation of the condition



2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 2146

class StatusCondition
  # Code for each condition
  module Code
    # UNKNOWN indicates a generic condition.
    UNKNOWN = 0

    # GCE_STOCKOUT indicates a Google Compute Engine stockout.
    GCE_STOCKOUT = 1

    # GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
    # service account.
    GKE_SERVICE_ACCOUNT_DELETED = 2

    # Google Compute Engine quota was exceeded.
    GCE_QUOTA_EXCEEDED = 3

    # Cluster state was manually changed by an SRE due to a system logic error.
    SET_BY_OPERATOR = 4

    # Unable to perform an encrypt operation against the CloudKMS key used for
    # etcd level encryption.
    # More codes TBA
    CLOUD_KMS_KEY_ERROR = 7
  end
end