Releases: hashicorp/terraform-provider-kubernetes
Releases · hashicorp/terraform-provider-kubernetes
v3.0.1
v3.0.0
3.0.0 (Dec 3, 2025)
ENHANCEMENTS:
-
- Add support for sidecar containers via restart_policy field in init_container spec [GH-2786]
- Add
ip_modeattribute to service status [GH-2784] - Add support for ValidatingAdmissionPolicy [GH-2794]
- Bump Kubernetes dependencies to v1.33 [GH-2774]
DEPRECATIONS:
- Data Sources
kubernetes_config_map→ usekubernetes_config_map_v1kubernetes_namespace→ usekubernetes_namespace_v1kubernetes_secret→ usekubernetes_secret_v1kubernetes_service→ usekubernetes_service_v1kubernetes_pod→ usekubernetes_pod_v1kubernetes_service_account→ usekubernetes_service_account_v1kubernetes_persistent_volume_claim→ usekubernetes_persistent_volume_claim_v1kubernetes_storage_class→ usekubernetes_storage_class_v1kubernetes_ingress→ usekubernetes_ingress_v1
Resources
kubernetes_namespace→ usekubernetes_namespace_v1kubernetes_service→ usekubernetes_service_v1kubernetes_service_account→ usekubernetes_service_account_v1kubernetes_default_service_account→ usekubernetes_default_service_account_v1kubernetes_config_map→ usekubernetes_config_map_v1kubernetes_secret→ usekubernetes_secret_v1kubernetes_pod→ usekubernetes_pod_v1kubernetes_endpoints→ usekubernetes_endpoints_v1kubernetes_limit_range→ usekubernetes_limit_range_v1kubernetes_persistent_volume→ usekubernetes_persistent_volume_v1kubernetes_persistent_volume_claim→ usekubernetes_persistent_volume_claim_v1kubernetes_replication_controller→ usekubernetes_replication_controller_v1kubernetes_resource_quota→ usekubernetes_resource_quota_v1kubernetes_api_service→ usekubernetes_api_service_v1kubernetes_deployment→ usekubernetes_deployment_v1kubernetes_daemonset→ usekubernetes_daemon_set_v1kubernetes_stateful_set→ usekubernetes_stateful_set_v1kubernetes_job→ usekubernetes_job_v1kubernetes_cron_job→ usekubernetes_cron_job_v1kubernetes_horizontal_pod_autoscaler→ usekubernetes_horizontal_pod_autoscaler_v1orkubernetes_horizontal_pod_autoscaler_v2kubernetes_certificate_signing_request→ usekubernetes_certificate_signing_request_v1kubernetes_role→ usekubernetes_role_v1kubernetes_role_binding→ usekubernetes_role_binding_v1kubernetes_cluster_role→ usekubernetes_cluster_role_v1kubernetes_cluster_role_binding→ usekubernetes_cluster_role_binding_v1kubernetes_ingress→ usekubernetes_ingress_v1kubernetes_ingress_class→ usekubernetes_ingress_class_v1kubernetes_network_policy→ usekubernetes_network_policy_v1kubernetes_pod_disruption_budget→ usekubernetes_pod_disruption_budget_v1kubernetes_pod_security_policy→ removed upstream; use Pod Security Admission insteadkubernetes_priority_class→ usekubernetes_priority_class_v1kubernetes_validating_webhook_configuration→ usekubernetes_validating_webhook_configuration_v1kubernetes_mutating_webhook_configuration→ usekubernetes_mutating_webhook_configuration_v1kubernetes_storage_class→ usekubernetes_storage_class_v1kubernetes_csi_driver→ usekubernetes_csi_driver_v1[GH-2770]
BUG FIXES:
v2.38.0
2.38.0 (Jul 21, 2025)
ENHANCEMENTS:
- Add ResourceIdentity support to kubernetes_manifest [GH-2737]
- Add
sub_path_exprto volume mount options pod spec [GH-2622] - Add support for ResourceIdentity to SDKv2 resources [GH-2751]
BUG FIXES:
- Fixed goroutine-safety in the CRD and metadata cache, resulting in far fewer provider metadata requests. [GH-2699]
data_source/kubernetes_pod_v1: fix an issue when the provider cuts out toleration under pod spec(spec.toleration) if it uses a well-known taint. [GH-2380]data_source/kubernetes_pod: fix an issue when the provider cuts out toleration under pod spec(spec.toleration) if it uses a well-known taint. [GH-2380]resource/kubernetes_cron_job: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_cron_job_v1: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_daemon_set_v1: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_daemonset: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_deployment: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_deployment_v1: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_job: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_job_v1: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_replication_controller_v1: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_replication_controller: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_stateful_set: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]resource/kubernetes_stateful_set_v1: fix an issue when the provider cuts out toleration under pod spec template(*.template.spec.toleration`) if it uses a well-known taint. That could lead to a perpetual diff behavior. [GH-2380]
NOTES:
- We have updated the logic of resources that use the Pod specification template, such as
kubernetes_deployment_v1,kubernetes_stateful_set_v1, etc, and now the provider will keep all tolerations(spec.toleration) returned by Kubernetes. The same is applicable for the data sourceskubernetes_pod_v1andkubernetes_pod. The behavior of resourceskubernetes_pod_v1andkubernetes_podremains unchanged, i.e. the provider will keep removing tolerations with well-known taints since they might be attached to the object by Kubernetes controller and could lead to a perpetual diff. [GH-2380]
v2.37.1
v2.37.0
v2.36.0
v2.35.1
BUG FIXES:
resource/kubernetes_job_v1: revert the changes introduced in v2.34.0, wherettl_seconds_after_finishedwas set to0. [GH-2650]resource/kubernetes_daemon_set_v1: fix issue where fieldsspec.strategy.rolling_update.max_surgeandspec.strategy.rolling_update.max_unavailablewere not being validated correctly. [GH-2653]
v2.35.0
v2.34.0
ENHANCEMENTS:
- Added
conditionsattribute tokubernetes_nodesdata source, which will provide detailed node health and status information [GH-2612] - Adding the
kubernetes_secret_v1_dataresource to the kubernetes provider. This resource will allow users to manage kubernetes secrets [GH-2604] - Properly handle Kubernetes Jobs with ttl_seconds_after_finished = 0 to prevent unnecessary recreation. [GH-2596]
FEATURES:
v2.33.0
ENHANCEMENTS:
- Add
backoff_per_limit_indexandmax_failed_indexesfields instructure_job.go[GH-2421] - Added support for
namespace_selectorfield inPodAffinityTermto enhance pod affinity and anti-affinity rules, allowing selection of namespaces based on label selectors. [GH-2577] kubernetes_manifest- handling "404 Not Found" errors during the deletion of Kubernetes resources, particularly in cases where the resource may have already been deleted by an operator managing the CRD before Terraform attempts to delete it. [GH-2592]schema_container.go: Add VolumeDevices [GH-2573]kubernetes_manifest: add TypeCheck forx-kubernetes-preserve-unknown-fieldsto prevent unnecessary replacement [GH-2437]