Commit Graph

369 Commits

Author SHA1 Message Date
Vincent Fiduccia 6922c89c2d
More detail isView stuff 2020-12-01 01:11:26 -07:00
Vincent Fiduccia 8746ab077c
Form component props standardizing 2020-12-01 01:09:24 -07:00
Vincent Fiduccia 936f54da24
fetch vs asyncData, moreDetails, parentOverride, pod moredetails 2020-11-30 23:28:21 -07:00
Vincent Fiduccia e01e75bf2f
Detail/Config/YAML toggle 2020-11-30 23:16:38 -07:00
Cody Jackson 80b37a78d2 Updating the look and feel of the constraint edit pages
rancher/dashboard#1773
2020-11-17 23:14:40 -07:00
Cody Jackson dcad01a17a Moving gatekeeper-constraint to be a spoofedType 2020-11-17 23:14:40 -07:00
n313893254 5217edd49d Update catalog chinese translation 2020-11-13 16:48:37 +08:00
Nancy Butler 2ae4685e3b simple custom validators 2020-10-29 13:44:55 -07:00
Vincent Fiduccia aa0da7758e
Merge pull request #1700 from codyrancher/alert-manager-route
Adding the route alertmanager route type
2020-10-28 15:36:20 -07:00
Cody Jackson 5f71c96305 Adding a pathExistsInSchema getter
Removing boiler plate code.
2020-10-28 13:18:27 -07:00
Vincent Fiduccia 008648b0ae
RelatedResources for Apps 2020-10-28 00:20:30 -07:00
Cody Jackson 0118e0c984 Adding the route alertmanager route type
- Extracted code that could be shared between route and receiver into an alertmanagerconfig util
- Added some more support code to allow users to dynamically add/remove uncreatableTypes

rancher/dashboard#1239
2020-10-27 16:10:01 -07:00
Cody Jackson 95976411ba Adding alertmanager Receiver type
To support receiver types I made it so that we can spoof types which
have any form we specify here in the UI. It will be useful for alertmanager
Routes and I think it could also be useful for things like OPA constraints
and workloads if we wish to update those.

rancher/dashboard#1238
2020-10-23 10:43:57 -07:00
Vincent Fiduccia 114b08b560
Restore target mode on gitrepo edit 2020-10-05 17:33:36 -07:00
Vincent Fiduccia 86a17d7484
Fix race where subscribe messages get dropped 2020-10-05 13:18:15 -07:00
Vincent Fiduccia b5802f03df
Less subscribe logging 2020-10-04 02:14:32 -07:00
Cody Jackson 29aaa185e5 Adding validation to verify atleast one local or global output is selected
rancher/dashboard#
2020-10-02 15:06:05 -07:00
Vincent Fiduccia ce75c172c9
Assign clusters to workspace & label them 2020-10-02 02:54:01 -07:00
Vincent Fiduccia 8c26b298ab
Reconnect to the right cluster when you switch clusters 2020-10-01 01:12:33 -07:00
Vincent Fiduccia 08e451185d
Fleet list & details 2020-09-30 05:05:53 -07:00
Vincent Fiduccia 14862b2924
Subscribe reload on too old error 2020-09-30 05:05:52 -07:00
Nancy Butler f504bf739e various workload fixes 2020-09-28 13:55:29 -07:00
Vincent Fiduccia 53b6dacd8c
Logging Flow form 2020-09-27 19:44:05 -07:00
Vincent Fiduccia f5d51c1ba7
More reactive store updates 2020-09-26 02:39:12 -07:00
Vincent Fiduccia 8eafc5f43d
Fleet states 2020-09-26 02:39:12 -07:00
Vincent Fiduccia 1814a1e3b7
Only ask the server for relationships if we don't already have it 2020-09-26 02:39:12 -07:00
Vincent Fiduccia 61b9b4b1c7
Remove consecutive action dividers 2020-09-26 02:39:12 -07:00
Vincent Fiduccia e305edcefa
Wait for store updates to finish, ensure only one flush at a time 2020-09-26 02:39:12 -07:00
Vincent Fiduccia a4484dd4c0
Subscribe preserve namespace 2020-09-26 02:39:11 -07:00
Vincent Fiduccia 0466c361e3
Rearrange products, fleet 2020-09-23 03:42:15 -07:00
Nancy Butler af3d6c63bf clusterscan detail fixes 2020-09-22 12:10:25 -07:00
Vincent Fiduccia 3d86690f68
Fleet 2020-09-21 03:33:07 -07:00
Vincent Fiduccia 9ad62bf02a
More fleet 2020-09-16 04:25:39 -07:00
Nancy Butler 2e1c1a76fa clusterscan detail 2020-09-15 12:52:54 -07:00
Vincent Fiduccia 6d9960bf25
GitRepo 2020-09-14 04:00:33 -07:00
Vincent Fiduccia e984e15595
Load schema change events correctly / update product menu when schemas change 2020-09-14 04:00:32 -07:00
Vincent Fiduccia ca15b288f9
Use management projects instead of clusterExternal 2020-09-11 00:59:41 -07:00
Vincent Fiduccia 000ad98d30
Fix question charts saving to values (#1221) 2020-09-10 17:31:16 -07:00
Vincent Fiduccia f5fc90350a
Checkbox key events for SortableTable 2020-09-05 00:51:36 -07:00
Vincent Fiduccia 565520c47a
Fleet clustergroup creaet 2020-09-04 03:46:01 -07:00
Vincent Fiduccia c599a81bd9
Clear catalog store on cluster change 2020-09-03 20:59:50 -07:00
Vincent Fiduccia f0221e3c19
Use revision from list responses for watch 2020-08-27 17:37:28 -07:00
Vincent Fiduccia d8b80c4f9d
Fix resource state ignoring metadata.state.error 2020-08-27 15:37:31 -07:00
Nancy Butler b9aa757738 return only matching resources 2020-08-27 11:34:47 -07:00
Vincent Fiduccia f035bdcd24
Merge pull request #1108 from vincent99/master
Ember<->Vue login/switch integration, app landing page redirect to install
2020-08-26 14:29:46 -07:00
Vincent Fiduccia 5a45f29f11
Merge pull request #1041 from westlywright/bug.yaml.editor.chart.page
Chart Install Yaml Refactor
2020-08-26 14:27:51 -07:00
Vincent Fiduccia ed0dfc7366
Useless check 2020-08-26 03:21:25 -07:00
Westly Wright fe83fe9c0c
parse preview yaml on charts on page load 2020-08-25 09:50:51 -07:00
Westly Wright c4369fd72f
Apply query should not replace the hash if exists 2020-08-25 09:50:50 -07:00
Nancy Butler 5afecb00dc view mode for EnvVars 2020-08-25 08:57:38 -07:00
Nancy Butler 89990779fe view mode styling, get pods with findMatching 2020-08-25 08:26:34 -07:00
Nancy cbfe4f3109
Fix findMatching mutation 2020-08-24 12:08:57 -07:00
Vincent Fiduccia ccab7c5193
Start questions support 2020-08-21 03:15:57 -07:00
Cody Jackson cf4794c057 Updating how we filter labels and annotations
- Replace prefix and contain lists with regex lists
- Allow each resource to override the filtering by overriding labelsToIgnoreRegexes/annotationsToIgnoreRegexes
- Hide the labels and annotations both from the view and edit of Labels and DetailTop components
- Allow users to modify filtered labels and annotations by entering them manually

rancher/dashboard#556
2020-08-20 11:47:58 -07:00
Vincent Fiduccia 89dadef222
Bugs 2020-08-11 01:39:20 -07:00
Vincent Fiduccia 2f2625a471
Start supporting multi chart install 2020-08-04 11:10:13 -07:00
Vincent Fiduccia d2858c97b7
Just the actual changes from #929 2020-07-31 20:32:47 -07:00
Vincent Fiduccia 2a746d0503
Bugs, app detail, chart refresh, app nav 2020-07-29 23:02:57 -07:00
Vincent Fiduccia 3a5fbc1de3
Apps, bugs 2020-07-27 19:11:23 -07:00
Vincent Fiduccia 32487aabaa
App icons 2020-07-24 02:56:35 -07:00
Vincent Fiduccia e20daac693
revision int -> resourceVersion string 2020-07-24 01:08:03 -07:00
Vincent Fiduccia 8e4649010b
Split launch out, single vs mcm fixes, update products on schema change 2020-07-24 00:56:51 -07:00
Vincent Fiduccia bdc77008c6
App bugs 2020-07-24 00:56:50 -07:00
Vincent Fiduccia 464eac6d5c
Show helm logs after launching 2020-07-22 05:11:45 -07:00
Vincent Fiduccia d96f359aeb
More apps 2020-07-22 03:56:06 -07:00
Vincent Fiduccia 12202a0aa8
App launch wizard 2020-07-22 03:56:06 -07:00
Vincent Fiduccia 0206a088ca
More states 2020-07-22 03:55:42 -07:00
Vincent Fiduccia 3a6f3d07fc
Install Chart 2020-07-22 03:55:41 -07:00
Vincent Fiduccia d50ab5ec70
i18n support for type names, combine singular&pluralLabelFor 2020-07-22 03:55:41 -07:00
Vincent Fiduccia 5c666e4eee
Remove from store on delete that returns 204 2020-07-22 03:55:41 -07:00
Vincent Fiduccia 78430cfc00
Steve relationships, watch id/selector, start find by selector 2020-07-16 18:24:01 -07:00
Vincent Fiduccia 49447e96ff
Merge pull request #828 from codyrancher/masthead-update
Masthead update
2020-07-16 18:19:45 -07:00
Cody Jackson ece87754c5 Masthead update
rancher/dashboard#817
2020-07-15 14:24:29 -07:00
Vincent Fiduccia 34dc78ff32
Don't try to load server state in SPA where it doesn't exist 2020-07-15 11:09:56 -07:00
Vincent Fiduccia 75c3e9104e
More dynamic products, MCM 2020-07-15 00:11:51 -07:00
Vincent Fiduccia ba5fba343d
Product switcher 2020-07-10 11:26:00 -07:00
Vincent Fiduccia 174b39b982
Define products 2020-07-10 11:25:45 -07:00
Vincent Fiduccia 94cb6a49d7
Use individual lodash modules 2020-07-10 11:25:45 -07:00
Nancy Butler a54d5ac60f better KeyValue value view mode 2020-07-01 15:25:37 -07:00
Westly Wright 69452c7154
review feedback 2020-06-15 11:55:16 -07:00
Westly Wright 96c951f262
Adds client side validation
Supports basic scalar types string, int, bool, array etc
Supports custom validation logic

Adds initial service validations
Adds additional error processing logic to better parse Kubernetes api errors

Fixes some minor bugs found while writing custom validtion for service

rancher/dashboard#189
2020-06-15 08:57:35 -07:00
Vincent Fiduccia dad04cb9e3
Standalone Steve /v1/clusters support 2020-06-09 19:14:36 -07:00
Vincent Fiduccia 62462734ee
Steve vs Rancher types, types.js is only for type names 2020-06-09 16:09:06 -07:00
Nancy Butler 6d352f9beb do not clean yamls for create 2020-06-09 13:27:45 -07:00
Cody Jackson f109e771a5 Fixing cordon/uncordon on the detail page
There were two issues that were causing the 409s.
1. When using cluster/find the resource wasn't being watched
    so the resource was out of date.
2. Cloned resources don't get the updates either.

This change provides and option to to allow cluster/find to
watch the resource and when in VIEW mode the resource isn't
cloned so it can receive updates.

rancher/dashboard#679
2020-06-08 10:30:47 -07:00
Nancy Butler 58c269ec0d pr feedback 2020-06-08 08:55:43 -07:00
Nancy Butler 30632f1eb9 pod detail 2020-06-08 08:55:43 -07:00
Vincent Fiduccia 3a6a56aeba
multiline-ternary: never 2020-06-04 16:22:48 -07:00
Vincent Fiduccia d17f79576b
Rio fixes 2020-06-04 16:06:15 -07:00
Vincent Fiduccia 03d0f8d32b
Group by ns/project labels 2020-06-02 16:10:00 -07:00
lvuch 9855f34c21 543 2020-06-01 13:15:37 -07:00
Vincent Fiduccia d6bc32ffd4
Fold managedFields and sometimes status 2020-05-30 03:14:00 -07:00
Vincent Fiduccia 2265c3f34d
LoadDeps -> fetch 2020-05-30 03:14:00 -07:00
Vincent Fiduccia 31ea3b138e
Eslint changes new nuxt defaults want 2020-05-28 14:22:52 -07:00
Nancy Butler 1bde772cf2 yaml in generic detail 2020-05-26 09:47:40 -07:00
Vincent Fiduccia 71f3b8cdec
store.getters gets reassigned as stores register, so proxy steve's context.rootGetters so that it's always the full list of them 2020-05-20 15:26:04 -07:00
Vincent Fiduccia d8d3f8120f
Add existing record to store on create, not on edit 2020-05-19 17:54:01 -07:00
Cody Jackson 4e6632096e Making a number of OPA fixes
- Constraint YAML cancel button will take you back to the constraint
page.
- Updated the mastheads of constraint and template.
- Constraint Create as Yaml now works
- Constraints and templates can be cloned now.

rancher/rancher#523
rancher/rancher#622
rancher/rancher#398
2020-05-18 18:21:26 -07:00
Vincent Fiduccia 603b2fcd8b
Merge pull request #654 from vincent99/master
Queue updates from subscribe and apply once per second
2020-05-14 13:36:41 -07:00
Nancy Butler a26f61b904 use js-yaml parsing and resource proxy obj for yaml edit/clone
map _type->type in create-yaml

use link for yaml instead of parsing JSON
2020-05-14 12:52:01 -07:00
Nancy Butler 2ecc94b9e2 . 2020-05-14 12:51:28 -07:00
Vincent Fiduccia bdac6f07a2
Queue updates from subscribe and apply once per second 2020-05-14 12:43:48 -07:00
Nancy Butler 8d157dce80 pr feedback
fix private key on edit mode
2020-05-14 12:31:08 -07:00
Nancy Butler 9e95b3b9ad fix linkFor error on create retry
add/remove resources reactively
2020-05-14 12:31:08 -07:00
Vincent Fiduccia 654073a7bf
Merge pull request #649 from codyrancher/cm-404
Remove custom VueRouter.resolve
2020-05-14 03:09:44 -07:00
Vincent Fiduccia bb448af44c
Merge pull request #647 from codyrancher/cordon
Adding node cordon badging
2020-05-14 03:04:10 -07:00
Cody Jackson 36fe9c0b85 Adding node cordon badging
https://github.com/rancher/dashboard/issues/241#issuecomment-626209671
2020-05-13 17:52:47 -07:00
Cody Jackson ed1ea6373f Remove custom VueRouter.resolve
replace and push both work  as intended. You can
specify a a full url  if you don't want to have the baseUrl
prepended. Better yet, if you're navigating within
the app it's better to specify a location.

The custom resolve was actually breakinging a huge
amount of links in the app which was caused 404s if a
user attempted to open a link in a new tab. Most things appeared to work presumably because vue-router
was handling the page switches instead of the browser.

rancher/dashboard#643
2020-05-13 17:44:20 -07:00
Vincent Fiduccia 16a51b9045
Merge pull request #626 from codyrancher/new-ingress
Updating Ingress to implement new requirements
2020-05-13 12:02:43 -07:00
Cody Jackson dfb3ed18bd Updating Ingress to implement new requirements
rancher/dashboard#272
2020-05-12 16:38:13 -07:00
Vincent Fiduccia 4d7142e560
WindowManager for container logs and shell 2020-05-12 03:15:12 -07:00
Cody Jackson d165a1ba0d Adding t() translation as a Vue instance method
Similar to ember I want to be able to use the same method for
translating within templates and code. If we like this we
could replace the component and the directive since this can
easily be used in place of both of those.
2020-05-01 14:04:52 -07:00
Westly Wright a2ac4eb9cf
refactor all current action checks into instance methods
so they can be overridden
2020-04-27 12:28:35 -07:00
Westly Wright 22182006d8
Move can delete check to instance method and override cluster check
rancher/dashboard#530
2020-04-27 12:18:06 -07:00
Cody Jackson 00476e5cb9 Enabling no-console rule for eslint
This will automate checking for stray console errors so they don't need to be
checked for in PRs.
2020-04-24 10:37:10 -07:00
Cody Jackson 6d3543f111 App model specialization and OPA Gatekeeper menu items
When working on adding 'Add Constraint' and 'Add Template' to the
OPA Gatekeeper page I noticed that there wasn't a good way to
create custom models for specific chart app types. To fix this I went
ahead and made it so that we can load app models from the
'models/apps' directory and merge that with the 'models/app' model.
I think this will be useful for future apps like istio.

rancher/dashboard#391
2020-04-21 17:11:54 -07:00
Vincent Fiduccia f7aa3d29a1
Merge pull request #528 from codyrancher/ingress
Fixing up ingress pages
2020-04-21 14:10:37 -07:00
Cody Jackson 4014751a1b Fixing up ingress pages
- Fixed a number of unhandled exceptions
- Fixes some issues with rules vs backend property references
- Made pages more consistent with mocks

rancher/dashboard#272
2020-04-21 10:27:30 -07:00
Vincent Fiduccia 794025d506
Handle loading errors better 2020-04-20 14:13:09 -07:00
Westly Wright e67273da07
Only show yaml actions if yaml is available
rancher/dashboard#510
2020-04-20 10:07:51 -07:00
Cody Jackson 178d2cfe1a Switch consumption gauge percentage graphic
Switched the percentage circle over to the percentage bar to fit the new
design.

Also decoupling the Delete option from type-map/isEditable

rancher/dashboard#415
2020-04-15 13:23:07 -07:00
Vincent Fiduccia 26029bfad7
Merge pull request #516 from codyrancher/node-buttons
Enabling the ability to mark types and both immutable and unCreatable
2020-04-15 11:49:44 -07:00
Cody Jackson 8e15841d81 Enabling the ability to mark types and both immutable and unCreatable
This is to support special types like Node where the user shouldn't be able
to create the resource through normal means.

rancher/dashboard#507
2020-04-15 11:12:18 -07:00
Cody Jackson 2cc259d241 Remove new yaml serialization
Adding serialization to the scope of the currently pr has become
slightly unwieldy. I'm going to put the serialization into a separate
pr.
2020-04-15 10:00:09 -07:00
Cody Jackson fea71ffae2 Refactored YAML editing to better support parameters
We needed a way to support arbitrarily complex parameters in both
type and nesting level. As a temporary solution I enabled the user
to toggle between a key value component and a yaml editor.

To enable this I refactored ResourceYaml into a composable YamlEditor
component that can be used elsewhere.

rancher/dashboard#388
rancher/dashboard#380
2020-04-15 09:53:24 -07:00
Vincent Fiduccia 09df5918db
Move the rest of workloads into standard _resource 2020-04-14 16:16:11 -07:00
Vincent Fiduccia 22f4ef977b
Unify Resource(Detail|Yaml) headers and behaviors 2020-04-14 16:16:10 -07:00
Vincent Fiduccia da5f5b7a27
Rehydrate models in the page data with the correct store instead of the first one 2020-04-14 16:16:10 -07:00
Vincent Fiduccia 191cb7ca6e
Continue moving workloads 2020-04-14 16:16:10 -07:00
Vincent Fiduccia 4bc1321dab
Edit project of namespaces, bugs
- Edit project on namespace
- Certificate fields need to be multiline
- Create-edit-view creates metadata.(annotations, labels) automatically and cleans up on save if empty so you don't have to check if they're there.
- Form components should have a focus() instead of reaching into each other's $refs
- LabeledSelect takes and emits the value, not the `{label: x, value: y}` object.
- Resource names are almost never editable after create
- NameNsDescription takes a resource and manages setting name/ns/description on it itself.
- TextAreaAutoGrow should resize on file input
2020-04-14 16:16:10 -07:00
Vincent Fiduccia f569963666
Remove namespaceSuffixOnCreate option 2020-04-14 15:58:30 -07:00
Nancy Butler 654aa72163 workload action menu 2020-04-09 11:27:18 -07:00
Vincent Fiduccia dca9b3e689
Bugs 2020-03-27 16:47:47 -07:00
Vincent Fiduccia 6ea4938171
Fix workload filtering 2020-03-26 21:45:53 -07:00
Vincent Fiduccia 09c05e3541
Fix rehydrateAll for multiple stores 2020-03-24 18:02:49 -07:00
Vincent Fiduccia 676dbd22a9
Use userpreference to save prefs 2020-03-24 16:03:43 -07:00
Vincent Fiduccia 543bce9a40
Resource start/stop loop, intl key exists 2020-03-22 16:26:22 -07:00
Nancy Butler 582594dc24 fix WL save URL
fix WL return to list view

add schedule for cronjob

remove check for Table response
2020-03-20 15:17:23 -07:00
Vincent Fiduccia 72f803da00
Bugs 2020-03-19 01:19:17 -07:00
Vincent Fiduccia fab595d82f
Project picker/filter, standalone steve 2020-03-17 23:07:33 -07:00
Westly Wright c705dea50b
Fix console log in waitFor* and missing params for waitForCondition 2020-03-17 11:05:25 -07:00
Vincent Fiduccia 3742637779
Watch schemas, reorganize nav 2020-03-12 02:42:15 -07:00
Westly Wright 798f82e979
Fix edit issues after rebase 2020-03-11 10:11:14 -07:00
Vincent Fiduccia 9ab19afd64
Remove API_GROUP calls, server returns only preferred 2020-03-10 21:00:30 -07:00
Vincent Fiduccia a8d75a2091
nav-tree -> type-map, remove versions from all the types and filenames 2020-03-10 17:33:53 -07:00
Vincent Fiduccia 11cf66afcc
Fix socket reconnect, resource save() should return proxy that is in store 2020-03-10 13:45:05 -07:00
Vincent Fiduccia 39494daaeb
Fix live updating of nav tree 2020-03-10 13:43:32 -07:00
Vincent Fiduccia 1d81de8fc6
Move tree to vuex state 2020-03-07 03:42:40 -07:00
Vincent Fiduccia 684457db11
Better standaone Steve support 2020-03-07 03:42:40 -07:00
Westly Wright eeb0194ee7
Updates to get launching gatekeeper working again 2020-03-04 14:29:48 -07:00