-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
installer: always override -c
config on default values
#8401
Conversation
e3cb65a
to
386bd24
Compare
Codecov Report
@@ Coverage Diff @@
## main #8401 +/- ##
=========================================
- Coverage 12.31% 7.59% -4.73%
=========================================
Files 20 31 +11
Lines 1161 2172 +1011
=========================================
+ Hits 143 165 +22
- Misses 1014 2004 +990
+ Partials 4 3 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I think the As this is an update to the config, can you also run |
386bd24
to
f6261b3
Compare
Fixes #8267 Currently, Users run `init` command first, update it and pass full config to `render` to generate Kubernetes manifests. The passage of `-c` is a requirement here, and users can't skip it. This PR makes the passage of `config` to `render` optional, and flexible. This means - Users can skip `-c` entirely, in which case we use the default values on the default config version for that installer binary - Users can selectively override fields and *thus no need to pass full config* all the time. This means `-c` flag acts as a flag through which they can override the default fields. For the second case, When a user explicitely sets the `apiVersion` field in the passed config, we use the default values for that version. If no `apiVersion` is passed, we override the passed config onto the default values on the default config version for that installer binary. After this change, For users This means that they only store and use the config that has their changes only (on the default config), and not the entire config. Signed-off-by: Tarun Pothulapati <[email protected]>
f6261b3
to
a3232f0
Compare
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.
Works like a charm! Thanks Tarun! 🚀
Description
Currently, Users run
init
command first, update it andpass full config to
render
to generate Kubernetes manifests. Thepassage of
-c
is a requirement here, and users can't skip it.This PR makes the passage of
config
torender
optional, andflexible. This means
-c
entirely, in which case we use the defaultvalues on the default config version for that installer binary
config all the time. This means
-c
flag acts as a flag throughwhich they can override the default fields.
For the second case, When a user explicitely sets the
apiVersion
field in the passed config, we use the default values for that
version. If no
apiVersion
is passed, we override the passed configonto the default values on the default config version for that
installer binary.
After this change, For users This means that they only store and use
the config that has their changes only (on the default config), and
not the entire config.
Signed-off-by: Tarun Pothulapati [email protected]
Related Issue(s)
Fixes #8267
How to test
Build the binary, with a speciifc version
VERSION="main.2514" make build
Run
render
no-c
passedRun
render
with onlydomain
setRelease Notes
Documentation