hashicorp / terraform-provider-kubernetes

Terraform Kubernetes provider
https://www.terraform.io/docs/providers/kubernetes/
Mozilla Public License 2.0
1.6k stars 979 forks source link

Fix restart_policy validation in Deployment #2595

Closed alexsomesan closed 1 month ago

alexsomesan commented 1 month ago

Description

Fixes validation of restart_policy values in Deployment's pod template - only "Always" is a valid value in this case

Acceptance tests

Output from acceptance testing:

$ make testacc TESTARGS='-run=^TestAccKubernetesDeploymentV1_with_restart_policy'
=== RUN   TestAccKubernetesDeploymentV1_with_restart_policy
=== PAUSE TestAccKubernetesDeploymentV1_with_restart_policy
=== CONT  TestAccKubernetesDeploymentV1_with_restart_policy
--- PASS: TestAccKubernetesDeploymentV1_with_restart_policy (12.22s)
PASS
ok      github.com/hashicorp/terraform-provider-kubernetes/kubernetes   13.430s

Release Note

Release note for CHANGELOG:

resource/kubernetes_deployment_v1: Fix validation of `restart_policy` values

References

Fixes #2591

Community Note