The `credentialId` was mutated into `credential` in 32b6280d4b. This had the unintended side effect of the footer being hidden for standard users who are cluster owners.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* replace mergeWithReplace and merge with handleConflict function on machine pools sync mechanism
* do proper deep copy of objects
* fix PR
* address pr comments
* skim down usecases data
* add mergeWithReplace usecases for unit tests on handleWithConflict
* add more usecases
* fix merge conflicts
* RKE2: Account for rke2Charts when applying chart values
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Add unit tests for rke2 changes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Handle `null` and `undefined` values in `rke2Charts()` getter
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
---------
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Overwrite default chart values with user supplied values
Changes to merge behavior so that user supplied values overwrite default values when merging. The lodash merge operation merges object properties recursively, meaning that any keys in the left-most object will remain present. The customizer function works to overwrite any duplicate properties present in the user values.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Add ability to handle objects to `mergeWithReplaceArrays`
This renames `mergeWithReplaceArrays` to `mergeWithReplace` and adds functionality for working with objects. I'm opting to extend the existing util after I found that objects are not the only concern In reviewing prior work #14165 that dealt with arrays. Defaulting `replaceObjectProps` to `false` keeps the existing behavior in place for other usages of `mergeWithReplace`, limiting the chance for regressions in rke2 yaml.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Unit test object merging behavior
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
---------
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* add codemirror error reporting
wire in codemirror validation to rke2 addon config
update addon config validation status when list of available addons changes
* added e2e test for addon config validation;
* account for codemirror being used with no options
* remove $set from AKS validators
* fix cruGKE not rendering
* fix most aks unit tests
* fix crueks and eks config unit tests
* fix eks networking and nodegroup unit tests
* fix gke unit tests
* fix consumption gauge test
* fix namespacefilter tests
* fix command and taints unit tests
* fix questions unit tests
* fix hpa and service unit tests
* fix registryconfigs unit tests
* fix job unit tests
* fix longhorn unit tests
* fix addextensionsrepos unit tests
* fix rke2 basics unit tests
* fix container shell unit tests
* fix last aks pool test
* fix mount tests
* fix namespace and pv unit tests
* fix codemirror unit tests
* clean up aks, boolean, namespacefilter unit tests
* fix namespacefilter test
* remove redundant test case