Commit Graph

303 Commits

Author SHA1 Message Date
Neil MacDougall 6f5e3b2a99 Fix issue editing cluster with agent env vars 2022-12-16 17:53:48 +00:00
Neil MacDougall 23eca7808e Allow Authorizaton endpoint FQDN to accept potr 2022-10-21 15:04:17 +01:00
Neil MacDougall 5c00bebe58 Fix % creep on custom cluster create with RKE template 2022-07-13 11:40:03 +01:00
Neil MacDougall 63bf9ebe13 Fix property name typo 2022-04-07 15:25:08 +01:00
Neil MacDougall 5fe992460c Factor common strings to constants 2022-04-07 14:06:29 +01:00
Neil MacDougall 4563be77fe Apply weave network config when using an RKE template 2022-04-07 12:29:14 +01:00
Catherine Luse 74f8444a8a Use existing cluster config as defaults for RKE template clusters 2022-03-25 14:56:59 -07:00
Neil MacDougall 2041405f21 Remove trailing spaces 2022-03-09 13:45:48 +00:00
Neil MacDougall caab493d9a Fix issue where we keep adding a % char to the maxWorkersUnavailable field 2022-03-09 11:29:58 +00:00
codyrancher e16243b4fe
Merge pull request #4629 from codyrancher/rke-private-registry
Fixing how the frontend handles the bracket annotation when building cluster answers
2022-01-19 14:01:04 -07:00
Neil MacDougall 4820d1e4ca
Merge pull request #4799 from nwmac/max-worker-percent
Fix bug where % keeps getting added to max worker nodes unavailable
2022-01-17 11:44:39 +00:00
Neil MacDougall adbec98d89 Fix lint issue 2022-01-14 15:26:44 +00:00
Neil MacDougall 1d1a1c537b Fix bug where % keeps getting added to max worker nodes unavailable 2022-01-11 13:38:54 +00:00
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
Cody Jackson e4192880e6 Fixing how the frontend handles the bracket annotation when building cluster answers
The front end wasn't sending answers to the backend when a user set the the
privateRegistries field when using an RKE template which allowed the field to
be overriden. This was happening because we weren't handling the bracket
notation properly.

rancher/rancher#27166
2021-05-19 16:54:22 -07:00
Westly Wright 2fa821de9a
lint 2021-05-03 20:59:01 -07: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 5adfae361f Adding agent env vars to import cluster
rancher/rancher#31505
2021-02-26 10:12:43 -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
Westly Wright 17c508d6b0
Merge pull request #4467 from codyrancher/agent-env-vars
Adding the agent env vars to rke drivers.
2021-02-23 13:14:43 -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 c1badf2456
lint 2021-02-17 09:32:34 -07:00
Westly Wright 5403a4990a
Add dns options to excluded keys to camel list
rancher/rancher#31230
2021-02-16 16:07:41 -07:00
Westly Wright f4bb720d10
rke template s3 cert styles
rancher/rancher#27165
2021-02-01 15:13:16 -07:00
Westly Wright 831957bcce
Adds in one off check for secretsEncryption.customConfig
custom config has a type of `map[json]` and when we process this for the edit yaml view we can goof some of the keys in the arbitrary JSON.
specifically the `Resources` key gets dasherized and lower cased which borks  the cluster on save.

rancher/rancher#30555
2020-12-18 16:32:32 -07:00
Westly Wright f54b4f65e9
lint 2020-12-17 11:48:26 -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 69d6f04001
Revert nested comment indenting, disable comments on edit
rancher/rancher#28532
2020-12-08 10:32:25 -07:00
Westly Wright 2e7df1e169
Embed comments at the correct nesting level to prevent issues ml string
rancher/rancher#28532
2020-12-08 10:20:51 -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 f48b5c6b05
lint errors 2020-10-29 15:39:01 -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 0e1e84daea Switching from min value to default value for upgradeStrategy timeout
Turns out that the min value that the backend accepts won't allow
upgrades to complete. This switches the value to the default value to
mitigate that issue.

rancher/rancher#27333
2020-07-27 17:28:50 -07:00
Cody Jackson d5336bc20c Ensure that the upgradeStrategy.nodeDrainInput.timeout doesn't exceed the min value
rancher/rancher#27333
2020-07-24 16:01:21 -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 102da8cf0d
check for missing cluster template
rancher/rancher#26865
2020-06-24 14:22:22 -07:00
Westly Wright d1f5061ac1
lint 2020-06-24 14:22:22 -07:00
Westly Wright a986c84bc5
update excluded children keys
adds `extraArgs` cameled string to list since they can come back from the api
this way

rancher/rancher#26469
2020-06-23 09:56:34 -07:00