clusters_available_upgrades
Creates, updates, deletes, gets or lists a clusters_available_upgrades
resource.
Overview
Name | clusters_available_upgrades |
Type | Resource |
Id | digitalocean.kubernetes.clusters_available_upgrades |
Fields
Name | Datatype | Description |
---|---|---|
kubernetes_version | string | The upstream version string for the version of Kubernetes provided by a given slug. |
slug | string | The slug identifier for an available version of Kubernetes for use when creating or updating a cluster. The string contains both the upstream version of Kubernetes as well as the DigitalOcean revision. |
supported_features | array | The features available with the version of Kubernetes provided by a given slug. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
kubernetes_get_available_upgrades | SELECT | cluster_id | To determine whether a cluster can be upgraded, and the versions to which it can be upgraded, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades . |
SELECT
examples
To determine whether a cluster can be upgraded, and the versions to which it can be upgraded, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades
.
SELECT
kubernetes_version,
slug,
supported_features
FROM digitalocean.kubernetes.clusters_available_upgrades
WHERE cluster_id = '{{ cluster_id }}';