frostmoln_kubernetes_addon_versions (Data Source)
Lists the versions of one cluster addon that can be pinned with the addon_versions attribute of frostmoln_kubernetes_cluster. Versions that reached end of life are not listed; a cluster already pinned to one reports it through the frostmoln_kubernetes_cluster_addons data source.
Example Usage
terraform
data "frostmoln_kubernetes_addon_versions" "external_dns" {
addon = "external-dns"
}
# The recommended version, taken from is_default. The list is in the platform's
# order; never sort it or compare version strings to find the newest.
output "recommended_external_dns_version" {
value = one([for v in data.frostmoln_kubernetes_addon_versions.external_dns.versions : v.version if v.is_default])
}Schema
Required
addon(String) The addon's catalog key (see the frostmoln_kubernetes_addons data source).
Read-Only
versions(Attributes List) The pinnable versions, in the platform's order (newest-published last). Version strings are opaque: do not sort or compare them — position is not recency, and a semver sort misorders prereleases. Take the recommended version from is_default. (see below for nested schema)
Nested Schema for versions
Read-Only:
is_default(Boolean) Whether this is the recommended version, which an addon selected without a pin gets.status(String) The version's lifecycle status (for example current, supported or deprecated). New values may appear.version(String) The version string, to be used verbatim in addon_versions.