Skip to main content

clusters_available_upgrades

Creates, updates, deletes, gets or lists a clusters_available_upgrades resource.

Overview

Nameclusters_available_upgrades
TypeResource
Iddigitalocean.kubernetes.clusters_available_upgrades

Fields

NameDatatypeDescription
kubernetes_versionstringThe upstream version string for the version of Kubernetes provided by a given slug.
slugstringThe 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_featuresarrayThe features available with the version of Kubernetes provided by a given slug.

Methods

NameAccessible byRequired ParamsDescription
kubernetes_get_available_upgradesSELECTcluster_idTo 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 }}';