dashboard
dashboard copied to clipboard
set harvester chart values in before save hook instead of saveOverride
Summary
Fixes #13894
Occurred changes and/or fixed issues
Technical notes summary
This PR moves the logic to generate a kubeconfig secret and set that as well as other chart values from saveOverride into a before save hook, so that the code runs before switching to the yaml view.
Areas or cases that should be tested
- Navigate to the cluster manager cluster list view and click create
- Select the harvester rke2 option
- Select a cloud credential and fill all required fields in the machine config section
- Open browser dev tools network tab and watch network requests
- Click edit as yaml
- Verify that a secret was created and referenced in the cluster yaml
Checklist
- [x] The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
- [x] The PR has a Milestone
- [x] The PR template has been filled out
- [x] The PR has been self reviewed
- [x] The PR has a reviewer assigned
- [x] The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
- [x] The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes
- [x] The PR has been reviewed in terms of Accessibility