Commit Graph

276 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 693a261b4c
Only load nodepool/nodetemplate if you can see them (#3942) 2021-08-20 02:56:00 -07:00
Richard Cox 147678a5a1 Multiple fixes to User Detail page
- Ensure Cluster and Projects update on change (specifically delete binding)
- Better error handling
- A Global Permission is checked if the users is of a certain type (admin, standard user, etc) that has a role that contains all the rules in the permission. If the role contains no rules then previously the permission was checked. This is slightly confusing, so flipped the logic and now empty roles are not checked by default.
- When saving/remove a cluster/project binding we check the principal to determine if it's a user or group. The principals may not have been fetched when listing, so reach out directly to get the required one.
2021-08-17 17:51:34 +01:00
Vincent Fiduccia 31e806d021
Define & use canList before findAlls instead of schemaFor 2021-08-17 02:16:39 -07:00
Nancy Butler 8b9c48c864 use norman node pool for scale up/down 2021-08-13 13:08:25 -07:00
Vincent Fiduccia 62b60e4415
Show fetch errors 2021-08-11 23:24:05 -07:00
Vincent Fiduccia ca9575215b
Check for types before loading them 2021-08-11 23:24:05 -07:00
Nancy Butler a021c9421d add scaledown action to mgmt nodes 2021-08-06 16:46:40 -07:00
Vincent Fiduccia 96f53674d8
Upgrade jsyaml 2021-08-06 02:06:04 -07:00
Vincent Fiduccia a94c3033d2
Merge pull request #3597 from rak-phillip/bugfix/3547-snapshot-action
[master] Disable snapshot button when cluster is not active
2021-08-04 01:29:53 -07:00
Phillip Rak 34dff677ca Disable snapshot when the cluster is not ready 2021-08-02 15:10:38 -07:00
Phillip Rak 38646acef2 Update source of state to value prop 2021-08-02 10:20:28 -07:00
Phillip Rak aa9a78b86b Disable snapshot button when cluster isn't active 2021-07-30 13:05:46 -07:00
Nancy Butler 7e488d0d55 use mgmt cluster id on fleet pages 2021-07-26 09:35:39 -07:00
Nancy bf3e098dfe
Merge pull request #3489 from mantis-toboggan-md/bugfix-projects-list
Project/namespace fixes
2021-07-22 09:12:09 -07:00
Vincent Fiduccia 60455debbf
Call save in the right order so members get added 2021-07-19 01:58:09 -07:00
Vincent Fiduccia 49a7d16734
Show Machines instead of Pools for custom 2021-07-19 01:58:08 -07:00
Nancy Butler a9c502953c project-ns-list-fixes 2021-07-16 08:20:01 -07:00
Vincent Fiduccia e85f21214c
Windows registration command 2021-07-14 13:50:49 -07:00
Richard Cox a7e9da131f
Merge pull request #3399 from bashofmann/fix-import-cluster-race-condition
Fix race condition when showing the registration tab while importing a new cluster
2021-07-07 09:33:19 +01:00
Richard Cox a7d0346c59
Merge pull request #3397 from bashofmann/show-registration-tab
Show registration tab by default during cluster creation as long as n…
2021-07-07 09:32:30 +01:00
Bastian Hofmann 685b67989d Fix race condition when showing the registration tab while importing a new cluster
When you import an existing cluster, you are redirected to the cluster detail page in the 2nd step. Due to a race condition, this page often does not show the registration tab with the kubectl apply command.

Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
2021-07-06 16:23:43 +02:00
Bastian Hofmann 1237c0f78c Show registration tab by default during cluster creation as long as no machines are present
Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
2021-07-06 16:17:42 +02:00
Bastian Hofmann 00ed3b8b4b Fix missing nodes on Cluster detail page for RKE2 custom clusters
Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
2021-07-06 12:42:05 +02:00
Vincent Fiduccia 3883e08f61
Hide registration command for active imported clusters (#3337) 2021-07-02 02:10:48 -04:00
Vincent Fiduccia bbefcaf1b6
rm -rf Rio 2021-07-02 02:10:02 -04:00
Richard Cox 8fe34b4778 Changes following review
- Tweak some translations
- Remove used alwaysGroup
- Fix RKE1 scale pool & reactivity
- Show management pool table if rke2 or have machines
- Show node pool table if not management pool and have nodes
- Cleaned up `roles()` function (and made common fn)
- Converted some 'clusterId' property names to 'mgmtClusterId'
2021-06-29 14:11:36 +01:00
Richard Cox ec2e1c6ca4 Update Cluster Manager Node/Machine Lists
- Add a Node list grouped by Node Pools
  - Both Node/Node Pools are of type 'management'
  - For pools...
    - Show node count next to pool label
    - Show description of pool underneath pool label
    - Show convenience scale down/up buttons (normally scale by cluster config)
    - Show node pool action menu
  - For nodes
    - Link to kube node
    - Show node role/s
- Update Machine/Machine Pool List
  - For pools
    - Like Node Pools add a description of machine pool underneath label
    - Like Node Pools Show convienience scale down/up buttons (normally scale by cluster config)
  - For machines
    - Like Nodes link to kube node
    - Like Nodes show node machine role/s
- Add resource descriptions (shown on lists) for machine, machine deployment and machine set
- Addresses #3291
  - Includes #3016, #493
2021-06-28 15:40:25 +01:00
Vincent Fiduccia b11c66bf76
Show role and k8s node on capi machine 2021-06-22 23:35:08 -07:00
Vincent Fiduccia e8a43c40c1
Don't import all of lodash 2021-06-22 23:35:08 -07:00
Vincent Fiduccia f5145d1d73
Snapshot [bulk]action on Clusters 2021-06-22 23:35:08 -07: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
Vincent Fiduccia 6c8722e4b5
Rename nodepool -> machinepool 2021-05-27 13:37:26 -07:00
Vincent Fiduccia b62604d2fb
Node Pool -> Machine Pool 2021-05-27 13:37:26 -07:00
Cody Jackson 0e29e416e8 Removing Job from the supported workload metric kind 2021-05-27 11:17:49 -07:00
codyrancher 1c862ca42f
Merge pull request #3106 from codyrancher/workload-monitoring
Correcting the workload metrics
2021-05-27 09:39:28 -07: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
Neil MacDougall 9a5a277463 Fix feedback followign review 2021-05-26 13:58:45 +01:00
Neil MacDougall 9909ed9c97 Remove fixed mode. Fix IFRAME with page header and footer banners 2021-05-25 10:42:20 +01:00
Neil MacDougall 2cf2986da8 Add container metrics 2021-05-25 10:42:20 +01:00
Neil MacDougall 5549880d42 Remove debug text 2021-05-25 10:42:20 +01:00
Neil MacDougall 8699cc71be Changes to add v1 charts to cluster tools 2021-05-25 10:42:19 +01: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
Vincent Fiduccia ee77a0f102
Start etcd-snapshot options 2021-05-18 08:52:26 -07:00
Richard Cox 878417b482 Fix refresh on node detail and list pages with SSR enabled
- match fix that had been applied to cluster home page
- move out common Poll code into mixin
- note - in cluster home page poll was being stopped via beforeRouteLeave, whereas others were in beforeDestroy. I've tested this in both modes and it still works ok
- addresses #2984
2021-05-14 11:12:44 +01:00
Cody Jackson 5a3a86149a Adding metrics to workloads, pods and nodes
rancher/dashboard#2678
2021-05-12 23:38:31 -07:00
Vincent Fiduccia aa7e67a015
Add provisioning ssh action to k8s node 2021-05-03 14:46:01 -07:00
Vincent Fiduccia e251c2fbf2
Custom cluster 2021-04-28 14:01:10 -07:00