Commit Graph

244 Commits

Author SHA1 Message Date
Vincent Fiduccia 7190b7cc28
Look for edit/remove of user on norman user 2021-08-20 02:56:00 -07:00
Vincent Fiduccia 7b3d1b8f68
Remember highest resourceVersion and use on subscribe restart 2021-08-19 14:48:09 -07:00
Vincent Fiduccia df49751d62
Rehydrate fetch data 2021-08-19 14:48:09 -07:00
Vincent Fiduccia 6354552ddb
Fleet set labels on norman object 2021-08-17 15:53:50 -07:00
Vincent Fiduccia 31e806d021
Define & use canList before findAlls instead of schemaFor 2021-08-17 02:16:39 -07:00
Vincent Fiduccia c9e189de2d
Socket Debug option 2021-08-17 02:16:38 -07:00
Vincent Fiduccia 840e9127d9
Watch server version, subscribe fixes 2021-08-09 19:01:03 -07:00
Vincent Fiduccia ad76198a4f
Ignore 401s from azure cloud cred check 2021-08-09 16:24:32 -07:00
Vincent Fiduccia 083bb63dbc
generateYaml override hook in CruResource 2021-08-06 02:06:05 -07:00
Vincent Fiduccia 96f53674d8
Upgrade jsyaml 2021-08-06 02:06:04 -07:00
Vincent Fiduccia 53eca88159
Cloud credentials part deux 2021-08-04 01:14:19 -07:00
Vincent Fiduccia 65457b7ddf
CloudCred 2->1, part one 2021-08-04 01:14:18 -07:00
Vincent Fiduccia bbefcaf1b6
rm -rf Rio 2021-07-02 02:10:02 -04:00
Richard Cox f960597e2c Multiple fixes and changes following Vince sync
Functional
- Attempt to load resource model file with store prefix ('cluster/node') before attempting just type ('node). Fixes kube / norman node clash
UI
- Fixed node list group/ungroup button label
- Fixed node list group label
- Fixed bottom border of row without taints
2021-06-25 13:29:29 +01:00
Richard Cox 92d4e5e9af Add grouping and more info to the explorer kube node list
- Add POD stat to kube nodes table
- Group kube nodes by management node pools, describe pools as per old norman node pools
- Add Drain Node
- Add ability to hide table columns depending on window width
  - hide certain stats at certain widths
- Fixed an issue where RAM & CPU stats were reported strangely (multiplied over an above normal % only to be reduced to working % in formatter)
2021-06-24 13:33:45 +01:00
Vincent Fiduccia f04887db8d
Cloning cloud creds should load the right driver component (#3043) 2021-06-23 01:13:58 -07:00
Vincent Fiduccia c1ea27cc2d
Disable editing existing pool names 2021-06-22 23:35:08 -07:00
Richard Cox 9b448ce0bd Fix issue where searching the second time for principals resulted in missing principal resource names
- 1st call to v3/principals?action=search --> rancher/loadMulti - new principals for store, new proxy objects
- 2nd call to v3/principals?action=search --> rancher/loadMulti - existing principals in store, load updates object by deleting all existing props (like _name) and applying new (that didn't contain _name)
2021-06-15 13:13:25 +01:00
Richard Cox 175ee7d477 Show error/transition state description in resource lists
- for resources in error or transitioning states show the associated message underneath the row
- message is placed as default content in list's sub-row (currently only used for cis reports)
- also allow override of resource state object used to determine resource state and state message
  - only used in provisioning cluster to swap state with management cluster if not rke2
  - this will be reverted once backend correctly syncs state of legacy/rke1 clusters correctly

Also fixed indentation of unconnected clusters in side nav
2021-06-09 15:20:42 +01:00
Cody Jackson bbfc4070aa Migrating cluster membership from ember to vue (clusterRoleTemplateBindings)
rancher/dashboard#2501
2021-06-04 04:00:49 -07:00
Neil MacDougall f02e35c76c Add Save As RKE Template cluster action 2021-06-02 09:12:02 +01:00
Cody Jackson 66f0755374 Correcting the workload metrics
- We were using the id which had the namespace as a prefix so I switched to shortId
- The metrics currently only have data for 4 of the types so I'm only showing the tab for those 4

https://github.com/rancher/dashboard/issues/2678#issuecomment-841499076
2021-05-26 13:51:24 -07:00
Richard Cox f5539436d2 Add Keycloak OIDC provider
- Much of the grunt work is generic OIDC

Also fixed
- store's principalId was not updated after user enables any auth provider
- Colour of InfoBox title in dark mode
- Issue where some kind of errors when enabling provider were shown as an empty box (exceptionToErrorsArray is now used, which also uses a better catch all stringify)
- An issue where enabling and disabling a provider in the same visit meant lost defaults
- An issue where Auth / Groups would not display (async part had been removed)
- Resource instance validation would show all fields as invalid once one field had failed
2021-05-25 11:15:32 +01:00
Vincent Fiduccia d12079875a
/v3/settings to /v1/management.cattle.io.setting
- /v3 doesn't exist if multi-cluster-management is disabled
- Use /v1/management.cattle.io.settings everywhere instead of /v3
- It now returns the public set of settings if retrieve with no auth, so
  the store needs to remember that even though we loaded "all" of them
that wasn't really ALL of them so that the full list gets loaded after
auth.
- Use new x-api-cattle-auth header to determine authentication state if present
- Use SETTINGS.* constants consistently
- `brand` -> `ui-brand` for consistency
- `eula-accepted=true` -> `eula-agreed=<timestamp>` to match Ember
2021-05-20 16:48:45 -07:00
Vincent Fiduccia f95f4e802a
RKE2 backup & restore 2021-05-19 17:19:46 -07:00
Vincent Fiduccia ad2d449449
RKE2 Snapshot list (create/restore API calls TBD) 2021-05-18 12:47:15 -07:00
Vincent Fiduccia c77ba00238
RKE1 Snapshots 2021-05-18 12:47:13 -07:00
Cody Jackson 33d6918188 Migrating Projects from Ember to Vue
rancher/dashboard#2500
2021-05-17 08:49:54 -07:00
Vincent Fiduccia e24da99e20
k9s-style shortkeys 2021-05-06 18:30:44 -07:00
Vincent Fiduccia 294baf0aa2
Machine SSH & Key download 2021-04-29 14:33:09 -07:00
Nancy Butler 9f106198c4 ignore validation for oauth, service acct cred googleoauth 2021-04-26 11:49:42 -07:00
Vincent Fiduccia 19bcd3127e
Cluster improvements 2021-04-21 17:16:44 -07:00
Nancy Butler 4cf0f8cb32 fix changes from sidecars 2021-04-14 14:40:12 -07:00
Nancy Butler 6a8c619559 fix svc ports for sidecars 2021-04-12 07:08:21 -07:00
Nancy Butler f0e002a8af create/edit/remove sidecars init container 2021-04-12 07:08:21 -07:00
Richard Cox 8d067de9b5 Ensure new users are requested to change password
- If this is enabled when user is created user should be prompted to change password
- Fix is to switch from Steve user create to Norman user create
- #2524
- Also fixes issue where description was not saved if there was no custom model
2021-03-29 13:24:29 +01:00
Richard Cox 83492e663d
Merge pull request #2566 from richard-cox/block-delete-self
Ensure current user cannot deactivate or delete themselves
2021-03-19 09:19:57 +00:00
Richard Cox 32c55446cb Ensure current user cannot deactivate or delete themselves
- the api does not allow the signed in user to deactivate/delete themselves
- ensure that we don't show these options by checking user isn't the signed in one
- ideally this should be done via the api by removing the 'remove' link for the signed in user
2021-03-18 18:14:12 +00:00
Richard Cox 1a82410a8e Fix download yaml when multiple resources are selected
- ensure contents of files is correct
- this matches, roughly, what happens in download()
- fallback on previous way just in case
2021-03-18 12:28:05 +00:00
Richard Cox 5141228743
Merge pull request #2495 from richard-cox/confirm-multi-user
Request typed confirmation when deleting multiple resources
2021-03-18 12:09:09 +00:00
Vincent Fiduccia 75ec34c756
Define and create pools 2021-03-17 23:02:49 -07:00
Richard Cox 4807dfa442 Request confirmation of a random resource when deleting multiple resources
- when deleting multiple resources, and confirm enabled, prompt for a random resource name for confirmation
- random resource name will always be visible, for the case where there are more than 5 to delete
- Improved process to declare which resource requires confirmation
- i10n'd some text
2021-03-09 17:14:33 +00:00
Richard Cox 44af00b5d6
Merge pull request #2298 from richard-cox/user-updates
User - List (actions), Create, Clone, Edit, Details
2021-03-05 09:19:06 +00:00
Neil MacDougall fe29a4ad43 Change label for disabled feature flag 2021-02-25 09:19:58 +00:00
Richard Cox 7d355462df User - List (actions), Create, Clone, Edit, Details
- Update Users list with actions
- Add User create/edit page
- Add User details page
- Brought over user/principal global role validation from ember world
2021-02-24 11:07:02 +00:00
Cody Jackson 5e45a4d00a Resolving several issues around role template
- edit yaml didn't show yaml because a schema wasn't defined
- edit yaml didn't save because the update link wasn't correct
- saving yaml didn't update the models in the stores
- not all input elements were passed the mode when looking at the config view
- the select and array list components had visual issues in view mode (didn't show the values and the buttons didn't line up well)
- cloning failed due to cleanForNew not accounting for the template property

https://github.com/rancher/dashboard/issues/2111#issuecomment-777066167
2021-02-23 15:10:51 -07:00
Nancy db04cd43f3
Merge pull request #2370 from mantis-toboggan-md/workload-detail
workload details pod list update
2021-02-23 09:18:33 -07:00
Nancy Butler 64a1d2b03e workload details pod list update 2021-02-22 08:17:47 -07:00
Neil MacDougall 3c704b0343 Merge remote-tracking branch 'upstream/master' into api-keys 2021-02-22 08:56:17 +00:00
Nancy Butler e572ac137c auth component issues
fix google save action
2021-02-19 11:43:01 -07:00