Skip to content

Releases: hashicorp/terraform-provider-kubernetes

v2.17.0

23 Jan 16:34
fbd2190

Choose a tag to compare

ENHANCEMENT:

  • Add a new optional attribute grpc to pod.spec.container.liveness_probe, pod.spec.container.readiness_probe, and pod.spec.container.startup_probe. That affects all resources and data sources that use mentioned pod.spec.container probes directly or as a template. [GH-1915]
  • resource/kubernetes_cluster_role_binding_v1: add attribute generate_name to produce a unique random name [GH-1899]
  • resource/kubernetes_cluster_role_binding: add attribute generate_name to produce a unique random name [GH-1899]
  • resource/kubernetes_cluster_role_v1: add attribute generate_name to produce a unique random name [GH-1899]
  • resource/kubernetes_cluster_role: add attribute generate_name to produce a unique random name [GH-1899]
  • resource/kubernetes_ingress_v1: add create and delete timeouts [GH-1936]
  • resource/kubernetes_ingress_v1: make the attribute spec.ingress_class_name computed [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 attribute generate_name to produce a unique random name [GH-1899]
  • resource/kubernetes_role_binding: add attribute generate_name to produce a unique random name [GH-1899]

Community Contributors 🙌

v2.16.1

05 Dec 23:39
8aeeabb

Choose a tag to compare

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_service
  • kubernetes_api_service_v1
  • kubernetes_cluster_role
  • kubernetes_cluster_role_v1
  • kubernetes_cluster_role_binding
  • kubernetes_cluster_role_binding_v1
  • kubernetes_config_map
  • kubernetes_config_map_v1
  • kubernetes_daemonset
  • kubernetes_daemon_set_v1
  • kubernetes_deployment
  • kubernetes_deployment_v1
  • kubernetes_endpoints
  • kubernetes_endpoints_v1
  • kubernetes_horizontal_pod_autoscaler
  • kubernetes_horizontal_pod_autoscaler_v1
  • kubernetes_horizontal_pod_autoscaler_v2beta2
  • kubernetes_horizontal_pod_autoscaler_v2
  • kubernetes_mutating_webhook_configuration
  • kubernetes_mutating_webhook_configuration_v1
  • kubernetes_network_policy
  • kubernetes_network_policy_v1
  • kubernetes_persistent_volume_claim
  • kubernetes_persistent_volume_claim_v1
  • kubernetes_pod
  • kubernetes_pod_v1
  • kubernetes_pod_disruption_budget
  • kubernetes_pod_disruption_budget_v1
  • kubernetes_pod_security_policy
  • kubernetes_pod_security_policy_v1beta1
  • kubernetes_priority_class
  • kubernetes_replication_controller
  • kubernetes_resource_quota
  • kubernetes_role
  • kubernetes_role_binding
  • kubernetes_secret
  • kubernetes_namespace
  • kubernetes_service
  • kubernetes_service_account
  • kubernetes_stateful_set
  • kubernetes_storage_class
  • kubernetes_validating_webhook_configuration
  • kubernetes_validating_webhook_configuration_v1

Special thanks to @sheneska for making these changes as part of her internship @hashicorp! 🚀

v2.16.0

18 Nov 15:16
3f30564

Choose a tag to compare

FEATURES:

  • New data source: kubernetes_endpoints_v1 [GH-1805]

ENHANCEMENT:

  • Add a new optional attribute runtime_class_name to pod.spec. That affects all resources and data sources that use pod.spec directly or as a template. [GH-1895]
  • Add a new optional attribute fs_group_change_policy to pod.spec.security_context. That affects all resources and data sources that use pod.spec directly or as a template. [GH-1892]
  • The kubernetes status field is now available in the kubernetes_resource datasource [GH-1802]
  • r/kubernetes_pod_v1: changing values of spec.container.resources.limits or spec.container.resources.requests will force resource recreation. [GH-1889]
  • r/kubernetes_pod: changing values of spec.container.resources.limits or spec.container.resources.requests will force resource recreation. [GH-1889]

BUG FIXES:

  • Fix an issue when changing values of spec.container.resources.limits or spec.container.resources.requests does not update appropriate Kubernetes resources. Affected resources: kubernetes_pod, kubernetes_pod_v1. [GH-1889]
  • Fix an issue when empty values of spec.container.resources.limits or spec.container.resources.requests produce continuous diff output during plan although no real changes were made. Affected resources: kubernetes_pod, kubernetes_pod_v1, kubernetes_daemonset, kubernetes_daemon_set_v1, kubernetes_deployment, kubernetes_deployment_v1. [GH-1889]
  • Fix an issue with timeouts for StatefulSet, Deployment, and DaemonSet resources when in some cases changes of Update or Create timeout doesn't affect related actions. [GH-1902]

DOCS:

  • resource/kubernetes_service_account_v1: mark attribute default_secret_name as deprecated [GH-1883]
  • resource/kubernetes_service_account: mark attribute default_secret_name as deprecated [GH-1883]

Thanks to all our contributors! 🎉

Community Contributors 🙌

v2.15.0

01 Nov 00:10
f41fd08

Choose a tag to compare

ENHANCEMENT:

  • Add new resource resource_kubernetes_env [GH-1838]
  • Add "field_manager" attribute to kubernetes_labels, kubernetes_annotations, kubernetes_config_map_v1_data [GH-1831]
  • r/kubernetes_horizontal_pod_autoscaler_v2: make attribute spec.behavior.scale_down computed [GH-1853]
  • r/kubernetes_horizontal_pod_autoscaler_v2: make attribute spec.behavior.scale_up computed [GH-1853]
  • r/kubernetes_horizontal_pod_autoscaler_v2: make attribute spec.behavior computed [GH-1853]
  • r/kubernetes_horizontal_pod_autoscaler_v2beta2: make attribute spec.behavior.scale_down computed [GH-1853]
  • r/kubernetes_horizontal_pod_autoscaler_v2beta2: make attribute spec.behavior.scale_up computed [GH-1853]
  • r/kubernetes_horizontal_pod_autoscaler_v2beta2: make attribute spec.behavior computed [GH-1853]

v2.14.0

06 Oct 16:26
676727f

Choose a tag to compare

ENHANCEMENT:

  • Added "preemption_policy" attribute to the priority_class resource. [GH-1846]
  • new attribute: Add immutable attribute to resource_config_map [GH-1849]
  • resource/kubernetes_secret: Add a new attribute wait_for_service_account_token and corresponding create timeout
    resource/kubernetes_secret_v1: Add a new attribute wait_for_service_account_token and corresponding create timeout [GH-1833]

DOCS:

  • r/kubernetes_service: make spec.port block optional [GH-1856]
  • r/kubernetes_service_v1: make spec.port block optional [GH-1856]

2.13.1 (August 29, 2022)

BUG FIXES:

  • [TK-78009] Fix propagation of non-fatal Diagnostics in the type morphing logic

v2.13.1

29 Aug 10:37

Choose a tag to compare

BUG FIXES:

  • [TK-78009] Fix propagation of non-fatal Diagnostics in the type morphing logic

v2.13.0

23 Aug 14:28
82a1035

Choose a tag to compare

BUG FIXES:

  • Starting from Kubernetes 1.24.0 service account token is not automatically generated, thus it has to create separately. The following resources were updated to handle this change: d/kubernetes_service_account, r/kubernetes_default_service_account, r/kubernetes_service_account. For Kubernetes clusters running v1.24+ default_secret_name will be empty. A warning message will be printed once any of the above resources are in use. (#1792)

IMPROVEMENTS:

  • r/kubernetes_manifest: Better error messages from OpenAPI schema transformations (#1780)
  • Update documentation and correct some errors (#1768, #1786)
  • Update acceptance tests infrastructure code for GKE and AKE and related GitHub Actions

v2.12.1

06 Jul 17:16
d2de577

Choose a tag to compare

IMPROVEMENTS:

  • Update documentation and correct some errors (#1759)

BUG FIXES:

  • Fix type morphing of nested tuples that causes Failed to morph errors (#1756)
  • Fix an issue when provider crashes intermittently in version v2.12.0 (#1762)

v2.12.0

30 Jun 20:25
b3bb4a4

Choose a tag to compare

NEW:

  • Attribute ignore_annotations of provider (#746)
  • Attribute ignore_labels of provider (#746)
  • Attribute condition to wait block of kubernetes_manifest (#1595)
  • Attribute allocate_load_balancer_node_ports of kubernetes_service(_v1) (#1683)
  • Attribute cluster_ips of kubernetes_service(_v1) (#1683)
  • Attribute internal_traffic_policy of kubernetes_service(_v1) (#1683)
  • Attribute load_balancer_class of kubernetes_service(_v1) (#1683)
  • Attribute session_affinity_config of kubernetes_service(_v1) (#1683)

IMPROVEMENTS:

  • Update documentation and correct some errors (#1706, #1708)
  • Fix security scan alerts (#1727, #1730, #1731)
  • Attribute topology_key of kubernetes_deployment(_v1) marked as Required (#1736)

BUG FIXES:

  • Fix kubernetes_default_service_account doesn't set the automount_service_account_token to false (#1247)
  • Fix an issue when the imported kubernetes_manifest resource is replaced instead of getting updated (#1712)
  • Fix provider crash when image_pull_secret of kubernetes_service_account(_v1) is null

v2.11.0

27 Apr 14:04

Choose a tag to compare

NEW:

  • Add a new resource kubernetes_horizontal_pod_autoscaler_v2 (#1674)

IMPROVEMENTS:

  • Add ip_families and ip_family_policy attributes to kubernetes_service (#1662)
  • Handle x-kubernetes-preserve-unknown-fields type annotation from OpenAPI: changes to attributes of this type trigger whole resource recreation. (#1646)
  • Upgrade terraform-plugin-mux to v0.6.0 (#1686)
  • Add GitHub action for EKS acceptance tests (#1656)
  • Add github action for acceptance tests using kind (#1691)

BUG FIXES:

  • Fix conversion of big.Float to float64 in kubernetes_manifest (#1661)
  • Fix identification of int-or-string type attributes to include 3rd party types defined by aggregated APIs (#1640)
  • Fix not handling multiple cluster_role_selectors of kubernetes_cluster_role(_v1) (#1360)