-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
installer: always override
-c
config on default values
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]>
- Loading branch information
1 parent
e720c49
commit 63d893c
Showing
3 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters