Commit Graph

2485 Commits

Author SHA1 Message Date
Vincent Fiduccia 2586041b1d
Update dashboard link when cluster readiness changes 2020-07-21 12:41:42 -07:00
Westly Wright bcfa4d0b91
allow project owners to save reg creds
Fix regression in creating registry creds. I misunderstood what willSave was
doing with the namespaceId when I added the ternary check. I simplified and
hopefully clarified what was actually happening when setting temp_id, now use
a local flag to set unset the temp namespace, then allow namespace to handle
saving or not saving the namespace.

rancher/rancher#27769
2020-06-29 14:59:37 -07:00
n313893254 297054ad33 Fix logging test bug
https://github.com/rancher/rancher/issues/27695
2020-06-23 17:32:09 +08:00
Cody Jackson 6328329b10 Reset registry modal step on each open
The modal was persisting the selection state between multiple
closing and openings of the modal. This now resets the selection
state.

rancher/rancher#27339
2020-05-29 15:32:27 -07:00
Westly Wright d2d7c428b4
Merge pull request #4018 from codyrancher/registry-clone
Fixing namespace specific registry clones
2020-05-28 10:33:08 -07:00
Westly Wright 9c729e701a
Merge pull request #3997 from codyrancher/drainage
Splitting up aggressive drain parameters
2020-05-28 10:31:33 -07:00
Cody Jackson bf03ef772e Fixing namespace specific registry clones
Namespace wasn't being set on the component which prevented it from
being visible to OptionallyNamespaced mixin.

rancher/rancher#27173
2020-05-27 09:18:39 -07:00
loganhz e34fd9f11f Fix project switch issue on mobile 2020-05-27 14:46:47 +08:00
Cody Jackson 27c3ace324 Splitting up agressive drain parameters
We no longer have safe and aggressive nodes we now
have two properties 'force' and 'deleteLocalData'.

rancher/rancher#27111
2020-05-26 13:11:22 -07:00
loganhz f45a7d2b40 Fix project switching issue on mobile 2020-05-25 21:23:30 +08:00
Westly Wright 193f0fd464
Merge pull request #3979 from codyrancher/reg-cred
Fix registry credentials so that it doesn't crash
2020-05-20 08:55:47 -07:00
Cody Jackson b4a9698a57 Fix registry credentials so that it doesn't crash
Object destructuring expects the entire object to be present. When
'Available to all namespaces in this project' is used the namespace
object isn't defined which causes the save to fail due to an null
exception.

rancher/rancher#26981
2020-05-19 15:59:39 -07:00
Westly Wright 773d44500e
Remove arbitrary limits on container resource limit inputs
schemas do not reflect a default value and they are nullable
by placing min's on the input we don't allow the user to clear the input if they
want and because there are no defaults it doesn't make sense to place these
minimums on the input

rancher/rancher#27038
2020-05-19 11:25:04 -07:00
Westly Wright 60d3784b85
Merge pull request #3932 from loganhz/aliyun-master
[Master] Fix node name display issue
2020-05-08 10:58:49 -07:00
Westly Wright 700c4360bc
Merge pull request #3927 from loganhz/logging-master
[Master] Fix log volume format button issue
2020-05-08 10:57:42 -07:00
Westly Wright a436bcc828
refactor cru-registry ns save logic
Not sure this every put registry secrets into the desired namespace. The
`namespaceId` was never set on the primaryResource by the namespace components,
rather those components worked on a namespace object. Ive gotten rid of
`namespaceId` and refactored to use the namespace object in its place.

rancher/rancher#26813
2020-04-30 09:26:51 -07:00
loganhz 5a8ea608bb Fix node name display issue 2020-04-22 20:25:40 +08:00
loganhz df877494a8 Fix log volume format button issue 2020-04-21 14:42:17 +08:00
Westly Wright 7b9e417df4
select correct csi component if driver is longhorn on edit
rancher/rancher#26642
2020-04-17 09:45:58 -07:00
Westly Wright 67c84e22d6
Remove unnecessary fields added for longhorn flex->csi
rancher/rancher#26642
2020-04-16 13:03:50 -07:00
Westly Wright 3e61dabb9f
Longhorn storage class params are not editable
rancher/rancher#26617
2020-04-16 11:27:52 -07:00
Westly Wright e963cddb45
lint 2020-04-15 11:19:52 -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 9d9dc43e54
Refactor Longhorn PVC component to move to CSI driver
rancher/rancher#17972
2020-04-15 09:49:29 -07:00
Westly Wright aabf5976cd
Change volume expansion for longhorn storage class
rancher/rancher#26617
2020-04-14 14:18:41 -07:00
Westly Wright adc2ab21b9
new and edit projects should be able to remove mem
rancher/rancher#26428
2020-04-08 11:11:30 -07:00
Westly Wright 093bc725f0
Allow project members to be removed on edit
rancher/rancher#26428
2020-04-07 10:20:56 -07:00
GGGitBoy 1b4565d808 Fix the issue that users cannot remove proxyUrl of notifier
ProxyUrl could be empty. It will alwasy set a empty proxyUrl in alert
manger for the notifier. So alert manager cannot send out alerts due to
the empty proxy url setting.

https://github.com/rancher/rancher/issues/26089
2020-04-04 22:56:03 +08:00
Vincent Fiduccia cab66d85e3
Only show dashboard on ready clusters 2020-03-30 16:41:17 -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
Westly Wright 0d2838b7f7
Merge pull request #3846 from codyrancher/cis-na-nodes
When a test is N/A the nodes will also be N/A
2020-03-16 15:50:55 -07:00
Cody Jackson be3a635e3d When a test is N/A the nodes will also be N/A
rancher/rancher#26067
2020-03-16 14:48:19 -07:00
Cody Jackson c6ae9d07a3 Adding support for CIS error messages
We now support displaying an error message when CIS scan fails to execute
properly.

rancher/rancher#25792
2020-03-16 13:44:04 -07:00
Cody Jackson 56366207ee Various CIS fixes
- Label change for scheduled scans
- Fixed a table rendering bug that occured due to the incorrect value
  of colspan
- Disabled the alert and scheduled scan button on the cis page for
windows clusters
- Fixed an issues where two scans couldnt run at the same time due
  to a profile not being defined for a second run scan modal.

rancher/rancher#26009
rancher/rancher#26021
rancher/rancher#25987
rancher/rancher#25983
2020-03-16 10:36:37 -07:00
Cody Jackson 9485a3c4b4 Improve the UX of our Snapshots page
- Added a Snapshot Now button to the top of the table
- Added a Restore Snapshot option to the actions of each row which will
  select the current row when opening the modal

rancher/rancher#25511
2020-03-15 03:22:32 -07:00
Westly Wright 49b3de8f0b
Merge pull request #3837 from lvuch/lh-0312
try dashboard button
2020-03-13 11:26:48 -07:00
lvuch bc6912e62f try dashboard button 2020-03-13 10:00:50 -07:00
Westly Wright 8ef1b75ac6
Fix incorrect min/max values for workloads
rancher/rancher#25974
2020-03-12 14:56:15 -07:00
Cody Jackson 604e647907 Remove CIS skip button and total number
We're removing the CIS skip button because we decided the current UX
is poort and we don't want to spend a tremendous amount of effort
making a marginally better UX in the short time we have left.

We also removed the 19 of 59 from the main CIS page as the total was
misleading and wasn't actionable.

rancher/rancher#25863
2020-03-10 16:50:18 -07:00
Cody Jackson bcc60fa0bf Prevent the skip button from showing for N/A tests
rancher/rancher#25863
2020-03-10 11:56:07 -07:00
Cody Jackson ebd73129a1 Add profile column to CIS Scans page and modify cron default
rancher/rancher#25890
rancher/rancher#25933
2020-03-10 11:39:23 -07:00
Westly Wright 1497c66688
missing secret data caused undefined
rancher/rancher#25304
2020-03-09 14:00:10 -07:00
lvuch 5d2c3c99d8 fix pre styling on app rollback 2020-03-09 11:16:36 -07:00
Westly Wright 33f8b2d684
Merge pull request #3806 from codyrancher/cis-na
Adding the Not Applicable column to CIS Scans
2020-03-09 10:19:11 -07:00
Cody Jackson bc11ad5a1f Adding the Not Applicable column to CIS Scans
rancher/rancher#25857
2020-03-09 10:09:06 -07:00
Cody Jackson a4b67abf8e Removing the link to nodes in the cis scans
Removing this link because we cannot accurately link to the node if a
node has been replaced.

rancher/rancher#24734
2020-03-09 08:42:58 -07:00
Cody Jackson 9dddea78c9 Adding support for N/A state and creating a better profile 2020-03-06 12:15:27 -07:00
Westly Wright d362eb4bb5
Merge pull request #3794 from westlywright/helm.version
Introduce Helm Catalog Version
2020-03-06 10:59:34 -07:00
Westly Wright a823836245
Add helm3 logo to all the places 2020-03-06 09:25:43 -07:00
lvuch 77dc6814fd fix diffs for 25800 2020-03-05 13:02:05 -07:00
Westly Wright 765ef8e068
Fix computed prop cache error
rancher/rancher#25512
2020-03-04 16:01:00 -07:00
Westly Wright 1bab59712e
Merge pull request #3783 from westlywright/image.name.clip.bug
Fix clipping on workload image name
2020-03-04 09:32:18 -07:00
Westly Wright 0dfa8b0f4d
Fix clipping on workload image name
rancher/rancher#24828
2020-03-03 12:43:20 -07:00
Westly Wright e63e5082f6
MC App Rollback hide additional fields & add help text to modals
rancher/rancher#25512
2020-03-03 12:27:44 -07:00
Cody Jackson a3cb6c7048 Updating text for snapshots
The select and the radio options were updated.

rancher/rancher#25630
rancher/rancher#25525
2020-02-27 16:33:00 -07:00
Cody Jackson 7c446c6740 Improve the Restore Snapshot modal
- Update the Available Snapshots labels
- Reverse the order of Available Snapshots
- Change 'Save' button to 'Restore' button
- Add restoration type section 'etcd', 'kubernetes version', 'etcd and
   kuberneters version'

rancher/rancher#25525
2020-02-26 14:20:25 -07:00
Vincent Fiduccia 5a0e5c7d3d
Fix dashbaord link for prod build 2020-02-24 12:29:30 -07:00
Vincent Fiduccia 6f7d5368c6
Agree to eula on first login 2020-02-21 17:34:54 -07:00
Vincent Fiduccia 0bc2e1241d
Add toggle to dashboard if Steve is enabled 2020-02-20 16:20:09 -07:00
Westly Wright 45def9ed1e
Refactor logs connect so the logs connect every time
rancher/rancher#25297
2020-02-11 11:41:30 -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 3f14f59133
Fix broken jquery targeting
rancher/rancher#24960
2020-01-28 15:56:28 -07:00
Westly Wright e553f7f227
Merge pull request #3703 from shanewxy/trim-secret
Fixed trimming blank lines in multiline values of secrets breaks RSA format
2020-01-14 09:17:42 -07:00
loganhz 4a929c195d Show pod message
https://github.com/rancher/rancher/issues/24884
2020-01-11 08:23:39 +08:00
loganhz 204bd7ab2b Fix CATTLE_UI_PL issue
https://github.com/rancher/rancher/issues/23681
2020-01-06 14:31:29 +08:00
loganhz dc94f6e67b Hide description filed for configmap
https://github.com/rancher/rancher/issues/23736
2020-01-06 14:26:17 +08:00
shanewxy 7c15f79154 Added condition for trimming multiline values
https://github.com/rancher/rancher/issues/24577
2020-01-06 11:24:48 +08:00
shanewxy 0e5b2905f9 Enable add labels and annotations while adding secret
https://github.com/rancher/rancher/issues/21513
2019-12-25 17:50:23 +08:00
shanewxy 480986ef54 Enable add labels and annotations while adding Config Maps 2019-12-25 17:39:29 +08:00
Westly Wright e88161745c
Merge pull request #3661 from loganhz/csi
Fix CSI plugin issue
2019-12-23 09:51:02 -07:00
loganhz 91e33de002 Fix CSI plugin issue
https://github.com/rancher/rancher/issues/24665
2019-12-21 12:43:59 +08:00
loganhz 59b09ef762 Fix svc issue 2019-12-21 09:08:50 +08:00
Cody Jackson 867239fa1b Conditionally show node links in CIS Scans
If nodes have been deleted previous reports with missing nodes were
breaking. To resolve that we now only show links to nodes that we can
find.

rancher/rancher#24676
2019-12-20 09:14:16 -07:00
Westly Wright ded77b7208
Merge pull request #3657 from shanewxy/workload-description
Disabled the option to add description in workload
2019-12-20 09:10:47 -07:00
shanewxy e2521fd101 Disabled the option to add desciption in workload
https://github.com/rancher/rancher/issues/21357
2019-12-20 17:48:51 +08:00
Westly Wright fc63cb1f3a
add config data to configmap that combines both data and binary data
This is only on display.

rancher/rancher#24238
2019-12-19 14:58:23 -07:00
Westly Wright eadafbc780
refactor config-map-row to check for binary data keys on configmap 2019-12-19 14:58:23 -07:00
LiuYan 9b27c38f07 fix(registry-row): fix registry address col display content with '*%' if it's custom registry 2019-12-18 12:05:35 +08:00
Westly Wright fcaaa0f53c
Merge pull request #3634 from loganhz/default-ns-missing
Navigating to config maps mapped
2019-12-16 10:00:02 -07:00
Westly Wright b5b646a43d
Merge pull request #3633 from loganhz/local-sc
Support creating storage class for local persistent volumes
2019-12-16 09:59:09 -07:00
loganhz 19145abf57 Navigating to config maps mapped
https://github.com/rancher/rancher/issues/24188
2019-12-16 18:55:05 +08:00
loganhz 8b892ce009 Support creating storage class for local persistent volumes
https://github.com/rancher/rancher/issues/24082
2019-12-16 17:36:04 +08:00
loganhz 043442fe5c Import yaml in storage classes and Persistent Volumes page
https://github.com/rancher/rancher/issues/24611
2019-12-16 16:44:30 +08:00
Westly Wright 8ad5659c2f
Refactor validation on cloned registry items
rancher/rancher#24231
2019-12-10 13:00:43 -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 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
Westly Wright aa2188d8ac
pass answers to validation method for catalog apps
rancher/rancher#24084
2019-11-13 15:06:57 -07:00
Westly Wright dcb0379cf4
Remove exec call that happens to early
while reviewing rancher/ui#23993 i stumbled on a case where opening the pod logs
would cause an undefined error to crash the local ui server. `exec` is called
correctly from the `watchReconnect` observer which needs to happen first as it
parses the container name. If we call exec before we have a container name we
get an undefined error
2019-11-08 12:42:27 -07:00
Westly Wright 18846dbf10
Merge pull request #3540 from westlywright/incorrect.pod.count
[Forwardport] Fix pod count on workload list page
2019-11-04 11:57:42 -07:00
Westly Wright 571983d893
Merge pull request #3539 from westlywright/configMap.binary.data.error
JS Error when Consuming configMap with binaryData key
2019-11-04 11:57:32 -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
Westly Wright 73ef96860b
use computed prop for pod count
rancher/rancher#23866
2019-11-04 11:39:59 -07:00
Westly Wright d791b45c50
check if data exists on config map before looping over specific keys
rancher/rancher#21349
2019-11-04 10:45:13 -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 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 8b32d9fb84
Merge pull request #3521 from codyrancher/pod-sorting
Switch node sortkey on Workload page.
2019-10-31 14:37:26 -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 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