# StatusCondition

- [JSON representation](https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/StatusCondition#SCHEMA_REPRESENTATION)
- [Code](https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/StatusCondition#Code)

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

| JSON representation |
|---|
| ``` { "code": enum (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/StatusCondition#Code`), "message": string, "canonicalCode": enum (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/Shared.Types/Code`) } ``` |

| Fields ||
|---|---|
| `code (deprecated)` | ``enum (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/StatusCondition#Code`)`` > [!WARNING] > This item is deprecated! Machine-friendly representation of the condition Deprecated. Use canonicalCode instead. |
| `message` | `string` Human-friendly representation of the condition |
| `canonicalCode` | ``enum (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/Shared.Types/Code`)`` Canonical code of the condition. |

## Code

Code for each condition

| Enums ||
|---|---|
| `UNKNOWN` | UNKNOWN indicates a generic condition. |
| `GCE_STOCKOUT` | GCE_STOCKOUT indicates that Google Compute Engine resources are temporarily unavailable. |
| `GKE_SERVICE_ACCOUNT_DELETED` | GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot service account. |
| `GCE_QUOTA_EXCEEDED` | Google Compute Engine quota was exceeded. |
| `SET_BY_OPERATOR` | Cluster state was manually changed by an SRE due to a system logic error. |
| `CLOUD_KMS_KEY_ERROR` | Unable to perform an encrypt operation against the CloudKMS key used for etcd level encryption. |
| `CA_EXPIRING` | Cluster CA is expiring soon. |
| `NODE_SERVICE_ACCOUNT_MISSING_PERMISSIONS` | Node service account is missing permissions. |
| `CLOUD_KMS_KEY_DESTROYED` | Cloud KMS key version used for etcd level encryption has been destroyed. This is a permanent error. |