You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to start in a pretty old ticket kubernetes/kubernetes#24725 as not all restart policies are supported depending on the resource kind. But this is not clear in the documentation, that just list the options but not if they apply to that resource type.
People then are facing a confusing error message like this one: Unsupported value: "OnFailure": supported values: "Always"
For me doesn't make a lot of sense to have an option that only have one valid value. But I think is more critical to proper document that. Lot's of frustrated people with this...
-`restart_policy` (String) Restart policy for all containers within the pod. One of Always, OnFailure, Never. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy.
daniel-dona
changed the title
"restart_policy" is wrongly documented at least for kuberneted_deployment resource
"restart_policy" is wrongly documented at least for kubernetes_deployment resource
Sep 25, 2024
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Important Factoids
This seems to start in a pretty old ticket kubernetes/kubernetes#24725 as not all restart policies are supported depending on the resource kind. But this is not clear in the documentation, that just list the options but not if they apply to that resource type.
People then are facing a confusing error message like this one:
Unsupported value: "OnFailure": supported values: "Always"
For me doesn't make a lot of sense to have an option that only have one valid value. But I think is more critical to proper document that. Lot's of frustrated people with this...
References
terraform-provider-kubernetes/docs/resources/deployment.md
Line 114 in 9d6074c
Community Note
The text was updated successfully, but these errors were encountered: