Skip to content
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

Clean questions.yaml variable once the selected type is not selected anymore #10815

Open
viccuad opened this issue Apr 16, 2024 · 0 comments
Open
Labels
area/kubewarden kind/enhancement QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this

Comments

@viccuad
Copy link
Member

viccuad commented Apr 16, 2024

Is your feature request related to a problem? Please describe.

When using questions.yaml, sometimes there is the need to configure mutually exclusive fields of values.yaml.

This blocks exposing affinity/anti-affinity, PodDisruptionBudgets, limits/requests, and others for Kubewarden charts.

To Reproduce

Describe the solution you'd like

A way to select between several mutual exclusive types in questions.yaml. Selecting one clears the value from the others.

Describe alternatives you've considered

The closest seem to be type: radio, and subquestions. This would allow for the subquestions to be of different types as needed.
Yet, there's no way to input a value from selecting one of the radio options, as it works as an enum.
I've tried using type: radio with subquestions here, yet of course don't clean previous variables.

See here:

Screencast_2024-04-16_16.25.26.webm

To reproduce, install kubewarden-controller chart or kubewarden-defaults chart and see its questions, from the following:

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubewarden kind/enhancement QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this
Projects
None yet
Development

No branches or pull requests

2 participants