Commit Graph

56 Commits

Author SHA1 Message Date
Vincent Fiduccia be9473d190
rke2.windows provider 2021-08-24 12:47:41 -07:00
Vincent Fiduccia 0526f9b5a8
Only try to create a registrationToken if you can update the cluster (#3852) 2021-08-20 02:55:58 -07:00
Vincent Fiduccia cc5133093d
Need edit to take snapshots 2021-08-17 02:16:39 -07:00
Vincent Fiduccia 3ad95772db
Edit yaml for !rke2 cluster should show mgmt cluster 2021-08-17 02:16:37 -07:00
Vincent Fiduccia b39d0491e0
Use Cloud Creds for etcd s3 backups 2021-08-11 23:24:06 -07:00
Richard Cox c10f66b03c Fix create cluster by template for admins
- This will unblock some QA use cases when creating as admin (non-admins will still be in same broken state)
- Ensure that if we have access to the local cluster use it
- For non-admins they're still in a broken state, this is tracked in another issue

Also fixed issue where returning to the provisioning cluster too early would fail
2021-08-11 11:38:10 +01:00
Richard Cox 3ad4d0d641 Fix a number of issues around having no access to a cluster 2021-08-09 13:55:24 +01:00
Richard Cox dea7b53c5e Ensure we wait for requried resources before leaving cluster import / create rke2
- Previously nav away was occurring inside `this.save` before we could wait for the mgmt cluster
- This meant some info was missing when we arrived at the next page
- So move wait and role change into after hook and rely on native nav in this.save again
2021-08-08 11:56:10 +01:00
Vincent Fiduccia 87875fbfd3
Disable cluster clone for now, needs to clone machine configs to work right 2021-08-06 17:49:49 -07:00
Vincent Fiduccia 9f8ed5ab67
Inline credential create 2021-08-04 11:51:37 -07:00
Vincent Fiduccia fcf07ed106
Merge pull request #3620 from mantis-toboggan-md/bugfix-projects-delete-master
[master] cluster name validation
2021-08-04 01:31:10 -07:00
Vincent Fiduccia 2713c9713c
Send generation for rke2 snapshot 2021-08-04 01:14:19 -07:00
Nancy Butler f3a7b9f0d5 validate cluster name for rke2 2021-08-03 16:59:49 -07:00
Vincent Fiduccia a8ad7132b6
Only enable kubeconfig on ready cluster (#3490) 2021-07-20 10:34:34 -07:00
Vincent Fiduccia ced309acaa
RKE1 custom command (#3145) 2021-07-19 01:58:09 -07:00
Vincent Fiduccia d1fa64c5b4
Disable some actions on unready clusters (#3490) 2021-07-19 01:58:09 -07:00
Vincent Fiduccia e85f21214c
Windows registration command 2021-07-14 13:50:49 -07:00
Neil MacDougall 048d8c17db Prevent user from deleting the local cluster 2021-07-08 08:56:48 +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
Westly Wright 85aadc8f26
Merge pull request #3328 from westlywright/bug.unknown.machine.provider
remove machine provider detail header for v2 cloud provider
2021-07-02 08:54:53 -07:00
Richard Cox a3715829ff
Merge pull request #3357 from richard-cox/cluster-node-counts
Show Node counts in Cluster Management's cluster list
2021-07-02 11:26:00 +01:00
Vincent Fiduccia 3883e08f61
Hide registration command for active imported clusters (#3337) 2021-07-02 02:10:48 -04:00
Vincent Fiduccia 4ead77043b
Show registration command for provisioning-v1 imported clusters (#3121) 2021-07-02 02:10:04 -04:00
Westly Wright 4761bd0ab9
Remove machine provider check from mgmt cluster, update provision check 2021-07-01 08:45:02 -07:00
Richard Cox 1d204bcdb4 Show Node counts in Cluster Managament's cluster list
- counts are shown (ready, pending,etc) are already shown for RKE2 machines
- show restricted set of counts for RKE1 nodes
- show basic total node count for non-RKE clusters
- #3028
2021-07-01 11:31:26 +01: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
Nancy Butler 447eac19b2 fix rotate certs and rotate encryption key conditional logic 2021-06-24 09:39:11 -07:00
Westly Wright d6f8858696
remove machine provider detail header for v2 cloud prov legacy
aks, eks, and gke v2 providers do not have a machine provider so lets drop it from the details

rancher/dashboard#2985
2021-06-23 16:17:01 -07:00
Vincent Fiduccia a0b55a6bdc
Redirect to import 2021-06-22 23:35:09 -07:00
Vincent Fiduccia f5145d1d73
Snapshot [bulk]action on Clusters 2021-06-22 23:35:08 -07:00
Neil MacDougall b8bfdacd46
Merge pull request #3127 from mantis-toboggan-md/rotate-certs
rotate secrets cluster action
2021-06-11 10:25:22 +01:00
Neil MacDougall 68453cbd67 Resolve conflicts. Use PromptModal dialog. 2021-06-09 17:46:11 +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
Nancy Butler ed217320bf rotate cert modal 2021-06-09 14:12:38 +01:00
Neil MacDougall e866503a4d A few simplifications following review 2021-06-08 15:17:18 +01:00
Neil MacDougall 302db9a9de Cluster: Add support for rotate encryption key action 2021-06-08 11:20:53 +01:00
Neil MacDougall 201ba84ae2 Address PR feedback 2021-06-03 12:05:37 +01:00
Neil MacDougall dca8ad8f9e Remove unused vars and fix lint 2021-06-02 09:12:02 +01:00
Neil MacDougall f02e35c76c Add Save As RKE Template cluster action 2021-06-02 09:12:02 +01:00
Vincent Fiduccia 84556240a3
etcd s3 config 2021-06-01 02:55:56 -07:00
Vincent Fiduccia 79026c8792
Cancel & Done behavior 2021-05-27 13:37:26 -07:00
Vincent Fiduccia 29486475a1
More renaming 2021-05-27 13:37:26 -07:00
Vincent Fiduccia 6c8722e4b5
Rename nodepool -> machinepool 2021-05-27 13:37:26 -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 d2c6615bda
Cluster bugs 2021-05-13 17:29:32 -07:00
Vincent Fiduccia ecfed78021
Single + bulk download kubeconfig 2021-05-11 12:43:34 -07:00
Vincent Fiduccia 6b1f79e1bd
Handle mgmt clusters with unknown nodeproviders 2021-05-06 18:30:44 -07:00
Vincent Fiduccia c07a35fca5
fix clusers with no k8sversion 2021-05-05 17:55:13 -07:00