* Add PSA template dropdown to RKE2 cluster editor
* Add tests for RKE2 custom cluster editor to display options for PSA
* Remove TODO and hardcoded value for k8s PSA 1.25+
* Allow CRU editor to have error maps
* Fix linting on destructured arrays for unused values in Workloads erorr map
* Allow to change PSP and reset values accordingly
* Correct banner HTML for reprovisioning
* Replace default term with none in cluster creation policies
* Replace PSA ID with Name for the template in the cluster creation
* Remove extra condition for PSA options
* Add i18n with separated values for RKE default optins
* Restore default option for no PSP template in RKE2
* update url for namespaced requests for secondary data
* remove unnecessary type and id setting on resource-manager as for all requests now come from Steve api + fix issue where changing namespace on workload creation would cause an error on PVC because of undefined value
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
* remove secondary data config from the data prop so that we dont have a huge config hindering code readability
* Sneaky fix
- Ensure PVC info is shown when looking at a PV, as well as when editing it
- Still won't show PVC section/load them when creating a PV
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Richard Cox <richard.cox@suse.com>
* Prevent ESLint to format generated paths
* Add HTML ESLint Rules
* Format all the Vue HTML templates except Harvester
* Exclude Harvester package from linting HTML, keeping old formatting rules
* move secondary data requests to a non-blocking ui method + pass loading props to the correct labeled selects
* main data loading procedure for secondary data done
* use pvcs from secondary resource fetch on storage component
* rename loading props to asyncDataLoading for better context
* cleanup
* move secondary resources data loading logic to a mixin
* cleaning up resource-manager mixin
* fix issue where namespace wasnt being updated on secondary requests
* add doc description for data structure for resourceData
* minor change
* add plural option to resource-manager + remove loading var from workloads for sec resources + optimise persistentvolume edit view
* improve persistentvolumeclaim edit view
* add loading flag
* addressing PR comments
* fix latest PR comments
* doc on classify option for resourceManagerFetchSecondaryResources param
* Ensure reponse for namespace resources mimics non-namespaced
- The resources returned when requesting namespaced types do not contain id, type and links properties.
- This isn't perfect, or universally applicable, but will work for the current set of use cases
* working on merge conflicts
* Remove files from bad merge
* Handle new namespaces
- The secondary resource manager fetches some resources by namespace
- The user however can supply a new namespace
- When in `new namespace` mode we need to
- avoid trying to fetch namespaced resource
- clear any cached namespaced resource
- this only currently applies to workloads, PV and PVC pages don't fetch namespaced resources
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Richard Cox <richard.cox@suse.com>
Fixes#6800 - Workload storage mount point for volumes should be on containers
Fixes#7021 - Allow user to change the volume name
Fixes#7027 - Pod details page broken
These all works on 2.6.9 because PRs were merged after the branch separation. So this is applying the same changes to 2.7.0
For Release 2.6.9
#6800 -> release 2.6.9 PR fix#6886#7021 -> release 2.6.9 PR fix#7022#7027 -> release 2.6.9 PR fix#6952
* Pin all the dependencies versions to current use and generate new yarn.lock
* Update mismatching package versions with lock
* Update and pin libraries for dependencies
* Correct test linting complains
* Make container tabs horizontal.
* Update cronjobs, DaemonSets, Jobs, StatefulSets to use same Workload component.
* Fix 6755 - Wrong sidecar config edit not shown in UI.
* Set Persistent Volume claim capacity as required.
* Use plugins globally in Jest configuration over single statements
* Add checkspell terms
* Add test id and cleanup code for Upgrading
* Create test for Upgrading input actually updating values while typing
* Handle missing terminationGracePeriodSeconds value in the spec qhile hanfling Upgrade value
* Replace Deployment Upgrading input event strategy with blur
* Remove container input listener, over single input emitters, to avoid issues in case of blur
* Extend tests to all the inputs to update the data in the Upgrading tab
* Removed deprecated components
* Correct vue-select import in Vue within Jest setup
* Add vue-select type
* Create form tests sample for input with custom select component
* Create unit tests for all the forms
* Create test for Upgrading without verify value
* Changed from component to query selectors in select input unit tests
* Prevent multiple events due inconsistent event input pattern in network update for Harvester
* Correct TS complain about Vue logic
* Add issue number to TODO
- Currently not shown for deployments
- Change to match original replaced code
```
if (this.isCronJob) {
out.push('schedule');
} else if (this.isReplicable) {
out.push('replicas');
if (this.isStatefulSet) {
out.push('service');
}
}
```
(Not quite sure on the service clause, but it matches original functionality)
Also reduced size to align with components above