Commit Graph

291 Commits

Author SHA1 Message Date
Neil MacDougall 5c00bebe58 Fix % creep on custom cluster create with RKE template 2022-07-13 11:40:03 +01:00
Vincent Fiduccia 4a9bc3d8b2
Show ACE for imported rke2/k3s clusters 2021-11-18 13:39:55 -07:00
wujun 029e77f097 feat: harvester nodeDriver rke1 2021-07-29 12:27:13 +08:00
Neil MacDougall 5684520732 More style fixes to address problems from recent update 2021-07-15 09:40:20 +01:00
Westly Wright 657737657c
GKE V2 Provisioner
rancher/rancher#31221

initial creation of gke driver

create shared google service for v1/v2 driver

wip

all fetch methods for google to shared service

cluster/kubernetes options

ippolicy conditionals

private nodes observer so can force ipaliases true

subnetwork logic

cru-private-cluster for gke

initial values

gke node pools

default configs and service cleanup

node group changes

subnet work

hide private nodes config if not enabled

useIpAliases work

 master authorized network component

loggings

no initial master version

gke node pool fixups

input-cidr component and validation

wip - new np logic

node pool updates

fix ups from launching

edit mode changes

more edit updates

more fix ups

node pool edits

import gke

reset auto-scale

implment cloud credentials in gke v2

Cloud cred changes for gke nice to haves

imp fetch clusters

Implement Shared Subnets

cleanup

Import private cluster work and other fixes

private cluster changes

More import/register changes

Null values and node pool version changes

gke private networks warning

fixups
2021-04-09 15:03:26 -07:00
pajuga eb1abb00f0
Cloud credentials support and UI built in implementation for phoenixNAP node driver (#4380)
* Cloud credentials support for phoenixNAP driver.

* space added

* code formatting

* init function removed, name param removed from the arrays that populate
dropdowns

Co-authored-by: pavlej <pavlej@NSDT-PAVLEJ.ccbill-hq.local>
2021-01-13 12:57:13 -07:00
Westly Wright fda68dd848
add projectId to monitoring v1 upgrade calls
rancher/rancher#30455
2020-12-15 14:59:25 -07:00
Westly Wright 5ab5beb2e5
change volatile computed property to native getter
volatile was deprecated, during the ember 3.12 -> 3.20 upgrade the headers computed property was incorrectly changed to a regular computed property when it should have actually been converted to a native getter as this property is not intended to be tracked.

rancher/rancher#29751
2020-10-28 09:20:47 -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 a482fada9d Ignoring appliedSpec before validating
Unfortunately the backend is sometimes saving invalid models
which causes the validation of appliedSpec to fail. To avoid
this validation we're not ignoring the appliedSpec where this
can go wrong.

https://github.com/rancher/rancher/issues/27333#issuecomment-665244361
2020-08-05 09:36:18 -07:00
Westly Wright 3d13864e53
Amazon EKS V2
error handler

wip - dev for aws cloud creds

wip - refactor aws login

wip - kms key

wip - encrypt secrets

wip - private access & vpcs

wip - translations and formatting

wip - more cleanup

remove unneeded code

wip - node groups

add ability to disable value label

fix double import, fix double negative disable add button and expose
addbuttonenabled

clean up public access and node groups

cleanup variable names and default config

eks regions

wip - eks v2 select

differentiate v1/2 amazon eks providers

clean up node groups, translations

unionize top errors

Consolidate aws util statics

WIP - Import/Cloud Creds

tweak cloud cred events for eks driver

WIP new import selector

drop unneeded variables eks import

kms keys cleanup

allow user to enter if the kms keys call fails

firefox styles

drop vpc selection and group subnets by vpcs

import cluster name input if allClusters fails to load from eks

make eks import a bit more dynamic

fix bug in driver eks for default subnet

more imported cleanup

eks v2 edit

eks v2 vendors

remove use cloud creds temp branchs

push current version to version choices if it doesnt exist

eks v2 rename cloudcred param

fix eks v2 versions

clean up for pr
2020-07-22 16:09:14 -07:00
Vincent Fiduccia 0d1a02666f
Add in-progress state 2020-07-21 12:41:58 -07:00
Jesse Millan de9d024dce
Add support for OCI cloud credentials and node template. 2020-04-22 12:30:25 -07:00
Westly Wright 3f3715f3e3
make catalog app for longhorn use consistent name
so users can only launch one longhorn catalog app per cluster

rancher/rancher#26627
2020-04-15 11:02:31 -07:00
Westly Wright 32cb1393ba
updating state map and transitions map for rke workers
rancher/rancher#25917
2020-03-25 09:00:49 -07:00
Cody Jackson 90c258c131 Allow available actions to be dynamically changed
This will allow the available actions to dynamically change if
the underlying store changes. This was specifically to enable
the node template actions to update based on a cluster
being deleted.

rancher/rancher#25452
2020-03-16 16:34:55 -07:00
Westly Wright 0c01433984
Ensure any k3s labels/annotations are read-only
rancher/rancher#25958
2020-03-11 13:32:14 -07:00
Cody Jackson 44735a3d7d Add pass and fail as recognized states
Two new states were created by CIS. This adds the
default treatment of both pass and fail.

rancher/rancher#25789
2020-03-06 16:40:49 -07:00
Westly Wright 191ebd31dd
Expose k3s node args and env vars for imported k3s clusters
rancher/rancher#25400
2020-02-25 10:42:09 -07:00
Westly Wright 3f14f59133
Fix broken jquery targeting
rancher/rancher#24960
2020-01-28 15:56:28 -07:00
Westly Wright afcb5c482f
remove version check as it happens later in istio upgrade
it was causing the edit to fail

rancher/rancher#25114
2020-01-27 10:34:46 -07:00
Westly Wright 476fda4eed
Ensure Istio app version is upgraded correctly during upgrade process
rancher/rancher#24956
2020-01-14 16:09:53 -07:00
loganhz 8e9746b345 Fix upgrade version issue
https://github.com/rancher/rancher/issues/18118
2020-01-10 10:54:50 +08:00
Westly Wright d555aedc77
expose forceUpgrade option for istio upgrade 2019-12-30 09:13:00 -07:00
Cody Jackson a93febe01f Make special case for the 'running' state colorI originally changed the color in transitioning which changed thecolor elsewhere like the workload progress bars. We decided tomake the color of running an exceptional case in CIS scans since themeaning of running differs here.rancher/rancher#24440rancher/rancher#24639 2019-12-17 16:46:43 -07:00
Cody Jackson 49a6a2f555 Fix running cis scan and change the color of running state
The new API required that I pass null instead of an empty array
as the skiplist if nothing is supposed to be skipped when
running a scan.

Updated the color of the running state to info instead of success
as requested.
2019-12-14 22:08:41 -07:00
Westly Wright 6656c6601d
Setup observed property on init rather than default to object @ boot
`templateChanged` which loads the content of what we need for a MC app was
updated to watch a new property, `editable: { selectedTemplateUrl } `. The new
property was declared on the component as a object. Observers watching a static
object and that have never been fetched do not recompute. If we set the property
on init to the object it would have been declared with then additional sets on
the watched property cause the observer to recompute.

rancher/rancher#24057
2019-11-14 10:55:44 -07:00
Westly Wright aa2188d8ac
pass answers to validation method for catalog apps
rancher/rancher#24084
2019-11-13 15:06:57 -07:00
Westly Wright 01df2b7f61
Fix node/pod counts that were not updating correctly
rancher/rancher#23866
rancher/rancher#24034
2019-11-11 14:24:19 -07:00
Westly Wright 5bc4737743
Fix sorting on cloud credentials page
While I was cleaning this up I found that groupByRef in cc this case did nothing
so I removed it. This exposed a bug in the sortable-table code where groupByRef
was coming back null but when we tried to get it, using embers getter, it would
fail because we passed a null value instead of an empty string.

Additionally I found that when using presorts we were continuously pushing into
the sort array on the component, which never gets reset, so I decided to clone
the array. We rarely use preSorts so it was never caught.

Additionally we never add/remove the descending key to our presorts so I've
added that. Without these when we pass the sort to embers sort we'd never
correctly sort any presorts based the descending flag.

rancher/rancher#23828
2019-11-01 09:14:20 -07:00
Cody Jackson 53681e397e Prevent App editing from modifying state on cancel
When editing both single and multi-cluster apps if you modified the
Template Version or the Target Projects and then cancelled it the
underlying store was still modified which then reflected those changes
on other pages like the single and multi-Cluster Apps pages.

To change this I cloned and nested the fields into a nested object named
'editable' and updated the primarySource on willSave for the relevant
targets subfield.

rancher/rancher#21228
2019-10-31 10:03:36 -07:00
loganhz b7d55ba58d Fix catalog app icon issue
https://github.com/rancher/rancher/issues/23291
2019-10-10 10:56:47 +08:00
Westly Wright 1616b54aa4
remove other missing apis 2019-10-07 12:05:22 -07:00
Cody Jackson 6718c4886e Addressing a number of ember deprecations
- Moved from Ember.$() to importing jquery.
- Moved from fn().on() to on(fn())
- Moved from fn().observes() to observer(fn())

This got /g/clusters from 27 warnings to 5 warnings for me.
2019-10-03 10:53:36 -07:00
Cody Jackson 16fc847790 Fix linter warnings 2019-10-02 13:49:17 -07:00
Westly Wright 5f572f3674
Upgrade Ember to 3.12
Remove ember object and use regular object instead

Found durning upgrade to 3.12, I'm not sure why we'd even need to declare an
ember object for this return anyway.

Get the current cluster's id from scope servervice

Found durning upgrade to 3.12, not sure how this ever worked as I looked on live
and it was failing but the system didn't explode on 3.8. In 3.12
transistion.params is undefined and the whole system explodes. We were never
passing the queryparams so they wouldn't have come through. I changed this so we
fetched the current cluster id from the scope service and everything seems to
work correctly.

Ensure that accordion items only try to expand once during the init

Found durning upgrade to 3.12, expanded was being double rendered.

lint fix

test fixes

lint
2019-10-02 13:33:15 -07:00
loganhz f95c884acb Fix current version missing issue
Show current version even it doesn't match min max Rancher version
2019-09-13 10:11:01 +08:00
loganhz b5be539948 Show all available versions for istio and monitoring
https://github.com/rancher/rancher/issues/22789
2019-09-11 15:33:54 +08:00
loganhz 0dc78208e1 Fix monitoring issue 2019-09-09 11:42:51 +08:00
loganhz 67ca2a4e0f Show k8s role taints and remove unschedule label 2019-08-31 08:25:07 +08:00
loganhz 37dd827c04 Sort display taints 2019-08-30 17:49:02 +08:00
loganhz e7c8d8f900 Hide k8s role taints 2019-08-30 17:35:41 +08:00
loganhz 3881f5809a Do not pass hiden fields in catalog answers
https://github.com/rancher/rancher/issues/22265
2019-08-21 09:58:47 +08:00
Vincent Fiduccia 749e39a3d3
Cache translated states 2019-08-19 17:18:00 -07:00
loganhz d5f5d4a55d Fix tooltip issue
https://github.com/rancher/rancher/issues/22154
2019-08-14 13:59:32 +08:00
Vincent Fiduccia 1d135d0f73
Cleanup cluster template rows 2019-08-13 16:36:47 -07:00
Vincent Fiduccia 5c4e05fb56
Merge pull request #3235 from loganhz/azure-node
Show azure node template location for region
2019-08-13 10:32:28 -07:00
loganhz f4681b12c9 Show azure node template location for region
https://github.com/rancher/rancher/issues/19565
2019-08-13 15:00:25 +08:00
n313893254 5f4d3fc308 Fix Istio error handle
https://github.com/rancherlabs/rancher-security/issues/182
2019-08-13 14:47:30 +08:00
Westly Wright 92c40f667d
Merge pull request #3216 from westlywright/cluster.templates.bugs
Cluster Templates
2019-08-09 16:16:50 -07:00