-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Skaffold by default currently adds a namespace to all rendered manifests (--offline=true must be used to change this). We should change the default not to add a namespace
`
#8318
Comments
Likely the approach with the best UX would be something like:
|
Does this mean default doesn't get added to all manifests where the namespace isn't specified in the yamls? My use case is sorta what you mention, we build in one environment and publish artifacts. Then use render -> deploy in our prod environment. This default getting added will break for us since we use manifests that don't specify a namespace. |
@jleonar to clarify, the PR here is suggesting that TLDR; If I understand correctly, I think the change in this issue would do what you what, I'm a bit confused how the default behavior is working for your use case currently given what you stated. Are you setting |
We have stayed on skaffold v1. Our manifests don't specify namespaces. We use profiles for what namespace we want stuff deployed in. When I tried to upgrade from skaffold v1 to v2 and switch to using render -> deploy, I found that |
What version of skaffold are you using currently ( NOTE: unless there are other regressions, friction - you could also try skaffold |
v1.39.1. I did not know about the |
namespace
`
After a recent upgrade of Skaffold we're running into the same problem, notably |
Hey @jleonar, could you share which deployer/renderer are you using in your |
@wvh, what version of skaffold v1 ( |
@renzodavid9, I'm using Skaffold v2.0.1, and mostly the I am indeed using the My manifests themselves don't have namespaces, as they can be deployed in different ones and either a kustomization file or a |
Work here is currently prioritized and in progress |
/triage-action-comment |
Currently when rendering a manifest with skaffold (
skaffold render ...
) by default skaffold adds a namespace to all rendered objects:This is likely not the best experience for skaffold users as having a hard coded namespace on a manifest when it is not explicity requested in some form can lead to issues where users might want to
render
and thendeploy
to a different namespace but the manifests won't be deployable to that namespace as it has a namespace set likely unintentionally.Currently to get skaffold not to add a namespace when doing
skaffold render
, theoffline=true
flag must be added:This is not obvious (
offline
controls namespacing) and the default here should likely mimic this case vs what it does currentlyNOTE:
We should do a git-bisect and identify what PRs or what skaffold versions introduced this behavior and if this is a regression or how it has always worked
The text was updated successfully, but these errors were encountered: