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

feat: Add HA settings to Rancher UI questions #425

Merged
merged 5 commits into from Apr 17, 2024

Conversation

viccuad
Copy link
Member

@viccuad viccuad commented Apr 16, 2024

Description

partially closes #418 (some features are blocked by UI bugs, see below).

Test

Tested manually. See videos also:

2024-04-16-11.28.33.202075928.mp4
2024-04-16-11.30.58.202011297.mp4

Additional Information

Changed name of sections, @kravciak this may mean changes to Kubewarden UI testsuite.

Tradeoff

Potential improvement

@aalves08 There are 2 UI bugs, unrelated to the questions.yaml changes:

  • type: yaml doesn't read and use the value of the variable from values.yaml as default.
  • type: yaml doesn'd display correctly unless going to "Edit YAML" and back to "Edit Options"

Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
@viccuad viccuad requested a review from a team as a code owner April 16, 2024 11:34
Copy link
Member

@jvanz jvanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. However, while I was watching the first video I have the impression that at minute 31 we could have a situation where maxUnavailable and minAvailable are set together. Is that expected? Maybe a bug in UI?

@viccuad
Copy link
Member Author

viccuad commented Apr 16, 2024

That is true, and I don't see any way to solve it. The chart json schema prevents installation though but it is ugly.

I'm already using a trick by setting an unexsistent value questions.ui.pdb in the radio, to be able to only show one of minAvailable or maxUnavailable. There's no other way to not show 1 of two fields (tried with enum, adding a non-existent policyServer.pdb.enable bool). It's a bit underwhelming to be honest. This bug also appears on the controller chart when ticking the jaeger config on or off.

Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
@viccuad
Copy link
Member Author

viccuad commented Apr 16, 2024

Copied previous work into viccuad/prod-questions-archive. Will open issues against rancher/dashboard and link this PR.

Rebased and dropped the buggy elements. Current state from this PR:

Screencast_2024-04-16_15.47.12.webm
Screencast_2024-04-16_15.48.18.webm

Ready for review.

@viccuad viccuad requested a review from jvanz April 16, 2024 13:50
@viccuad viccuad merged commit 9ef5ab2 into kubewarden:main Apr 17, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Expose anti-affinity, PDB, limits and requests in questions.yaml
4 participants