-
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
feat: respect CLI flag in skaffold render #7664
Conversation
Codecov Report
@@ Coverage Diff @@
## main #7664 +/- ##
==========================================
- Coverage 70.48% 66.62% -3.87%
==========================================
Files 515 587 +72
Lines 23150 28221 +5071
==========================================
+ Hits 16317 18801 +2484
- Misses 5776 8045 +2269
- Partials 1057 1375 +318
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Manual Verification: on the PR branch
On main, namespace is not added
|
f1a8b1f
to
375f3c1
Compare
friendly ping, seems this needs to be rebased |
nit: Is it possible/easy-fix to make the default namespace be called
|
nit: Currently the
It might make sense to update the help text to reflect the flag works in render and modifies the manifest namespace(s) (from this change). It currently seems worded for deploy but just a nit |
2839fbc
to
6970e74
Compare
Done. Please check now |
Made another change to make sure, namespaces are not set in offline mode. TestRender should have same behavior in this PR and on https://github.com/GoogleContainerTools/skaffold/blob/v1.39.1/integration/render_test.go |
…s at the parent level
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
fixes #7595
In this PR,
SetNamespace
which iterates through each manifest in the manifest list.RunContext.Opts.Namespace
i.e. namespace provided on CLIPROS
CONS:
Alternatives considered:
NamespaceSetter
functionality to manifestList. This functionality will go through all manifests in a manifest list and add namespace. See initial commit here 858193b#diff-589cc23b0193a874a91ea21f940516f4e17171b7e9d031175125fcbdb68e6b93R100Cons:
TODO: