Releases: hashicorp/terraform-provider-kubernetes
Releases · hashicorp/terraform-provider-kubernetes
v2.25.1
v2.25.0
ENHANCEMENTS:
- Add terraform-plugin-framework provider [GH-2347]
data_source/kubernetes_persistent_volume_claim_v1
: add a new attributespec.volume_mode
. [GH-2353]data_source/kubernetes_persistent_volume_claim
: add a new attributespec.volume_mode
. [GH-2353]kubernetes/schema_stateful_set_spec.go
: Addspec.persistentVolumeClaimRetentionPolicy
inkubernetes_stateful_set
[GH-2333]resource/kubernetes_persistent_volume_claim_v1
: add a new attributespec.volume_mode
. [GH-2353]resource/kubernetes_persistent_volume_claim
: add a new attributespec.volume_mode
. [GH-2353]resource/kubernetes_stateful_set_v1
: add a new attributespec.volume_claim_template.spec.volume_mode
. [GH-2353]resource/kubernetes_stateful_set
: add a new attributespec.volume_claim_template.spec.volume_mode
. [GH-2353]
BUG FIXES:
resource/kubernetes_cron_job_v1
: Change the schema to include a namespace injobTemplate
resource/kubernetes_stateful_set_v1
: Change the schema to include a namespace intemplate
[GH-2362]resource/kubernetes_ingress_v1
: Fix an issue where the emptytls
attribute in the configuration does not generate the corresponding Ingress object without any TLS configuration. [GH-2344]resource/kubernetes_ingress
: Fix an issue where the emptytls
attribute in the configuration does not generate the corresponding Ingress object without any TLS configuration. [GH-2344]
NOTES:
- We have updated the logic of data sources and now the provider will return all annotations and labels attached to the object, regardless of the
ignore_annotations
andignore_labels
provider settings. In addition to that, a list of ignored labels when they are attached tokubernetes_job(_v1)
andkubernetes_cron_job(_v1)
resources were extended with labelsbatch.kubernetes.io/controller-uid
andbatch.kubernetes.io/job-name
since they aim to replacecontroller-uid
andjob-name
in the future Kubernetes releases. [GH-2345]
A special and warm welcome to the first contribution from our teammate @SarahFrench! 🚀
Community Contributors 🙌
- @tbobm made their contribution in #2348
- @andremarianiello made their contribution in #2344
- @adinhodovic made their contribution in #2333
- @wonko made their contribution in #2362
v2.24.0
ENHANCEMENTS:
kubernetes/schema_affinity_spec.go
: Add match_fields
to nodeAffinity [GH-2296]
kubernetes/schema_pod_spec.go
: Add os
to podSpecFields [GH-2290]
resource/kubernetes_config_map_v1_data
: improve error handling while validating the existence of the target ConfigMap. [GH-2230]
BUG FIXES:
resource/kubernetes_labels
: Add ["f:metadata"] check in kubernetes_labels to prevent crash with kubernetes_node_taints [GH-2246]
DOCS:
- Add example module for configuring OIDC authentication on EKS [GH-2287]
- Add example module for configuring OIDC authentication on GKE [GH-2319]
NOTES:
- Bump Go version from 1.20 to 1.21. [GH-2337]
- Bump Kubernetes dependencies from x.25.11 to x.27.8.
v2.23.0
FEATURES:
resource/kubernetes_cron_job_v1
: add a new volume typeephemeral
tospec.job_template.spec.template.spec.volume
to support generic ephemeral volumes. [GH-2199]resource/kubernetes_cron_job
: add a new volume typeephemeral
tospec.job_template.spec.template.spec.volume
to support generic ephemeral volumes. [GH-2199]resource/kubernetes_daemon_set_v1
: add a new volume typeephemeral
tospec.template.spec.volume
to support generic ephemeral volumes. [GH-2199]resource/kubernetes_daemonset
: add a new volume typeephemeral
tospec.template.spec..volume
to support generic ephemeral volumes. [GH-2199]resource/kubernetes_deployment_v1
: add a new volume typeephemeral
tospec.template.spec.volume
to support generic ephemeral volumes. [GH-2199]resource/kubernetes_deployment
: add a new volume typeephemeral
tospec.template.spec.volume
to support generic ephemeral volumes. [GH-2199]resource/kubernetes_job_v1
: add a new volume typeephemeral
tospec.template.spec.volume
to support generic ephemeral volumes. [GH-2199]resource/kubernetes_job
: add a new volume typeephemeral
tospec.template.spec.volume
to support generic ephemeral volumes. [GH-2199]resource/kubernetes_pod_v1
: add a new volume typeephemeral
tospec.volume
to support generic ephemeral volumes. [GH-2199]resource/kubernetes_pod
: add a new volume typeephemeral
tospec.volume
to support generic ephemeral volumes. [GH-2199]
ENHANCEMENTS:
resource/kubernetes_endpoint_slice_v1
: make attributeendpoint.condition
optional. If you had previously included an empty blockcondition {}
in your configuration, we request you to remove it. Doing so will prevent receiving continuous "update in-place" messages while performing the plan and apply operations. [GH-2208]resource/kubernetes_pod_v1
: add a new attributetarget_state
to specify the Pod phase(s) that indicate whether it was successfully created. [GH-2200]resource/kubernetes_pod
: add a new attributetarget_state
to specify the Pod phase(s) that indicate whether it was successfully created. [GH-2200]
BUG FIXES:
resource/kubernetes_manifest
: update flow inwait
block to fix timeout bug within tf apply where the resource is created and appears in Kubernetes but does not appear in TF state file after deadline. The fix would ensure that the resource has been created in the state file while also tainting the resource requiring the user to make the necessary changes in order for their to not be another timeout error. [GH-2163]
DOCS:
- Fix external broken links in the documentation. [GH-2221]
Community Contributors 🙌
v2.22.0
FEATURES:
kubernetes/data_source_kubernetes_persistent_volume.go
: Add data source for Kubernetes Persistent Volume Resource [GH-2118]kubernetes/resource_kubernetes_namespace.go
: Add attributewait_for_default_service_account
to namespaces which will force Terraform to wait until the default service account has been created by Kubernetes on namespace creation. [GH-2119]kubernetes/resource_kubernetes_endpointslice.go
: Add kubernetes_endpoint_slice resource [GH-2086]
ENHANCEMENTS:
kubernetes/provider.go
: Addtls_server_name
kubernetes provider options. [GH-1638]
BUG FIXES:
resource/kubernetes_manifest
: fix an issue in thekubernetes_manifest
resource when it panics if tuple attributes within an object have a different number of elements. This leads to the situation when all types of end tuples are getting the same type. [GH-2164]resource/kubernetes_manifest
: fix an issue with thekubernetes_manifest
resource, where an object fails to update correctly when employing wait conditions and thus some attributes are not available for the reference after creation. [GH-2173]
Community Contributors 🙌
- @SRodi made their contribution in #2096
- @kschoche made their contribution in #2119
- @sbocinec made their contribution in #2138
- @bartoszj made their contribution in #1638
- @mpriscella made their contribution in #2169
- @axcosta made their contribution in #2137
- @thevilledev made their outstanding contribution in #2158, #2154, #2159, #2161 🚀
v2.21.1
v2.21.0
FEATURES:
resource/kubernetes_runtime_class_v1
: Add a new resourcekubernetes_runtime_class_v1
. [GH-2080]
ENHANCEMENTS:
kubernetes/provider.go
: addconflictsWith
rules to provider configuration schema [GH-2084]kubernetes/resource_kubernetes_service_account.go
: Removedefault_secret_name
warning [GH-2085]resource/kubernetes_node_taint
Update import documentation GH-2094
BUG FIXES:
resource/kubernetes_node_taint
: Don't fail when there is a taint in the state file for a node that no longer exists. [GH-2099]resource/kubernetes_job
: Fixed a bug where settingbackoff_limit
to 6 would reset it to 0
v2.20.0
v2.19.0
Generating changelog for release-v2.19.0 from v2.18.1...
FEATURES:
New Resource: kubernetes_token_request_v1
. [GH-2024]
BUG FIXES:
data_source/kubernetes_secret_v1
: Fix an issue where data_source cannot read secret created with generate_name. [GH-2028]data_source/kubernetes_secret
: Fix an issue where data_source cannot read secret created with generate_name. [GH-2028]kubernetes/schema_pod_spec.go
: Fix unexpected volumes appearing on plan [GH-2006]resource/kubernetes_cron_job_v1
: Fix annotation logic to prevent internalkeys from being removed in templates [GH-1983]resource/kubernetes_manifest
: Fix a panic when constructing the diagnostic message about incompatible attribute types [GH-2054]resource/kubernetes_manifest
: Fix crash when manifest config contains unknown values of unknown type (DynamicPseudoType) [GH-2055]