Commit Graph

35 Commits

Author SHA1 Message Date
Westly Wright 7b53e254b9
add post save check to edit import cluster
we still randomly would hit a case where the cluster was active post save, checking if we're post save will ensure the cluster shows the command all the time.

rancher/rancher#33136
2021-06-10 15:32:47 -07:00
Westly Wright 075a6f49f9
Added extra logic for excluding docker cluster from edit/upgrade
k3s clusters that do not have a config should not allow editing of items on the config.
A null k3s config indicates a docker installed cluster so I've added extra logic
to check if the config exists and if it does not we don't show the manage import cluster info component.

I also added logic to the final save method in cru cluster to only show the registration step if the cluster is pending
and not a null k3s config.

rancher/rancher#30977
2021-04-07 08:50:17 -07:00
Westly Wright 6e4dde97f5
change post save logic for custom clusters to be able to have postsave 2021-03-15 15:42:28 -07:00
Westly Wright 444937a4aa
Refactor logic for showing CustomCommand and ImportCommand 4 env var
Since the env vars have to be saved on a cluster there is no easy way of dynamically updating the cluster command without trying to split the string and do all kinds of nasty things.
I refactored the logic for when we show the command for both Custom and Import clusters until after the cluster has been saved. This ensures the user is required to save the cluster before fetching the command on an edit action

rancher/rancher#31529
2021-03-15 14:48:14 -07:00
Westly Wright 9a38d546f7
Expose Import Command for EKS v2 Clusters with Private Access
rancher/rancher#28356
2020-12-02 12:09:33 -07:00
Westly Wright c84090835d
Expose cluster reg token 4 cluster w/o nodes
For imported or custom clusters that never had a host register there was
never a way to get back to the registration command. This exposes a new
modal and button ont he cluster dashboard the allows the user to fetch
this command if the cluster doesn't have any nodes.

rancher/rancher#28548

Add import-command component the import command on imported clusters

this is the first step to exposing the command as an action in the modal for show command

Create CustomCommand component for modal show command

add custom input to show command modal

translations
2020-10-29 15:31:41 -07:00
Westly Wright d3d78e87c8
Upgrade Ember & Dependencies for LTS support >3.12
There are changes required for the ember upgrade but additional changes
for individual libs are also present. Commit has been squashed, see
individual commits if needed.

There are a bunch of HBS changes as well. These are to deal with a
couple new rules and there impact is low. The button one has bitten us a
few time so this seemed great to add IMO.

update ember 3.12.4

ember 3.13

fixes for new eslint rules

ember 3.13->3.14

ember3.14->3.16

ember3.16->3.20

3.20 lint rules

yarn upgrade

update ember-optional-feature

update deps that can go to patch versions

upgrade major versions that are possible

update ansi_up

only reset term var if we're not destroying

prevents new ember 'same computation' error

update async

upgrade dot-object

new-catalog - add set to deal with new warning
marked-down - drop call into next to ensure its called at the correct time

upgrade ember-assign

update ember-cli-clipboard

remove unused & deprecated ember-cli-release

remove unused drag-drop lib

use set on tracked prop

update ember-flatpickr && cli-test-loader

upgrade ember-href-to

update filesaver

update liquid-fire and ipaddr

upgrade jsondiffpatch

upgrade marked

upgrade semver

update xterm

Update ember-basic-dropdown

the library has changed quite a bit and no longer provides an addon for the content-item where we handling the click event to close the dropdown,
thus click events must be added manually to the items being clicked to close the dropdown.

udpate dompurify

fix page header project styles

Bump ember api store, remove npm-run-all

Autofix button types from hbs linting

this change looks large but only adds `type` button to any buttons that dont have a type, which should help to reduce weird side effects

more hbs lint changes for no-negate-condition

turned off a couple rules that could be too much to test right now
2020-10-07 16:52:22 -07:00
Westly Wright af16527ff9
Exposes edit for RKE2 imported clusters 2020-07-23 10:24:31 -07:00
Westly Wright 02c256a709
remove node info on cluster edit 2020-03-12 11:52:26 -07:00
Westly Wright 651f1f3089
prevent useres from sending negative concurrency values
rancher/rancher#25982
2020-03-12 11:24:51 -07:00
Westly Wright 173d89ef20
Tweak nodeForInfo getters/setters
without the value in place when the user visited this page with only one node
when we auto select the dropdown wouldn't have an initialized value.

rancher/rancher#25966
2020-03-11 16:04:55 -07:00
Westly Wright 3b4ca885d9
Drop direct value edit on args selector k3s-import
rancher/rancher#25860
2020-03-09 11:38:09 -07:00
Westly Wright 1f42be105c
Update k3sConfig shape based on new api design
rancher/rancher#25720
2020-03-04 10:21:51 -07:00
Westly Wright ee34955bee
set config field for k3s imported cluster and add k3sConfig if ! 2020-02-27 11:12:21 -07:00
Westly Wright 02b195534b
fix save action and change version to text input for MVP 2020-02-26 09:37:40 -07:00
Westly Wright c4cc97c64a
Expose node info on K3S Cluster Upgrade 2020-02-25 15:31:54 -07:00
Westly Wright 4eb82ace5b
Expose k3sConfig on k3s imported cluster edit
rancher/rancher#25401
2020-02-25 12:59:08 -07:00
Westly Wright 46e96c801a
Fix send action deprecations
send action deprecation warnings for form-key-value component

update all cancel actions

deprecations for ns quota component and action menu item

deprecations and formatting

sendAction deprecation form-node-selctor & formatting

sendAction deprecations for cru-persistent-volume & formatting

sendAction deprecations for form-scoped-roles & formatting

sendAction deprecations for telemetry-opt & formatting

sendAction deprecations for table-rows & formatting

sendAction deprecations for server-url & formatting

sendAction deprecations for cru-config-map & formatting

sendAction deprecations for workload-row & formatting

sendAction deprecations for cru-volume & formatting

sendAction deprecations for cru-persistent-volume-claim & formatting

fix issue with declaring dynmic keys on component.

sendAction deprecations for form-healthcheck & formatting

sendAction deprecations for node-selector-row & formatting

sendAction deprecations for new-edit-ingress & formatting

sendAction deprecations for form-node-affinity & formatting

sendAction deprecations for form-key-to-path & formatting

sendAction deprecations for new-catalog & formatting

sendAction deprecations for cru-storage-class & formatting

sendAction deprecations for project-resource-quota & formatting

sendAction deprecations for input-files & formatting

sendAction deprecations for node-row & formatting

sendAction deprecations for input-command & formatting

sendAction deprecations for form-ports

sendAction deprecations for new-edit & formatting

sendAction deprecations for form-image

sendAction deprecations for form-volume-row & formatting

sendAction deprecations for form-volumes & formatting

sendAction deprecations for form-scale & formatting

sendAction deprecations for container-logs & formatting

sendAction deprecations for cru-volume-claim-template

sendAction deprecations for pod-row & formatting

sendAction deprecations for source-custom-log-path & formatting

sendAction deprecations for step mixin & formatting

sendAction deprecations for pipeline-codemirror & formatting

sendAction deprecations for build-step & formatting

sendAction deprecations for build-stage & formatting

sendAction deprecations for pipeline-env-from & formatting

sendAction deprecations for log-view & formatting

sendAction deprecations for bitbucketserver-setting & formatting

sendAction deprecations for bitbucketcloud-setting & formatting

sendAction deprecations for form-recipient-item & formatting

sendAction deprecations for pipeline-selector-row & formatting

sendAction deprecations for policy-row & formatting

sendAction deprecations for other-role-row & formatting

sendAction deprecations for role-rule-row & formatting

sendAction deprecations for new-multi-cluster-app & formatting

sendAction deprecations for driver-digitalocean & formatting

sendAction deprecations for project-alert-row & formatting

sendAction deprecations for form-recipient-item & formatting

sendAction deprecations for cluster-alert-row & formatting

sendAction deprecations for alert-select & formatting

sendAction deprecations for storage-class-provisioner & formatting

sendAction deprecations for cluster-driver mixin

sendAction deprecations for node-driver mixin

sendAction deprecations for view-new-edit mixin

sendAction deprecations for host-registration & formatting

sendAction deprecations for form-labels-annotations & formatting

sendAction deprecations for huawei-user-labels & formatting

sendAction deprecations for form-user-labels & formatting

sendAction deprecations for principal-search & formatting

sendAction deprecations for form-namespace & formatting

sendAction deprecations for input-paste & formatting

sendAction deprecations for catalog-index & formatting

sendAction deprecations for searchable-select & formatting

sendAction deprecations for hover-dropdown & formatting

sendAction deprecations for container-shell & formatting

sendAction deprecations for input-yaml & formatting

sendAction deprecations for input-text-file & formatting

sendAction deprecations for sortable-thead & formatting

sendAction deprecations for form-ingress-rows & formatting

sendAction deprecations for input-password & formatting

sendAction deprecations for input-identity & formatting

sendAction deprecations for form-count & formatting

sendAction deprecations for form-members & formatting

sendAction deprecations for outside-click & formatting

sendAction deprecations for input-slider & formatting

sendAction deprecations for metrics-action & formatting

sendAction deprecations for banner-message & formatting

sendAction deprecations for driver-rke & formatting

sendAction deprecations for driver-import & formatting

sendAction deprecations for form-value-array & formatting

sendAction deprecations for cru-node-pools & formatting

sendAction deprecations for cru-cluster & formatting

sendAction deprecations for logging/new-edit & formatting

sendAction deprecations for login-x components & formatting
2019-03-29 10:58:08 -07:00
Sebastiaan van Steenis 506b70b3e7 Add more info on user and cluster-admin clusterrole on import 2018-09-25 20:24:14 +02:00
loganhz 26520f0370 Fix import cluster issue
https://github.com/rancher/rancher/issues/15072
2018-08-22 22:13:50 +08:00
Vincent Fiduccia 93f922b92d
eslint --fix 2018-07-20 11:47:19 -07:00
Vincent Fiduccia 0686d4840d
Revert part of eslint fix 2018-07-16 17:50:16 -07:00
Westly Wright 877ed1f522
More lint files changes (see lib) 2018-07-11 14:06:27 -07:00
loganhz 3575848d7d Show notes for cluster admin role
https://github.com/rancher/rancher/issues/14030
2018-06-20 14:52:59 +08:00
loganhz dad1ca5cfe Show proper error message if import cluster name containers dots.
https://github.com/rancher/rancher/issues/14010
2018-06-20 11:50:34 +08:00
loganhz b5735b1590 Fix import cluster issue
https://github.com/rancher/rancher/issues/12798
2018-04-25 17:34:36 +08:00
loganhz 5ced1bd093 Fix cluster issue
https://github.com/rancher/rancher/issues/12992
2018-04-24 18:08:27 +08:00
loganhz 49d49a0994 Fix imported issue
https://github.com/rancher/rancher/issues/12798
2018-04-20 12:11:17 +08:00
loganhz 5d9cd80479 Fix import issue
https://github.com/rancher/rancher/issues/12798
2018-04-19 15:34:28 +08:00
loganhz 99fa835e7d Move member error out of that section
https://github.com/rancher/rancher/issues/12381
2018-04-16 18:30:49 +08:00
Vincent Fiduccia 4ab13d4385
Fix import missing command sometimes 2018-04-04 14:55:11 -07:00
Vincent Fiduccia d116a4cabe
Handle no auth providers better 2018-02-22 13:34:58 -07:00
Vincent Fiduccia 9103610216
Edit custom/import/rke cluster 2018-02-22 11:45:57 -07:00
Vincent Fiduccia 8394c5ac0a
Insecure import, AKS size 2018-02-20 17:46:25 -07:00
Vincent Fiduccia 181b350b19
Cluster edit, Packet driver 2018-02-20 02:26:56 -07:00