-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Render and Apply - different behaviour with Helm namespaces #7101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This seems to be a mismatch between |
I am still investigating the root cause of this issue but currently the Logs in my own repro attempt show that
Should helm be adding a namespace in the generated manifest? When I run
|
Here is my repro steps: skaffold.yaml
commands:
I am able to reproduce this issue, the deployment (in this case
|
Related helm issue: I'm not sure if helm actually adds namespaces to the generated manifest, still trying to have it work for me locally via |
I don't think that Helm/Skaffold should add namespaces to the manifest, but |
@msonnleitner I agree with the proposed solution of making Currently Additionally when For Currently the way that From the comments here it seems that the suggested fix is that While this can be done, the issue is that for skaffold configuration with multiple deployments in a ‘deploy:’ the namespaces would be different for
With the suggested fix, the From my reading of this these are the possible solutions:
@briandealwis do you agree with the following assessment and have any opinion on the appropriate solution going forward? Thanks |
For a simple fix here, the plan is update
|
NOTE: In the simple fix suggested above, the profile would have to be passed to |
Expected behavior
Supplying the following skaffold.yaml to Cloud Deploy, the render and apply stages would create the namespace(s) and include in the rendered manifests (as per https://skaffold.dev/docs/references/yaml/):
Actual behavior
The namespace and create namespace fields are ignored during render and apply. Using
skaffold deploy ...
works (because it's using Helm to deploy; however, with render and apply this is ignored. Could the rendering stage be updated to include the namespace flag (e.g.helm template -f values-files/common-values.yaml -f values-files/dev-values.yaml test ./demochart --namespace foobar --set image.repository=nginx --set image.tag=1.21
) which would allow the namespace to be updated in the manifest during render?Information
You can work around this issue by baking the namespace into the manifest(s)...
However, that a) adds fragility by baking in the namespace and b) requires the namespace exists before the apply stage is run.
Steps to reproduce the behavior
skaffold render -p dev -a build.artifacts > manifest.yaml
skaffold apply --filename=skaffold.yaml manifest.yaml
The text was updated successfully, but these errors were encountered: