Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #216
The only problem is that this changes the config file format, which cases Viper to barf on validation if it detects the old format. Should we add some sort of conversion here? @grampelberg
Updating Old Config Files:
This update introduces a slight change to the config file schema that allows use of multiple selectors (tags) when specifying a spec. Specs created prior to this version are not compatible and must be updated.
There are two options for updating configs:
selectors
fieldFor option 2, you'll need to do the following:
The old config format specified a single key-value pair for configs, like so:
The new config format changes the
selector
value to a map, allowing more than one selector to be specified:Change this field to a map with the appropriate values and it should validate correctly. You will need to reload
kysnc watch
to validate the new config.When (re)creating specs, selectors can be passed in as comma-separated values
--selector=app=test,tier=backend
or as multiple flags-l app=test -l tier=backend
.