Open g1augusto opened 2 years ago
Hi and thanks for this provider,
I think it could be really useful to have an option to apply a specific namespace when importing YAML files in _kubectlmanifest .
At the moment is only possible by applying the namespace directly into the YAML file but it would be better to decouple the two things.
I would like to see something like this :
resource "kubectl_manifest" "sample" { yaml_body = file("sample.yaml") namespace = "sample-namespace" }
this would have the effect of running :
kubectl apply -f sample.yaml --namespace=sample-namespace
Thanks!
Is this functionality not provided by the override_namespace argument?
@nicoodle Perhaps you are right, I will test.
Most likely I didn't think about it because there isn't an example in the documentation, my bad
Hi and thanks for this provider,
I think it could be really useful to have an option to apply a specific namespace when importing YAML files in _kubectlmanifest .
At the moment is only possible by applying the namespace directly into the YAML file but it would be better to decouple the two things.
I would like to see something like this :
this would have the effect of running :
kubectl apply -f sample.yaml --namespace=sample-namespace
Thanks!