Skip to content

maintenance: Update Terraform kubernetes to v2

Zopanix requested to merge renovate/kubernetes-2.x into master

This MR contains the following updates:

Package Type Update Change
kubernetes (source) provider major 1.10.0 -> 2.1.0

Release Notes

hashicorp/terraform-provider-kubernetes

v2.1.0

Compare Source

BUG FIXES:

  • Fix kubernetes_cron_job ForceNew when modifying job_template (#​1212)
  • Fix error returned by Create CSR (#​1206)
  • Fix kubernetes_pod_disruption_budget: 100% now is a valid value (#​1107)
  • Fix perpetual diff in persistent volume claimRef (#​1227)

IMMROVEMENTS:

  • Add binary_data field to kubernetes_secret (#​1228)
  • Add support for setting the persistent volume claimRef (#​1020)
  • Add secret_namespace to volume_source azure_file (#​1204)
  • Docs: fix grammar in Network Policy (#​1210)
  • Docs: kubernetes_cron_job add link to Kubernetes reference (#​1200)

v2.0.3

Compare Source

BUG FIXES:

  • Fix resource_field_ref schema for projected_volume (#​1189)
  • Add diff suppression to persistent_volume and persistent_volume_claim (#​1145)
  • Remove error for missing kubeconfig, to allow generating it at apply time (#​1142)

IMMROVEMENTS:

  • Support topologySpreadConstraint in pod spec schema (#​1022)
  • Wait for kubernetes_ingress to be deleted (#​1143)
  • Improve docs for configuring the provider (#​1132)
  • Update docs to reflect Kubernetes service status attribute (#​1148)

v2.0.2

Compare Source

BUG FIXES:

  • Read operation should set resource id to null if not found (#​1136)

IMMROVEMENTS:

  • Add service timeouts docs (#​963)

v2.0.1

Compare Source

BUG FIXES:

  • Resources state migration should migrate empty array (#​1124)

IMMROVEMENTS:

  • Update docs to reflect new schema for load_balancer_ingress (#​1123)

v2.0.0

Compare Source

BREAKING CHANGES:

  • Replace support for KUBECONFIG environment variable with KUBE_CONFIG_PATH (#​1052)
  • Remove load_config_file attribute from provider block (#​1052)
  • Remove default of ~/.kube/config for config_path (#​1052)
  • Update Terraform SDK to v2 (#​1027)
  • Restructure service and ingress to match K8s API (#​1071)
  • Normalize automount_service_account_token to be in line with the K8s API (#​1054)
  • Normalize enable_service_links to be in line with the K8s API (#​1074)
  • Normalize wait defaults across Deployment, DaemonSet, StatefulSet, Service, Ingress, and Job (#​1053)
  • Change resources requests and limits to TypeMap (#​1065)

FEATURES:

  • Add timeout argument to kubernetes_stateful_set (#​1047)
  • Add divisor to resource_field_ref (#​1063)
  • Add ingressClassName as field in Ingress manifest (#​1057)

BUG FIXES:

  • Fix typo in Job error message (#​1048)
  • Fix assertion in TestAccKubernetesPersistentVolume_hostPath_nodeAffinty (#​1067)
  • Fix service load balancer crash (#​1070)
  • Fix cronJob.ttl_seconds_after_finished causing requests to fail even without value specified (#​929)
  • Fix perpetual diff when using Pod resource with automount_service_account_token=true (#​1085)
  • Fix perpetual diff in StatefulSet when update_strategy is not specified (#​1088)
  • Fix delete/recreate when updating init_containers (#​951)
  • Fix delete/recreate of Jobs when updating mutable fields (#​1074)

IMMROVEMENTS:

  • Add upgrade test for daemonset (#​1064)
  • Add kube_config_paths to provider block (#​1052)

v1.13.3

Compare Source

FEATURES:

  • Add support for readiness_gate on Pod spec (#​811)
  • Add Azure Managed disk to PV resource (#​202)
  • Add support for enable_service_links to the pod specification (#​975)

BUG FIXES:

  • Fix annotation diffs on affinity tests (#​993)
  • Fix api_group requirement in cluster_role_binding and role_binding (#​1024)
  • Fix service test leaking ELBs (#​947)
  • Fix annotation diffs on affinity tests (#​993)
  • Fix job documentation
  • Fix build on macOS (#​1045) and windows/386

IMMROVEMENTS:

  • Update Go dependencies (#​968)
  • Update acceptance tests for tfproviderlint (#​887)
  • Refactor Typhoon test configuration to allow selection of Kubernetes version (#​992)
  • Update Merge Request Lifecycle docs (#​1032)
  • CI checks for docs website (registry migration) (#​953)

v1.13.2

Compare Source

BUG FIXES:

  • Fix spurious forced replacement in empty_dir volume (#​985)
  • Fix reported replica count when waiting for Deployment rollout (#​998)
  • health_check_port_node should force replacement (#​986)
  • Don't force replacement StatefulSet / Deployment when affinity rule selectors change (#​755)

IMMROVEMENTS:

  • Wait for kubernetes_service to be deleted
  • Updates to CONTRIBUTING.md and PULL_REQUESTS.md

v1.13.1

Compare Source

BUG FIXES:

  • Fix crash when size_limit is not present on empty_dir volume (#​983)

v1.13.0

Compare Source

FEATURES:

  • Add resource CertificateSigningRequest (#​922)
  • Add resource default_service_account (#​876)

IMMROVEMENTS:

  • Allow in-place update of PVC's storage request (#​957)
  • Add sysctl support to pod spec (#​938)
  • Add ability to wait for deployment to delete (#​937)
  • Add support for aggregation_rule to cluster_role resource (#​911)
  • Add health_check_node_port to Service resource (#​908)
  • Add support for size_limit for empty_dir block (#​912)
  • Add support for volume mode (#​939)
  • Add projected volumes in pod_spec (#​907)
  • Add termination_message_policy to container schema (#​847)

BUG FIXES:

  • Recreate Storage Class on VolumeBindingMode update (#​757)
  • Fix url attribute in admissionregistration client_config.service block (#​959)
  • Fix crash when deferencing nil pointer in v1beta1.IngressRule (#​967)

v1.12.0

Compare Source

BUG FIXES:

  • Fix crash in resource_kubernetes_pod_security_policy attribute host_ports (#​931)

IMMROVEMENTS:

  • Add wait_for_rollout to kubernetes_deployment resource (#​863)
  • Add wait_for_rollout to kubernetes_stateful_set resource (#​605)

v1.11.4

Compare Source

IMMROVEMENTS:

  • Add resource for CSIDriver (#​825)
  • Add resource for Pod Security Policies (#​861)
  • Add data source for Pod and PVC (#​786)
  • Add support for CSI volume type in persistent_volume resource (#​817)
  • Add Kubernetes Job wait_for_completion functionality (#​625)
  • Support optional flag for ConfigMap mounted as volume (#​823)
  • Add specific error message when failing to load provider config (#​780)
  • Support optional on env valueFrom for secret key/configmap key (#​824)
  • Skip tests for CSIDriver if cluster version is less than 1.16
  • Allow ttl_seconds_after_finished = 0 in kubernetes_job resource (#​849)
  • Set service block to optional for webhook configurations (#​902)

v1.11.3

Compare Source

IMMROVEMENTS:

  • Add data source for ingress (#​514)
  • Add data sources for namespaces (#​613)

v1.11.2

Compare Source

IMMROVEMENTS:

  • Add data source for config map (#​76)
  • Add data source for service account (#​523)
  • Add resource for ValidatingWebHookConfiguration and MutatingWebhookConfiguration (#​791)

BUG FIXES:

  • Update Go module versions to work with Go 1.13

v1.11.1

Compare Source

IMMROVEMENTS:

  • Bump provider SDK to v1.7.0

BUG FIXES:

  • Defer client initialization to improve resilience (#​759)

v1.11.0

Compare Source

IMMROVEMENTS:

  • Add mount_options attribute to kubernetes_persistent_volume and kubernetes_storage_class
  • Refactor client config initialization and fix in-cluster config (#​679) (#​497)

BUG FIXES:

  • Do not force base64 encoding for the ca_bundle on kubernetes_api_service (#​679)
  • Allow 3s age gap between service account and secret (issue)
  • Add load_config_file = false to documented provider configurations
  • Add support for startup_probe on container spec
  • Fix (cluster-)role bindings and rules updates (#​713)
  • Fix namespacing issues on kubernetes_priority_class (#​680) See comment on backward compatibility
  • Documentation fixes

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box.

This MR has been generated by Renovate Bot.

Edited by Zopanix

Merge request reports