-
Notifications
You must be signed in to change notification settings - Fork 16
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
Enable users to configure persistent default flag values for the apps plugin #108
Comments
A possible "cheap" way to handle this is to allow a user to specify multiple files that are merged together. Something like
|
Consider: Story to add feedback message to crud commands to inform folks when we are using configured defaults. The info may show up in the diff already, I need to check out each of the configurable values to think it thru further. |
Consider: story to add hint to local code commands to let folks know they can persist some of the values |
We've decided against implementing this feature until/unless there's demonstrable interest in it from the community. |
Description of problem
Developers will provide the same flags/values repeatedly when iterating on their application code.
Typing or copy/pasting those same flag values for every
workload create/update/apply
adds friction to the developer workflow.We should make it possible for the user to configure/persist sane defaults for a subset of the supported flags such that they can execute their commands without having to provide the same flag/values repeatedly.
Proposed solution
workload create/update/apply
commands.Flags targeted for configuration (configurable flags should be listed in alphabetical order in the UI)
Command and Interactions:
Listing / checking config (styling based on the cobra implementation used by
tanzu login
)if user starts typing, the options displayed are filtered
user can use up/down arrow keys to move the ">" to their desired selection
hitting triggers edit mode.
username
password
Setting key that expects a bool
If user hits from the selected option and the selected option is a boolean, the UI should update as follows:
Setting key that expects a string
Example below assumes user has clicked on "local-path" select option...
the
--local-path will be set to....
message should be displayed only after the user submits the valueupon submission, the config value is saved, confirmation text and other messaging is displayed and the command exits 0
Configuration UX when values have been previously configured
Unsetting key that expects a string
Example below assumes user has clicked on "local-path" select option...
Upon selection, the entry "area" is blank and if user hits the value will be unset
Help Text
Implementation Notes/questions
the config file should be stored at
~/.config/tanzu/apps/config.yaml
Describe alternatives you've considered
tanzu apps workload apply hello-world -f workload.yaml -f overlays.yaml
) -- suggested by @scothisAdditional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: