Commit Graph

3621 Commits

Author SHA1 Message Date
Westly Wright cbdd32f493
Add warning to global roles view when no default user role exists
rancher/rancher#24301
2019-12-03 11:46:16 -07:00
Cody Jackson 5126642250 Implement the list and detail views for CIS scan
This adds and implements the /c/<clusterid>/cis/scan
and /c/<clusterid>/cis/scan/detail/<scanid> routes.

rancher/rancher#20425
2019-12-02 14:45:56 -07:00
Westly Wright fcf05c3681
remove group link that doesn't work 2019-12-02 14:25:51 -07:00
Westly Wright fdac35182b
fix broken link to accounts 2019-12-02 14:17:29 -07:00
Westly Wright 24784ce409
Merge pull request #3595 from westlywright/feature.gr.auth.groups
[Feature] Associate External Group with Global Role Binding
2019-12-02 09:47:08 -07:00
Westly Wright a7a81456b4
Feature: associate global role w/external group
rancher/rancher#23452

expose link-to new-group route

Translations change and move static property (convention)

Refactor form-global-roles

Refactor such that user and group are optional parameters. Adds
groupPrincipalId. Destructure smarter so that users are not required for the
mapper function to work. Move bindings to own init. Refactor make to recognize
groups. Translations changes.

Add cru-group-account component

This component does not actually create a group but a global-role-binding with a
groupPrincipalId instead of a userId. Perhaps cru-global-role-binding would work
but in the future this component can and probably will be adapted to create
local groups as well, so the name would fit. At that point the component could
also be refactored to work for the add user page because at that point pretty
much doing the same thing but that is not with-in the scope of this change.

Currently the componet is expected to be used with an auth provider that
supports groups which is why it does not also create the group. This should be
taken into consideration if we ever update this to work with local groups.

Translations changes.

formatting

wip

Add tab nav template only component

rename users index route -> users & add groups route

get groups from grb list and build groupPrincipal list

Add role binding to the fetched group principal

Add account-group-row component and define table row views

global role binding with group edit page

Fix transitionTo in cancel and doneSaving -> cru-group-account

translations

Add initialPrincipal param to input-identity to allow use on edit

reduce duplicate principal calls and display on groups list page

fix role links types from account-group-row

add group delete functionality

translations and bulk action fix

sort global role names in modal and row

delete GRB modal translations

move users route to security-> users, break out groups route security

remove unneeded component

Live update fixes

translation fix

fix broken link to old accounts route

remove unneeded props, angle bracket components, general cleanup

lint fixes

Change add group button

Add warning on add group for non-local auth only and translations

Remove warning from delete group modal and change translations

re-org form-global-roles display

breaks the display out into base|user-custom|additional roles
adds back in details & descriptions
fixes role ids in translations file
2019-12-02 09:40:26 -07:00
loganhz 3c5d9029c3 Fix route error
https://github.com/rancher/rancher/issues/23370
2019-11-28 12:12:35 +08:00
Westly Wright 904985c540
udpate aks default k8s version
rancher/rancher#24239
2019-11-25 15:22:06 -07:00
Westly Wright d0a9c4179f
Fix recompute bug 2019-11-18 12:35:23 -07:00
Westly Wright 7f5debb985
Allow clone of global roles 2019-11-18 12:11:01 -07:00
Westly Wright 1ac41a98ce
Allow users to create global roles
rancher/rancher#23453
2019-11-18 10:45:14 -07:00
Westly Wright 1feaf4c1b5
Merge pull request #3584 from westlywright/mc.app.display.issues
Mc.app.display.issues
2019-11-15 09:44:13 -07:00
Westly Wright 5062e53a45
Fix borked jQuery targeting in input-password 2019-11-14 11:05:56 -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 3d4b81e2d6
Merge pull request #3577 from hubert-he/master
fix ui error message never pop up
2019-11-14 09:51:38 -07:00
Cody Jackson b93e895d78 Change the messaging and default creationtype
The backend was setting the default to legacy so that the legacy
template would still work when users migrate to the latest
version of the driver. This was causing the default value to
be legacy when creating a new vsphere template. Forcing
the backend to change the default will likely lead to problems
with the migration so we're making the change on the front end.

Ultimately we use the existing set default logic if a vsphere template
is being created (as opposed to edited) instead of just when the
creation type doesn't exist or is invalid.

We also changed the text for the legacy value to be friendlier.

rancher/rancher#24060
2019-11-13 16:15:01 -07:00
Westly Wright 87cd611652
Merge pull request #3513 from westlywright/fp.cr8.template.from.cluster
[Forwardport] Convert Existing Cluster to RKE Cluster Template
2019-11-13 15:25:36 -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 62ef5bc39d
when upgrading mc app ensure we are using a fresh copy of mc app
rancher/rancher#24057
2019-11-13 13:08:03 -07:00
zhenhua he 106de7be6b Merge branch 'master' of github.com:hubert-he/ui 2019-11-13 14:47:17 +08:00
zhenhua he 3961b39020 error message never pop up when add user in global member page 2019-11-13 14:29:54 +08:00
Westly Wright 8c9789f82f
check answers required fields for mc app
rancher/rancher#24057
2019-11-12 16:25:14 -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 d7096f4e08
Merge pull request #3567 from codyrancher/datastore-cluster
Add datastore cluster as an option for vsphere
2019-11-11 11:47:17 -07:00
Cody Jackson 65fb8f49ab Add datastore cluster as an option for vsphere
rancher/rancher#24002
2019-11-11 11:18:24 -07:00
Westly Wright 3223869788
make cloud provider uneditable
rancher/rancher#24008
2019-11-08 16:17:20 -07:00
Westly Wright a905dc2c0c
network plugin not editable
rancher/rancher#23999
2019-11-08 11:01:22 -07:00
Westly Wright a6d2020265
Merge pull request #3556 from westlywright/eks.vpc.init.state
Refactor the logic backing GKE network/subnetwork selections
2019-11-08 10:53:27 -07:00
Cody Jackson 76adaf8658 Notify user of value missing from options
When using an older vsphere node template in the latest version it was
possible that a user entered value would not be a valid option. When
the value isn't a valid option the dropdown has nothing selected. To
improve the UX we now notify the user that the current value is no
longer valid and sask them to select a new value.

rancher/rancher#23920
2019-11-07 16:51:15 -07:00
Westly Wright 3399b66bc3
refactor the logic backing GKE network/subnetwork selections
While working on a ticket to provide the ability to de-select subnetworks when
using the create subnetwork option I discovered the options were all messed up
and allowed you to misconfigure yourself into a hole.

I've moved ipalias and related networks settings out of advanced becuase
depending on what you select for your subnetwork the ability to choose ipalias
and the other settings changes.

This change allows you deselect a node subnet so you can create a subnetwork
automatically.

rancher/rancher#21079
2019-11-07 14:06:12 -07:00
Westly Wright 62bee3bdf0
Merge pull request #3553 from WuJun2016/my-master
[forwardport] Too many annotations are read-only
2019-11-07 09:14:33 -07:00
Westly Wright 62e116b00d
Merge pull request #3552 from westlywright/eks.vpc.init.state
Select Correct EKS VPS & Subnet on Edit
2019-11-07 09:14:16 -07:00
wj fda89eb4aa Too many annotations are read-only
https://github.com/rancher/rancher/issues/23849
2019-11-07 13:27:03 +08:00
Westly Wright 1ea956ee07
update vpc & subnet observers to watch steps to init correctly
rancher/rancher#23879
2019-11-06 12:18:37 -07:00
Westly Wright 0bf3ed5553
Fix translations bug in searchable-select
when I removed maybe-t helper I forgot to check grouped content in the
searchable select which was still looking for a translations. Moved the
translation lookup to the component when we generate the groupedContent so we
dont run into this issue again

rancher/rancher#23946
2019-11-06 11:07:09 -07:00
Westly Wright 43ba4ac50b
Merge pull request #3544 from codyrancher/creation-type
[forwardport] Switch to new implementation of creationType
2019-11-06 09:40:00 -07:00
Westly Wright 07c77cc41d
rework query params for edit cluster and template revisions 2019-11-05 16:26:02 -07:00
Cody Jackson 1fd130667a Switch to new implementation of creationType
The backend has made a new implementation of creationType which allowed
me to remove the creationMethod concept and just use creationType.

This change allows us to properly populate the creation type form fields
when a user edits a vsphere nodetemplate.

rancher/rancher#23812
2019-11-04 13:33:01 -07:00
Westly Wright 443f5c6c6e
Merge pull request #3538 from westlywright/helm.wait.timeout
Expose wait and timeout on mc and regular apps
2019-11-04 11:57:03 -07:00
Cody Jackson 6c7052befd Enable unique custom attribute key selection
The keys for custom attributes needed to be unique. To enforce the
unique constraint I created the FormContextualKeyValue component.
This component behaves similarly to the FormContextualSelectArray
but handles key value pairs.

rancher/rancher#23782
2019-11-04 10:13:01 -07:00
Westly Wright da782cacc0
Expose wait and timeout on mc and regular apps
rancher/rancher#22373
2019-11-04 09:52:55 -07:00
Westly Wright 6ecdfbaa9b
Merge pull request #3534 from westlywright/fp.sort.issues
[Forwardport] Fix sorting on cloud credentials page
2019-11-01 09:24:37 -07:00
Westly Wright 1d13b4fb90
Merge pull request #3531 from loganhz/gauge-2.4
[Forwardport]Incorrect node memory usage gauge when cluster monitoring is enabled
2019-11-01 09:23:12 -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
n313893254 796baf2f54 Incorrect node memory usage gauge when cluster monitoring is enabled
https://github.com/rancher/rancher/issues/23786
2019-11-01 20:18:31 +08:00
Cody Jackson a39189f0f4 Repair vsphere node template editing
When editing a vsphere node template that used a RancherOS ISO
creation method it crashed the page due to an array not existing.

I also noticed that the tags, custom attributes and networks weren't
loading when editing so I resolved those issues too.

rancher/rancher#23796
2019-10-31 16:12:41 -07:00
Westly Wright 9a1c05e8eb
Merge pull request #3524 from westlywright/fp.service.discovery
[forwardport] revert change to form-value-array
2019-10-31 14:37:55 -07:00
Westly Wright b21371df89
Merge pull request #3520 from codyrancher/apps
Prevent App editing from modifying state on cancel
2019-10-31 14:37:04 -07:00
Westly Wright adcfbf96bb
Merge pull request #3527 from codyrancher/one-option-fp
[forwardport] Fix FormContextualSelectArray to accept 1 option
2019-10-31 14:34:27 -07:00
Cody Jackson 8c5e2f021f Fix FormContextualSelectArray to accept 1 option
When there was only one option we the add button was disabled and
we couldn't add the one option.

This change fixes it so that we can still select the single option if
desired.

rancher/rancher#23780
2019-10-31 13:55:33 -07:00
Westly Wright 40f95e8e9c
revert change to form-value-array
rancher/rancher#23791
2019-10-31 11:11:49 -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
Westly Wright 04c44e3f9e
Merge pull request #3519 from westlywright/fp.translation.fix
Fix Intermittent Translation Not Loading Issues
2019-10-31 09:38:15 -07:00
Westly Wright 77e1df7060
remove translation as we had localizedPrompt set true 2019-10-30 12:14:43 -07:00
Westly Wright 231c9b6f1f
remove maybe-t helpers because t has default (fallback) built in 2019-10-30 12:14:43 -07:00
Westly Wright b31279b8ca
start loading the intl lang sooner to ensure loaded b4 first render
because we did not delay the readiness of the application when loading
translations when a user hit `update-setting` route we'd render the page before
the language had finished loading. Moving the language to the before model and
in the finally of the detect phase ensures we have our language loaded before we
remove the loading state and render the main content.

rancher/rancher#23776
2019-10-30 12:14:28 -07:00
Westly Wright d98edaa785
Merge pull request #3511 from codyrancher/aks-message
Use correct AKS messaging for create cluster
2019-10-30 11:09:36 -07:00
Westly Wright 8058d3de4d
refactor form-versions logic to reduce complexity and bugs
I think the file it self may look more verbose as I've broken several of the
confusing portions into pure(ish) functions. I think this reduces the complexity
of the logic and makes it easier to read. Hopefully this will reduce the bugs
that keep cropping up.
2019-10-29 14:07:49 -07:00
Westly Wright 281a922cb4
Add save as rke template action to clusters
rancher/rancher#23752
2019-10-29 13:51:31 -07:00
Cody Jackson 7a956b1fa5 Use correct AKS messaging for create cluster
When creating an AKS cluster an alert with an EKS message. This
simply switches the message to use the AKS message.

rancher/rancher#23601
2019-10-29 11:56:46 -07:00
Westly Wright e8626832c0
Merge pull request #3510 from codyrancher/node-template-ux
[forwardport] Provide better node template UX
2019-10-29 10:17:05 -07:00
Cody Jackson cb3bb885f1 Provide better node template UX
We want to provide the owner as additional information when showing
node templates on the node templates page. We also want to make it so
that when selecting a node template the users templates will be grouped
and sorted to the top by default.

rancher/rancher#23325
2019-10-29 09:42:14 -07:00
Westly Wright 2928969cc2
Merge pull request #3500 from loganhz/istio-forwardport
[forwardport] Istio gateway support
2019-10-29 09:22:57 -07:00
Cody Jackson 5345de7e34 Parse the 'key=value' format of custom attributes
We weren't initializing custom attributes because we were not
parsing the backend format appropriately. We needed to parse
the 'key=value'.
2019-10-28 08:48:08 -07:00
Cody Jackson b3f5bfe615 Remove cloneFrom and contentLibrary while not used
If cloneFrom and contentLibrary shouldn't be used we delete them
from the config to prevent them from going being a part of the request.
2019-10-28 08:43:33 -07:00
Cody Jackson ea7dd8fb3d Make creationType use the appropriate values
creationType was using the wrong values after refactoring to
combine two dropdowns into one. I renamed the existing
config.creationType to creationMethod and now observe
creationMethod to properly set config.creationType.
2019-10-28 08:43:09 -07:00
Westly Wright 113372e524
during jquery dep warnings fix we started grabbing the wrong element
which caused some undefined errors to start sprouting up

rancher/rancher23682
2019-10-25 14:22:36 -07:00
Westly Wright 4d1b629382
Merge pull request #3503 from westlywright/fp.k8s.version.bug
[Forwardport] Select correct k8s version when changing templates
2019-10-25 09:37:47 -07:00
Westly Wright b5173c2e46
Select correct k8s version when changing templates
rancher/rancher#23682
2019-10-25 09:27:07 -07:00
Westly Wright c49c1e3cc2
Merge pull request #3501 from loganhz/graph
Fix graph issue
2019-10-25 08:48:11 -07:00
Westly Wright a03fc685b6
Merge pull request #3499 from lvuch/lh-1015
22180
2019-10-25 08:47:22 -07:00
Westly Wright afe32d4be3
Merge pull request #3496 from westlywright/fp.global.roles
[Forwardport] Global Permission Bug
2019-10-25 08:45:47 -07:00
loganhz c74660df31 Fix graph issue
https://github.com/rancher/rancher/issues/23654
2019-10-25 11:41:15 +08:00
loganhz 5562d5f65d Add istio feature flag back
https://github.com/rancher/rancher/issues/23582
2019-10-25 10:12:05 +08:00
loganhz 1d8d9aee3b Fix comments 2019-10-25 10:10:27 +08:00
loganhz 2e50a798a0 Support Istio Gateway 2019-10-25 10:10:05 +08:00
lvuch 9a7f337889 22180 2019-10-23 15:28:09 -07:00
Westly Wright 2c7e45c80d
Fix incorrect import of observer
update lock file
2019-10-23 13:20:05 -07:00
Westly Wright 6d0a5cfe07
grabbed the wrong param during refactor
rancher/rancher#21749
2019-10-23 12:10:11 -07:00
Westly Wright 94a4c1a7e2
cleanup from review 2019-10-23 12:10:11 -07:00
Westly Wright 943d8b6662
refactor global permissions to simplify and not overwrite roles
When global roles were added the front end had to make some assumptions for
non-admin users to ensure the user had login access. This role used to be hidden
but was made visible by default. With this exposed we now check before save if
the user has some kind of login access and throw an error if not. We also no
longer need to hide the custom roles which allows new user default roles to be
displayed without all the crazy logic to decide which mode to show. The old
login-access read only param was removed; This used to map to user-base and we
only displayed it because the role was hidden.

rancher/rancher#23644
2019-10-23 12:08:42 -07:00
Westly Wright c32e1f2d05
Merge pull request #3492 from codyrancher/fp-master-3474
[forwardport] Ensure istio member type is correct on add
2019-10-23 12:01:25 -07:00
Westly Wright 66c05c2397
Merge pull request #3491 from codyrancher/fp-master-3490
[forwardport] Fix EKS cluster creation transition
2019-10-23 12:00:50 -07:00
Westly Wright d7d63dce4f
Merge pull request #3489 from codyrancher/array-deprecation
Deprecate array constructor usage
2019-10-23 12:00:31 -07:00
Westly Wright 0a5a355e33
Merge pull request #3486 from lvuch/lh-1015
node pools help text
2019-10-23 11:59:38 -07:00
Westly Wright c2df691322
Merge pull request #3485 from codyrancher/fp-master-3484
[forwardport] Surface Refresh Kubernetes Metadata error message
2019-10-23 11:58:29 -07:00
Westly Wright 7d74adedf6
Merge pull request #3483 from codyrancher/fp-master-3475
[forwardport] Improve vsphere driver UX
2019-10-23 11:58:00 -07:00
Westly Wright 268dc21570
Merge pull request #3482 from codyrancher/fp-master-3471
[forwardport] Improve kube version inspection on cluster edit
2019-10-23 11:57:08 -07:00
Westly Wright ef002be770
Merge pull request #3432 from westlywright/feature.feature.flags
Feature Flags UI
2019-10-23 11:49:03 -07:00
Cody Jackson f72836ef40 Ensure istio member type is correct on add
When adding a github group to be an instio member we wanted the
appropriate Member Type to be displayed. We wanted 'Organization'
instead of 'group'.

We noticed that addAuthorizedPrincipal was being invoked with a newly
created member object instead of just passing the principal. Since
everything we could inspect code wise expected a principal instead
of a member I went ahead and just passed the principal.

rancher/rancher#23264
2019-10-22 14:46:34 -07:00
Cody Jackson 7902a0fd62 Fix EKS cluster creation transition
After pressing the 'create' button of the EKS driver the user was being
transitioned back to step 3 (Vpc & Subnet) rather than waiting on the
final page until the save is complete and returning to the cluster page.

An observer was being triggered by the save process which subsequently
set the step back to 3. To resolve this we will only enter the branch if
there are initialized values that need to be set back to default.

rancher/rancher#23493
2019-10-22 14:16:01 -07:00
Cody Jackson a5f7d63070 Deprecate array constructor usage
Invoking the constructor instead of just a method causes an error.
This resolves that error.
2019-10-22 13:36:07 -07:00
lvuch 1fa64d0c97 help text on node pools edit 22782 2019-10-21 15:33:57 -07:00
Cody Jackson 3f52c5c871 Surface Refresh Kubernetes Metadata error message
When a standard user attempted to fresh kubernetes metadata on
the drivers/cluster page it would result in an error notification that
stated 'undefined'. This will allow the backend error message
to surface.

rancher/rancher#25771
2019-10-21 15:10:55 -07:00
Cody Jackson 4b2c79ea3d Improve vsphere driver UX
-We now prepopulate fields as select component instead of just
free-form text fields.
-We added support for cloning from different sources.
-We also added support for custom attributes and tags.

To implement the above features we also added support for promise
based content for new-select and search-select and created a new
component contextual-select-array which provides a method for
filtering content based on previous selections.

rancher/rancher#21580
2019-10-21 13:19:14 -07:00
Cody Jackson 0fe6c33eb5 Improve kube version inspection on cluster edit
While editing a cluster properly support .x kube version comparisons when
filtering out cluster template revisions.

Coercing a .x version converts it to a .0 which made the revision look like
it was a kube downgrade. By making use of .satisfies when the revision
kube version ends with a '.x' we're now better able to check if the
kube version is a downgrade and filter appropriately.

rancher/rancher#23489
2019-10-21 12:21:09 -07:00
Westly Wright 1b192be926
Merge pull request #3358 from codyrancher/security-options
[WIP] Display security options when editing GKE cluster
2019-10-21 09:42:07 -07:00
Westly Wright fc52c38537
Merge pull request #3469 from codyrancher/period-variable
Enable '.' in answer variables
2019-10-21 09:22:54 -07:00
Cody Jackson 1fb9b5274a Enable '.' in answer variables
This enables '.' to be a valid character in answer varaibles.
So we can support sub.key as a key now.

This also resolves a double render issue that was ran into while
reproducing this issue.

rancher/rancher#23379
2019-10-17 13:04:14 -07:00
Westly Wright 6316204696
Merge pull request #3466 from westlywright/forwardport.23478
disp k8s ver correctly when editing cluster or clone rev
2019-10-17 10:54:41 -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 d211f69c15
lookup correct catalog route to refresh
catalog-tab is the project level route, this never targeted the correct route.
2019-10-17 10:43:39 -07:00
Westly Wright ccd9d740ac
Ensure template computed prop is watching intl locale
rancher/rancher#23322
2019-10-17 10:43:38 -07:00
Westly Wright 961aea1148
Merge pull request #3448 from n313893254/23437
Bugfix
2019-10-17 10:37:27 -07:00
Westly Wright 5242a1fb7f
First run on Feature Flags ui
rancher/rancher#23184

Translation changes

Failing tests

cleanup
2019-10-17 10:15:04 -07:00
Westly Wright b24711b4e7
Merge pull request #3450 from codyrancher/aks
Add network plugin and supporting param
2019-10-17 09:55:06 -07:00
Cody Jackson ef63c2a9c6 Ensure the current Kubernetes version can display
The current kubernetes version wasn't being shown if it was no
longer a part of the supported versions when in view mode. Instead
the latest version was being displayed even if that wasn't what was
deployed. To resolve this we include the current version as one of
the choices if it's not present.

rancher/rancher#23465
2019-10-15 17:56:14 -07:00
Cody Jackson c7d26ecbce Add network plugin and supporting param
This adds the Network Plugin param as well as the PodCidr param.

rancher/rancher#22616
2019-10-15 16:06:13 -07:00
n313893254 3c649edcde Fix alert rule validatation cannot stop alert group save 2019-10-15 15:13:08 +08:00
n313893254 5f15b7bd48 Fix setting up node alert for memory reservation also sets cpu reservation
https://github.com/rancher/rancher/issues/23308
2019-10-15 15:12:59 +08:00
Westly Wright 738dc981b7
Merge pull request #3440 from westlywright/forward.tolerations
[Forwardport] Display Atypical Tolerations Correctly
2019-10-10 11:04:55 -07:00
Westly Wright 57bbcaf705
Merge pull request #3438 from loganhz/catalog-max-master
[forwardport] Hide catalog items if there is no templates
2019-10-10 11:04:43 -07:00
Westly Wright cb5bf2364c
Merge pull request #3435 from westlywright/amazon.instances
[Forwardport] Add missing c5.* instance types to amazon utils
2019-10-10 11:04:35 -07:00
Westly Wright 0c7a824c28
MAINTAINENCE - Use ember getters & setters 2019-10-10 09:53:22 -07:00
Westly Wright 997313b6fc
Clean up toleration template logic to display the correct info
there are certain params that are not required by the k8s toleration api, Key
and Operator, which if excluded mean different things. See
https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ for
examples of how these two keys are used.

rancher/rancher#18605
2019-10-10 09:53:11 -07:00
loganhz d2b1382477 Hide catalog items if there is no templates 2019-10-10 11:46:27 +08: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 849b1f6380
Add missing c5.* instance types to amazon utils
rancher/rancher#22907
2019-10-09 14:35:08 -07:00
Westly Wright 5ba042a678
Merge pull request #3433 from westlywright/master.bugs
Ember Upgrade Bugs
2019-10-09 12:20:03 -07:00
Westly Wright 1d389ed5b8
route name is getting modified twice
there is a weird issue in ember engines that resets the route path which can
cause a double render error to be thrown by ember. Easiest fix is to unbind the
param and since this is only dynamic because we're building the list of links
from an array there is no reason for it to be bound.
2019-10-09 12:06:05 -07:00
n313893254 440916a29b Fix jquery errors 2019-10-09 16:38:11 +08:00
Westly Wright 0f85e74fec
more jquery errors 2019-10-07 16:49:01 -07:00
Westly Wright 1616b54aa4
remove other missing apis 2019-10-07 12:05:22 -07:00
Westly Wright 351fd47823
Fix various master bugs from ember upgrade
We fixed a few deprecation for jquery on the cluster page but there were some
errors firing when using so I fixed the targeting.
There was also a intl error because of a missing api.
2019-10-07 12:01:00 -07:00
Westly Wright 2c67c35c28
Exclude local user from principal search
rancher/rancher#23247
2019-10-07 09:18:21 -07:00
Westly Wright 94301e5fd4
Merge pull request #3411 from codyrancher/deprecation
Addressing a number of ember deprecations
2019-10-04 13:55:01 -07:00
Westly Wright b26a83c1c0
Merge pull request #3420 from westlywright/forwardport.istio.rbac.fixes
[Forwardport] Restrict Istio member access to groups only
2019-10-04 12:16:33 -07:00
Westly Wright 9feea7bbcc
Restrict Istio member access to groups only
Due to some oddities in the way that Istio currently allows access to members to
the kiali and jaeger ui's we've decided to restrict the member search to groups
only. I've changed the verbiage on the lables to reflect this. Additionally I've
also exposed the searchOnlyGroups param on the principal search component. I did
not expose the user only param because this is not something we're normally
going to be doing.

rancher/rancher#23215
2019-10-04 12:01:27 -07:00
Westly Wright 72672d5f1e
Merge pull request #3416 from westlywright/issue.23219
Change windows docker version for custom clusters
2019-10-04 11:53:19 -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 15dc7ce56f
Fix routing issues post ember upgrade
It seems the previous way that the cluster id and project id was fetched from
various addons (alerts and istio) does not work in ember 3.12. After some
investigation it wasn't the corret way to grab those parameters anyway. I've
changed the routes to use the scope service which has the current cluster and
project (if in one) rather than fetch the query params off a parent route
outside the engine.
2019-10-03 15:36:38 -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
Westly Wright fcad0a2953
Merge pull request #3409 from codyrancher/grafana
Move Grafana options to own section
2019-10-02 14:02:06 -07:00
Westly Wright 7004f1e500
Merge pull request #3407 from codyrancher/cloud-credential
[2.3.2] Add # Node Templates column to cloud credentials
2019-10-02 14:01:04 -07:00
Westly Wright f738509a50
Merge pull request #3406 from westlywright/edit-cc-name
[2.3.2] Allow edits to cloud credential name
2019-10-02 14:00:30 -07:00
Westly Wright 0ef600f737
Merge pull request #3405 from westlywright/issue.21099
[2.3.2] Dynamically change version label on node dashboard
2019-10-02 14:00:17 -07:00
Westly Wright a2a0ce1e79
Merge pull request #3404 from westlywright/identicon.icons.fix.21440
[2.3.2] Ensure project-member-row uses same identicon as principal model
2019-10-02 14:00:03 -07:00
Westly Wright ea695b4a4c
Merge pull request #3398 from n313893254/22742
[2.3.1][Alerting] Change no-data message to text-muted
2019-10-02 13:52:02 -07:00
Cody Jackson 16fc847790 Fix linter warnings 2019-10-02 13:49:17 -07:00
Cody Jackson 6e1c472af6 Add # Node Templates column to cloud credentials
We want to provide a quick way to delete unused cloud credentials.
To do this we're going to show the user the number of node templates
that each cloud credential is associated with.

rancher/rancher#23064
2019-10-02 13:48:51 -07:00
Westly Wright d145445d25
Upgrade ember-intl to latest version
remove prototype extension

Remove translations from engines

The motivation behind this change stems from this issue ember-intl issues/797
and the current implmentation of engine support in ember-intl. The translations
essentially get bundled twice. Until ember-intl removes the second bundle it
makes sense to keep the translations in the main ui file.
2019-10-02 13:46:37 -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
Cody Jackson 32be99a9ae Move Grafana options to own section
The Grafana storage options were confusingly in the middle of the
Prometheus options on the Cluster Monitoring Configuration page.
To resolve this we moved the Grafana options to be below the
Prometheus options and above the advanced otpions.

rancher/rancher#22885
2019-10-01 15:26:49 -07:00
Westly Wright d29e9f9d62
Allow edits to cloud credential name
rancher/rancher#23059
2019-10-01 10:00:04 -07:00
Westly Wright 1c30a15ee1
general cleanup 2019-10-01 09:00:56 -07:00
Westly Wright 5fce14597a
Dynamically change version label on node dashboard for dock/contd
Checks the os info to see if its docker or container d and display the
appropriate label in each case.

rancher/rancher#21099
2019-10-01 09:00:56 -07:00
Westly Wright 10d148eecb
Ensure project-member-row uses same identicon as principal model
project-member-row was using `avatarSrc` on its component which was slightly
different then the same code used in the principal model but really should have
been the same. I got rid of the duplicate code in the component since the model
is the data owner. It really should manage the avatar source building.

I also updated single quotes to doubles in template and refactored the owner
logic since it wasn't doing anything extra that the noUpdate flag was doing.

rancher/rancher#21440
2019-10-01 09:00:07 -07:00
Westly Wright 0848e5a519
dedup import yaml button when istio feature flag is enabled
When adding the vitual services and destination rules are enabeld we were
showing the import yaml button twice. It needs to be visible on both tabs and we
should be able to pass the or to the rbac check so I removed the duplicates and
moved the button to before the potential other buttons in the istio nav.

rancher/rancher#23155
2019-09-30 14:55:28 -07:00
n313893254 01845435f2 Change no-data message to text-muted
https://github.com/rancher/rancher/issues/22742
2019-09-29 15:56:38 +08:00
loganhz 02deb50669 Istio Virtual Service feature flag 2019-09-28 12:14:55 +08:00