* Test / Wire in new label filtering to limited places
- Wired in to
- Workload detail page - pods and services (broken due to reverse selector)
- Service Detail - Pods List
- Service create/edit - Pod selector tab
- Also
- Fix showPodRestarts in random location
- TODOs
- Lots of testing / validation required
- reverse deployment --> service selector (not services given deployment, but for each service contains pods from deployment)
- workload model usages of pods getter
- services model usages of pods getter
- many many more....
* wired in, NOT tested
* improvement
* sdfdsf
* ryrty
* werer
* The great test off begins
* testing and tidying
* testing and tidying
* First good run
* tests, fixes and improvements
* updates
* Tidying up
* Fixes (namespace orientated), tweaks, updates
* Fix unit test
* Fixes for vai off
* Re-write `matching`
- handle namespaces better (given if the resource is namespaced
- better align with legacy matching fn (given specific scenarios that should return none or all)
* Lots of fixes, but mainly vai off --> pods list --> deployment detail --> pods list updates correctly
* fix lint, unit test
* e2e fix
* Fix weird plugins build validation failure (TS error on expected param for JS method with a default)
* Fix workload services
* changes following mini code review
* Only show pods tab if workload type supports it, always show pod resource table if tab is shown
* 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>
* refactor AssignTo, MoveModal and feature flag modal as prompt modals + add unit tests + remove store mechanisms that were dedicated to these modals
* fix small issues with FeatureFlagListDialog and MoveNamespaceDialog
* fix merge conflicts + remove code comments
* address merge conflicts + remove text from template
* 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>
* Enter edit mode if updating roles fails during user creation
This emits an `update:mode` event that sets to mode to "edit" and refreshes all resource-related variables when the `updateRoles()` method fails during user creation. This provides an opportunity for users to correct mistakes while still staying in the "Create User" context.
An alternate approach that explored navigating to an edit route was explored, but this required re-rendering the entire form and would eliminate the error message; additional state to persist the error messages would be required and I found that requirement to be more complex than the approach taken here.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Display a user readable error an escalation error is raised
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* e2e test: attempt to create an admin user with standard user
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Prevent watcher from overriding values when user id changes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Generate new timestamp for admin user
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
---------
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* add role 'none' to hr elements in TopLevelMenu
* add missing role and label to SideNav
* add aria-label to show/hide button in the Password component
* add role 'none' to hr elements
* add missing alt to user avatar image
* fix(auth/oidc): reset issuer and auth endpoint if oidcUrls.url is empty
* test(auth/oidc): clear URL should clear issuer and auth-endpoint if Keycloak
* Correct validation to accept already mentioned requirements
* Extend requirement to all the basic scopes which prefill the view
* Update Story for KeyValue protected case
* Fix Story slot issue
* Updated tests, comments, added TODO; Added validation tests
0c6eb6473d introduced a change that moved the call to `selectContainer` out `data` and into the `created` hook. Before this change, any modifications made by invoking `selectContainer` would get overwritten by setting container in the data prop. `selectContainer` only needs to be invoked once on first render, and the changed method in `shell/edit/workload/index.vue` satisfies this requirement.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This reverts commit 85c31a4073.
Testing exposed that this feature requires all three attributes (`searchUsingServiceAccount` flag, plus separate credentials via `searchServiceAccountDistinguishedName` and `searchServiceAccountPassword`) to function properly.
Reverting this change will prevent confusion until a fix can be applied to make the feature functional.
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>