Commit Graph

158 Commits

Author SHA1 Message Date
n313893254 0334d00d0e Add rke1 cloud provider for harvester 2021-11-24 14:59:56 +08:00
Neil MacDougall fb42eff690 Fix more dark mode issues resulting from styling changes 2021-08-18 12:36:36 +01:00
Cody Jackson 6564d1349c Inform the user that Logging, CIS Scans, Istio and Pipelines aren't supported in k8s 1.21+
https://github.com/rancher/dashboard/issues/3589
2021-08-04 11:28:18 -07:00
Lauren Harden fce4e2de9f
iframe issues in vue from ember (#4690)
* 3370

* fix

* 33449

* 33450

* 33469

* lint

* spacing in hbs

* manual tidy part 1

* fixes part 2

* Fix reformatting issues

* Fix more formatting changes

* More formatting fixes

* Fix more formatting

* Fix test due to style changes

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
2021-07-15 09:36:49 +01:00
Westly Wright af8ad33f55
check windows prefered before save for yaml view
rancher/rancher#32522
2021-05-03 20:51:57 -07:00
Westly Wright 477cb57cc4
simplify edit as yaml shown logic
only show it when we're at step 1

rancher/rancher#32521
2021-05-03 20:51:57 -07:00
Westly Wright 9b6ce16bcc
Fix edit custom cluster step 2 btn state and two way bindings 2021-03-15 16:04:14 -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
Cody Jackson c96c4e1828 Switching over to having the envVars just be keyValues
After some discussions we decided to simplify things since all that's actually needed are keyValues.

I made the changes within the existing component instead of switching to keyValue to reduce risk at this stage of the release.

rancher/rancher#31545
2021-03-01 17:56:26 -07:00
Cody Jackson fa989bd394 Disabling all reference types on rke create for agentenvvar and marking variable name field as required
Since the reference types can't exist until the cluster is created I added an option to disable all reference types and use it during RKE create

Even though the backend doesn't indicate the variable name is required we're marking it as such because it casues cluster to fail. No validation will be done at this time.

rancher/rancher#31528
2021-03-01 12:45:08 -07:00
Cody Jackson a6156fa4ed Fixing several issues with agentEnvVars
- Fixed issues with determining the provider when editing clusters that are still provisioning.
- Fixed empty values causing problems
- Fixed an issue where the default value wasn't getting set properly for configmaps and secrets when selecting the type and nothing else

https://github.com/rancher/rancher/issues/31023#issuecomment-784717552
2021-02-26 02:45:38 -07:00
Cody Jackson ef5afd4007 Adding the agent env vars to rke drivers.
rancher/dashboard#31023
2021-02-23 12:44:52 -07:00
Westly Wright f4bb720d10
rke template s3 cert styles
rancher/rancher#27165
2021-02-01 15:13:16 -07:00
Westly Wright c2d84f3ad9
update rotate encryption key logs for new requirements
exposes the kubeApi Secrets config enabled property which allows users to rotate keys
disable rotate action when prop is not set, we are rotating or, the cluster is transitioning

rancher/rancher#30077
2020-12-17 11:42:33 -07:00
Westly Wright f356f8df69
Expose rke ingress defaultBackend param
rancher/rancher#30272
2020-12-04 13:42:35 -07:00
Westly Wright cd22ffa9c0
Ensure windows command works in edit and modal for custom clusters
rancher/rancher#30111
2020-11-24 15:20:39 -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 692fe8514e
Add catch for nullable drain status and ember upgrade errors 2020-10-22 09:34:20 -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
Cody Jackson 23da8e8b17 Adding a selected cis profile to the profile options if it's not present
When upgrading rancher the old 1.4 cis profiles were removed which prevented
the currently selected profile for scheduled scans to be selected.

This adds a selected profile to the options if it's not present allowing the
profile to be selected by default. If a different profile is selected and saved
the option will no longer be present. This option will also not be present in
the manual run scan modal.

rancher/rancher#27867
rancher/rancher#27866
rancher/rancher#27374
2020-07-20 15:25:56 -07:00
Westly Wright f98e8763ae
change done button to cancel when user can't edit cluster
rancher/rancher#26491
2020-04-15 11:26:27 -07:00
Westly Wright c704e706e3
template error 2020-04-13 10:32:30 -07:00
Westly Wright 8bf48fa308
Add case to handle cluster temp enf on and no clust temp
rancher/rancher#26491
2020-04-13 09:59:17 -07:00
Cody Jackson db586813fc Removed another case of 'true'
rancher/rancher#26245
2020-03-26 09:47:13 -07:00
Cody Jackson b7c75acb4f Correcting disable field for scheduledClusterScan in RKE
I converted the enabled value back to a boolean instead of it being a string
but I forgot to switch the three disabled fields to expect a boolean.

@rancher/rancher#26245
2020-03-25 14:25:26 -07:00
Cody Jackson b231b34a23 Making the CIS scan enabled radio buttons function on edit
When editing a cluster the value of scheduledClusterScan.enabled comes
back as a string rather than a boolean. I just ensure the value will be a
boolean to make sure the value is displayed on the radio buttons as
expected.

rancher/rancher#26245
2020-03-25 09:32:26 -07:00
Cody Jackson a5ee8d6385 Refactor scheduleScan and upgradeStrategy
The refactor was necessary to get the two to work with all aspects of
rke templates.

rancher/rancher#26149
rancher/rancher#26188
rancher/rancher#26187
2020-03-22 23:53:25 -07:00
Cody Jackson 674c242bb0 Add override support for the upgradeStrategy fields in RKE Template
rancher/rancher#26142
2020-03-20 14:06:11 -07:00
lvuch 044db7b4b0 25984 2020-03-12 14:14:16 -07:00
Cody Jackson 16f4295442 Make several small tweaks to the CIS UI
- Make table sorting work with scheduled scans
- Make the cis table fit on laptop screen
- Add an appropriate placeholder for the scheduled scans cron field

rancher/rancher#25937
rancher/rancher#25939
2020-03-11 14:50:04 -07:00
Cody Jackson 850d7a5e65 Ensure drain default is recognized and maxUnavailableWorker is enabled
rancher/rancher#25732
rancher/rancher#25875
2020-03-09 12:13:41 -07:00
Cody Jackson 46112ef9de Disable CIS scheduling for windows clusters
CIS scheduling isn't supported on windows clusters.

rancher/rancher#25864
2020-03-09 10:28:58 -07:00
Cody Jackson 79c283fd5e Resolve RKE Template issue caused by CIS
The profile helper methods were attached to the cluster model.
Unfortunately, the cluster isn't available when creating a new rke
template.

To resolve this I moved all of the cis helpers out of the cluster model
and utils and moved them into a cisHelpers service so they could be
used without access to the cluster itself.
2020-03-06 15:36:29 -07:00
Cody Jackson f58807bff1 Wired up the scheduling for cis 2020-03-06 12:16:06 -07:00
Cody Jackson 355d592051 Large refectoring of CIS to improve UX
- Added Set Alert button
  - This will set the appropriate options for cis
- Added Set Schedule button
  - This will scroll the settings into view
- Added a modal so profiles can be picked
2020-03-06 12:15:27 -07:00
Cody Jackson 940e0cd668 Add CIS scheduling to rke configuration
We wanted to make CIS scheduling configuration a part of
a cluster's RKE config.

rancher/rancher#25347
2020-03-06 12:15:27 -07:00
Cody Jackson aee8a79328 Rename maxUnavailable to maxUnavailableWorker
The backend renamed maxUnavailable so we're doing the same.

rancher/rancher#25670
2020-03-02 13:46:17 -07:00
Cody Jackson 143bbe8738 Add zero downtime upgrade options to rke driver
This required refactoring the drain modal into a reusable component
since these fields were going to be used in more than one place.

rancher/rancher#24110
2020-02-05 12:58:54 -07:00
Westly Wright 0579c01111
expose kube version upgrade warning on apply cluster template.
rancher/rancher#24829
2020-01-13 13:30:07 -07:00
Westly Wright 181c21a2a4
Refactor node options advanced section for custom cluster
remove unnecessary labels
refactor markup for advanced section of node options
fix indentation
changed wording on some labels

rancher/rancher#24640
2019-12-31 15:56:51 -07:00
Westly Wright 9837f9b67b
remove display of 'edit yaml' button on step > 1 for custom cluster
rancher/rancher#24749
2019-12-30 10:50:35 -07:00
Westly Wright 77e1df7060
remove translation as we had localizedPrompt set true 2019-10-30 12:14:43 -07:00
Westly Wright d711b8b8bb
disp k8s ver correctly when editing cluster or clone rev
the check-override-allowed component did not know how to deal with the k8s
version question because of its tri state and how we deal with the patch version
that is an override but not really an override. I added a check to verify the
mode is view and we have the param then display param so we don't initialize the
form-version component which has logic to inject the current version into its
versions dropdown but only if we're new, editing, or cloning.

rancher/rancher#23478
rancher/rancher#23465
2019-10-17 10:48:37 -07:00
Westly Wright bc00ac6a72
Change windows docker version for custom clusters
rancher/rancher#23219
2019-10-03 16:46:38 -07:00
Westly Wright 59f7c37aca
Hide 'Custom Cluster Overrides' section when launching cluster
`Custom Cluster Overrides` was originally designed when we allowed users to
create custom overrides for items not in the UI but since that was removed the
template consumer will only ever see overrides for sections we have built in
and when launching we never display the overrides for ones with UI components.

rancher/rancher#23069
2019-09-25 10:17:42 -07:00
Westly Wright 63aef3fa30
change other occurrences of model.cluster.clusterTemplateRevisionId 2019-09-23 14:45:28 -07:00
Westly Wright 290a1f51f6
Attach correct value to be modified to cluster template id select
When consuming a cluster template selection of the template id from the drop
down didn't change the cluster template revision becuase the UI component was
using the readOnly value. Attached the selection to the correct value so the
action floats up (DDAU).

rancher/rancher#22977
2019-09-23 14:19:01 -07:00
Cody Jackson 3370aa9ca0 Making the cluster template revisionId saveable.
When editing a cluster that was created with cluster template
the cluster template revision couldn't be saved.

The revisionId was stored as a component member variable instead
of as a part of the model. It needed to be stored as part of the
model in order for the NewOrEdit to see the changes and save
them. I went ahead and referenced the model directly everywhere
in the component and removed the component member variable.

rancher/rancher#22920
2019-09-19 11:47:48 -07:00
loganhz 86096ee6bc Windows 2019-08-27 18:21:40 +08:00