Skip to main content

managed_kubernetes_capabilities_versions

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

Overview​

Namemanaged_kubernetes_capabilities_versions
TypeResource
Idovh.public_cloud_kubernetes.managed_kubernetes_capabilities_versions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
available_updatesarrayPatch versions of the current minor the cluster can update to, for example 1.32.8-1 to 1.32.8-2 (wire: availableUpdates)
available_upgradesarrayVersions of the next minor the cluster can upgrade to, for example 1.32.8-1 to 1.33.1-2. Multi-minor jumps are never listed. (wire: availableUpgrades)
current_versionstringFull Kubernetes version currently deployed on the cluster, for example 1.32.8-1 (wire: currentVersion)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanaged_kubernetes_id, project_idReturns the full version deployed on the cluster, the patch versions of the current minor it can update to, and the versions of the next minor it can upgrade to. Multi-minor jumps are never returned. (Beta version)

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
managed_kubernetes_idstring (uuid)Managed kubernetes ID (wire: managedKubernetesId)
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

Returns the full version deployed on the cluster, the patch versions of the current minor it can update to, and the versions of the next minor it can upgrade to. Multi-minor jumps are never returned. (Beta version)

SELECT
available_updates,
available_upgrades,
current_version
FROM ovh.public_cloud_kubernetes.managed_kubernetes_capabilities_versions
WHERE managed_kubernetes_id = '{{ managed_kubernetes_id }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;