Releases: hashicorp/terraform-provider-kubernetes
Releases ยท hashicorp/terraform-provider-kubernetes
v2.23.0
FEATURES:
resource/kubernetes_cron_job_v1: add a new volume typeephemeraltospec.job_template.spec.template.spec.volumeto support generic ephemeral volumes. [GH-2199]resource/kubernetes_cron_job: add a new volume typeephemeraltospec.job_template.spec.template.spec.volumeto support generic ephemeral volumes. [GH-2199]resource/kubernetes_daemon_set_v1: add a new volume typeephemeraltospec.template.spec.volumeto support generic ephemeral volumes. [GH-2199]resource/kubernetes_daemonset: add a new volume typeephemeraltospec.template.spec..volumeto support generic ephemeral volumes. [GH-2199]resource/kubernetes_deployment_v1: add a new volume typeephemeraltospec.template.spec.volumeto support generic ephemeral volumes. [GH-2199]resource/kubernetes_deployment: add a new volume typeephemeraltospec.template.spec.volumeto support generic ephemeral volumes. [GH-2199]resource/kubernetes_job_v1: add a new volume typeephemeraltospec.template.spec.volumeto support generic ephemeral volumes. [GH-2199]resource/kubernetes_job: add a new volume typeephemeraltospec.template.spec.volumeto support generic ephemeral volumes. [GH-2199]resource/kubernetes_pod_v1: add a new volume typeephemeraltospec.volumeto support generic ephemeral volumes. [GH-2199]resource/kubernetes_pod: add a new volume typeephemeraltospec.volumeto support generic ephemeral volumes. [GH-2199]
ENHANCEMENTS:
resource/kubernetes_endpoint_slice_v1: make attributeendpoint.conditionoptional. 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_stateto specify the Pod phase(s) that indicate whether it was successfully created. [GH-2200]resource/kubernetes_pod: add a new attributetarget_stateto specify the Pod phase(s) that indicate whether it was successfully created. [GH-2200]
BUG FIXES:
resource/kubernetes_manifest: update flow inwaitblock 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_accountto 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_namekubernetes provider options. [GH-1638]
BUG FIXES:
resource/kubernetes_manifest: fix an issue in thekubernetes_manifestresource 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_manifestresource, 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: addconflictsWithrules to provider configuration schema [GH-2084]kubernetes/resource_kubernetes_service_account.go: Removedefault_secret_namewarning [GH-2085]resource/kubernetes_node_taintUpdate 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_limitto 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]
v2.18.1
v2.18.0
FEATURES:
- New data source:
data_source/kubernetes_nodes. [GH-1921] - New data source:
data_source/kubernetes_resources. [GH-1967] - New resource:
resource/kubernetes_node_taint. [GH-1921]
ENHANCEMENT:
resource/kubernetes_annotations: Add a new attributetemplate_annotationsthat allows adding annotations to resources with pod templates. [GH-1972]resource/kubernetes_cron_job_v1: Add a new attributespec.timezone. [GH-1971]
BUG FIXES:
resource/kubernetes_mutating_webhook_configuration: Fix an issue when the delete operation may not be idempotent. [GH-1999]resource/kubernetes_network_policy_v1: Fix an issue when the delete operation may not be idempotent. [GH-1999]resource/kubernetes_network_policy: Fix an issue when the delete operation may not be idempotent. [GH-1999]resource/kubernetes_persistent_volume_claim_v1: Fix an issue when the delete operation may not be idempotent. [GH-1999]resource/kubernetes_persistent_volume_claim: Fix an issue when the delete operation may not be idempotent. [GH-1999]resource/kubernetes_storage_class_v1: Fix an issue when changing the value of the attributeallow_volume_expansiondoes not alter Kubernetes resource. [GH-1519]resource/kubernetes_storage_class: Fix an issue when changing the value of the attributeallow_volume_expansiondoes not alter Kubernetes resource. [GH-1519]
DOCS:
- New data source:
data_source/kubernetes_nodes. [GH-1921] - New data source:
data_source/kubernetes_resources. [GH-1967] - New resource:
resource/kubernetes_node_taint. [GH-1921] provider: Add a note regarding theKUBECONFIGenvironment variable. [GH-1989]resource/kubernetes_annotations: Add a new attributetemplate_annotations. [GH-1972]resource/kubernetes_job_v1: Add documentation for the attributespec.completion_mode. [GH-1997]resource/kubernetes_job: Add documentation for the attributespec.completion_mode. [GH-1997]resource/resource_kubernetes_cron_job_v1: Add a new attributespec.timezone. [GH-1971]
Community Contributors ๐
- @AnisimoffNikita made their contribution in #1519
- @partcyborg made their contribution in #1921
v2.17.0
ENHANCEMENT:
- Add a new optional attribute
grpctopod.spec.container.liveness_probe,pod.spec.container.readiness_probe, andpod.spec.container.startup_probe. That affects all resources and data sources that use mentionedpod.spec.containerprobes directly or as a template. [GH-1915] resource/kubernetes_cluster_role_binding_v1: add attributegenerate_nameto produce a unique random name [GH-1899]resource/kubernetes_cluster_role_binding: add attributegenerate_nameto produce a unique random name [GH-1899]resource/kubernetes_cluster_role_v1: add attributegenerate_nameto produce a unique random name [GH-1899]resource/kubernetes_cluster_role: add attributegenerate_nameto produce a unique random name [GH-1899]resource/kubernetes_ingress_v1: add create and delete timeouts [GH-1936]resource/kubernetes_ingress_v1: make the attributespec.ingress_class_namecomputed [GH-1947]resource/kubernetes_persistent_volume_v1: add additional validation on the delete operation to make it idempotent [GH-1935]resource/kubernetes_persistent_volume: add additional validation on the delete operation to make it idempotent [GH-1935]resource/kubernetes_role_binding_v1: add attributegenerate_nameto produce a unique random name [GH-1899]resource/kubernetes_role_binding: add attributegenerate_nameto produce a unique random name [GH-1899]
Community Contributors ๐
- @AmandaHassoun made their contribution in #1944
- @shihai1991 made their contribution in #1922
- @Tensho made their contribution in #1936
- @multani made their contribution in #1899
- @sherifabdlnaby made their contribution in #1935
- @dgnemo made their contribution in #1915
v2.16.1
ENHANCEMENTS:
- Add additional validation on the delete operation to make it idempotent. [GH-1914], [GH-1919], [GH-1898]
This affects the following resources:
kubernetes_api_servicekubernetes_api_service_v1kubernetes_cluster_rolekubernetes_cluster_role_v1kubernetes_cluster_role_bindingkubernetes_cluster_role_binding_v1kubernetes_config_mapkubernetes_config_map_v1kubernetes_daemonsetkubernetes_daemon_set_v1kubernetes_deploymentkubernetes_deployment_v1kubernetes_endpointskubernetes_endpoints_v1kubernetes_horizontal_pod_autoscalerkubernetes_horizontal_pod_autoscaler_v1kubernetes_horizontal_pod_autoscaler_v2beta2kubernetes_horizontal_pod_autoscaler_v2kubernetes_mutating_webhook_configurationkubernetes_mutating_webhook_configuration_v1kubernetes_network_policykubernetes_network_policy_v1kubernetes_persistent_volume_claimkubernetes_persistent_volume_claim_v1kubernetes_podkubernetes_pod_v1kubernetes_pod_disruption_budgetkubernetes_pod_disruption_budget_v1kubernetes_pod_security_policykubernetes_pod_security_policy_v1beta1kubernetes_priority_classkubernetes_replication_controllerkubernetes_resource_quotakubernetes_rolekubernetes_role_bindingkubernetes_secretkubernetes_namespacekubernetes_servicekubernetes_service_accountkubernetes_stateful_setkubernetes_storage_classkubernetes_validating_webhook_configurationkubernetes_validating_webhook_configuration_v1
Special thanks to @sheneska for making these changes as part of her internship @hashicorp! ๐