Commit Graph

258 Commits

Author SHA1 Message Date
Richard Cox 4b1e0b427f Tidying up 2022-08-24 18:16:34 +01:00
Richard Cox 506edbb5a4 WIP Fix routing
- includes project/namespace and namespace pages
2022-08-24 14:57:21 +01:00
Neil MacDougall 06ef0fad78
Fix for 'Descriptio' field for Rancher roles not editable or 'viewable' (#6676) 2022-08-23 09:07:03 +01:00
Neil MacDougall 42a98b0adc
Show if there is an updated RKE Template available for a cluster (#6671)
* Add notification if update to an RKE template is available

* Add template name and upgrade info to cluster detail page
2022-08-22 15:58:09 +01:00
Richard Cox aed0a0b73d
Merge pull request #6642 from richard-cox/fix-local-nodes
Ensure local cluster kube node's can determine their cluster id
2022-08-22 10:49:11 +01:00
Richard Cox da6467d751 Fix reload of project/namespace page 2022-08-19 12:31:14 -07:00
Richard Cox 78cb3ae645 Port across tweaks made during dynamic plugin work
- harvester plugin can be bundled with the dashboard until dynamic work has been completed
- Nav directly to virt cluster dashboard instead of via /harvester-c-cluster
- Fix missing bottom border on virt cluster list, hide actions (as they're never populated)
2022-08-19 12:30:47 -07:00
Nancy Butler 770bc21e50 members routing 2022-08-19 12:29:52 -07:00
Nancy Butler 91effe56f5 rename dialogs 2022-08-19 12:22:13 -07:00
Richard Cox 257e579c6a Fix epinio pkg build
- Includes fixes for some dashboard component references
2022-08-19 12:21:24 -07:00
Nancy Butler e18bf6598e fixes for build-pkg 2022-08-19 12:21:24 -07:00
Nancy Butler a88ea801c9 routing maybe 2022-08-19 12:18:48 -07:00
Richard Cox ebea574766 Fix plugins 2022-08-19 09:46:40 +01:00
Neil MacDougall 5465b7d72c
Fix service shows pods from other namespaces (#6685) 2022-08-19 09:46:17 +01:00
Neil MacDougall e1c62c56aa
Add feedback that kube config has been copied to clipboard (#6693) 2022-08-19 09:46:03 +01:00
Richard Cox fc8395b67f Ensure local cluster kube node's can determine their cluster id
- We determine the cluster id via the node's `self` link
- Normally this is something like `k8s/clusters/c-m-274kcrc4/v1/nodes/nodeid`
  However for the local cluster this is only v1/nodes/nodeid`
- This meant that for local cluster nodes it's norman and mgmt nodes were unavailable
- From what i can this only affected it's ability to
  - determine it's role (though this had a working fallback)
  - determine if some actions were shown (and also execute them)
2022-08-19 09:46:00 +01:00
Catherine Luse c933a9ac73
Merge pull request #6529 from catherineluse/project-permission
Remove unneeded API call to get projects from local cluster
2022-08-03 08:08:49 -07:00
Catherine Luse 53d72ac54a Refactor namespace caching and filtering 2022-08-03 03:21:57 -07:00
pajuga 060de9f8b5 pnap cloud provider implementation 2022-08-02 01:03:42 +00:00
Catherine Luse 6f2d62824c Remove unneeded API call to get projects from local cluster 2022-07-27 14:53:56 -07:00
wujun 7f7bea94a7 HARVESTER: delete displayName RFC1123 validations 2022-07-27 16:15:57 +08:00
wujun 216cbd64c1 HARVESTER: validate image displayName 2022-07-26 22:58:48 +08:00
wujun 3a98d63a19 HARVESTER: fix image clone miss label 2022-07-26 22:58:42 +08:00
Catherine Luse c907821868
Merge pull request #6468 from catherineluse/rbac-namespaces
Hide auto-created RBAC namespaces
2022-07-25 11:07:10 -07:00
Catherine Luse 9f3fe043de Throw error if PSP template action error status is not 409 2022-07-25 08:54:50 -07:00
Catherine Luse c311b041af
Merge pull request #6416 from catherineluse/project-creation-error
Retry project creation after 409 error
2022-07-25 08:24:43 -07:00
Catherine Luse ce368ae686 Hide auto-created RBAC namespaces 2022-07-23 16:09:48 -07:00
Nancy 6759fe5d95
Merge pull request #6461 from mantis-toboggan-md/bugfix-namedisplay-error
fix roletemplatebinding models
2022-07-22 16:12:12 -07:00
Catherine Luse 84112efb05 Retry project creation after 409 error 2022-07-22 15:15:05 -07:00
Neil MacDougall dc1ccc3c6d
Performance: Cache pods by namespace (#6388)
* Performance: Cache pods by namespace

* Fix lint issues

* Address PR feedback
2022-07-22 22:53:28 +01:00
Nancy Butler 7500239360 fix roletemplatebinding models 2022-07-22 09:38:27 -07:00
Catherine Luse 1be9916aa7
Merge pull request #6396 from catherineluse/clusters
Only label imported clusters as imported
2022-07-21 15:42:36 -07:00
Jordon Leach a20902ab93
Edit actions for builtin roletemplates and global roles (#6429)
* Edit actions for builtin roletemplates and global roles

* PR changes
2022-07-21 13:42:30 -04:00
Sean-McQ 007dfe66cf
Merge pull request #6420 from Sean-McQ/fix/prometheusrule/form-validation/5820
Add in form validation to prometheus rule. Fix model validation error.
2022-07-21 13:42:15 -04:00
Sean 257f0a9de4 Add in form validation to prometheus rule. Fix model validation error. 2022-07-21 08:28:39 -04:00
Nancy 7618bb5fb8
Merge pull request #6398 from n313893254/pr
HARVESTER: Fixes v1.0.3 issues
2022-07-20 13:19:03 -07:00
Neil MacDougall 8f7dcef5d5
Ensure that we show empty machine pools (#6425)
* Ensure that we show empty machine pools

* Fix two bugs
- empty pool message would show twice in a single pool when there were two empty pools (missing id meant fake machines were all grouped together)
- ensure detail page for rke1 clusters show

Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-07-20 18:32:47 +01:00
Neil MacDougall 8907c6a1d3
Project delete namespaces (#6279)
* custom promptremove component for project and namespace remove

* Fix lin t

* Two tweaks
- Align
  - createnamespace button with ns age column
  - project action button with ns action button column
- Require confirmation to delete a project to match deleting a namespace

* Address PR feedback

Co-authored-by: Neill Somerville <neill.somerville@gmail.com>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-07-20 16:16:52 +01:00
Richard Cox 15a84b5776
Merge pull request #6397 from n313893254/cluster
HARVESTER: Fix Harvester clusters have no actions
2022-07-19 17:09:32 +01:00
n313893254 09b873fbd1 HARVESTER: Fix Harvester clusters have no actions 2022-07-19 20:16:33 +08:00
Bastian Hofmann d09778be40
Add ingressClassName field to ingress form and ingress list (#6340)
* Add ingressClassName field to ingress form and ingress list

Addresses https://github.com/rancher/dashboard/issues/6339

* Move ingressClass to details section on ingress detail page

Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
2022-07-19 10:57:06 +01:00
n313893254 5d3d781406 HARVESTER: Cluster member and cluster owner see inconsistent statistics
(cherry picked from commit f6e2b8f6a8db0a458e64a6d5ed97a8542fe11997)
2022-07-19 15:46:03 +08:00
Catherine Luse 9427509f1a Only label imported clusters as imported 2022-07-18 21:00:56 -07:00
Jordon Leach 8a09180184
Add registration tab to imported aks or eks clusters (#6226)
* Add registration tab to imported aks or eks clusters

* Add ready state check for eks and aks registration tabs
2022-07-18 11:09:21 -04:00
Alexandre Alves 92c81e6d14
provide interface to edit node name (custom name) for RKE1 nodes (#6367)
* provide interface to edit node name for RKE1 nodes

* prevent cluster member to go to edit because they don't have the correct permissions

* Switch to using standard done routing
- to support normal cancel/submit routing there's a number of 'done' style props/methods
- normally these are straight forward, in this case though we go back to the detail location of a different resource
- this should have worked already for cancel (doneOverride) but there was a regression
- to get this working for submit the `done()` was added which works with the components doneLocationOverride
- there's some tech debt in master atm, model doneOverride should be renamed. component doneLocationOverride should move to the model.
  Addressing this though would be troublesome though

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-07-15 18:50:46 +01:00
wujun ce8b92f048 HARVESTER: fix poweroff vm state 2022-07-15 09:16:08 -07:00
wujun c79e7d5792 HARVESTER: vm state enhancement 2022-07-15 09:15:53 -07:00
Nancy Butler 84dfff0ea8 websocket disconnect growl
websocket reconnect close growl

rm redundant websocket console error
2022-07-15 09:15:52 -07:00
Richard Cox 540581436b Revert "Display node IPs in cluster management list view. (#6320)"
This reverts commit aec4949b4f.
2022-07-15 10:15:38 +01:00
Catherine Luse 53674c0f9d
Merge pull request #6365 from catherineluse/namespaces
Project/namespace list updates when project is added or removed
2022-07-14 07:22:13 -07:00
Richard Cox 22e4d3479f WIP build process changes & comment tidy up 2022-07-14 14:00:55 +01:00
Shavindra aec4949b4f
Display node IPs in cluster management list view. (#6320) 2022-07-14 10:40:01 +01:00
Catherine Luse 506b587f9b Project/namespace list updates when project is added or removed 2022-07-13 17:57:00 -07:00
Richard Cox f6e9658eed Fix reload of project/namespace page 2022-07-13 18:32:31 +01:00
Richard Cox 3beacf3ff1 Changes required to support switching between harv clusters - Totally remove old plugins before starting to load a new one - Forget routes associated with removed plugins (to confirm with replaced 2022-07-13 18:32:26 +01:00
Richard Cox d451c96fe4 Harvester cluster list fixes - Don't force subrows in harv cluster list - this fixes the bottom border for rows without status's - There's no actions, so hide checkbox and action columns - Also removes some harvester specific code in non-harvester world 2022-07-13 18:31:07 +01:00
Richard Cox 412f93bf53 Fix case where the plugin is built in - also fixed some linting 2022-07-13 18:30:49 +01:00
Richard Cox a819cf28f4 Fixed routing issue See description in default layout - If the cluster changes hide page content until we've reach the new page location - This resolves issues where the old page's content were showing (and in harv case throwing errors) when the cluster is changed and we haven't reached the new page yet Also - Fixed some error messages in home page given `Header` requirements - Fixed bad routes (like junk resource) when viewing plugin pages 2022-07-13 18:30:44 +01:00
Richard Cox 3e3568e1ca Fix refresh in strange cases. Redirect correctly 2022-07-13 18:30:39 +01:00
Richard Cox 298af542a5 Updates required to prove out loaded from external harvester - Start of failover / new tab 2022-07-13 18:30:35 +01:00
Richard Cox fe2cf50677 Multiple fixes - bring back click to go to cluster (covers case where cluster A pkg is loaded when going to cluster B pkg) - fix refresh - improve routing for cluster and virt cluster managers - improve loading of virt cluster list - add code to determine pkg version and url 2022-07-13 18:30:32 +01:00
Richard Cox 48b93be60a Allow plugin managers to claim routes that are associated with plugins yet to be loaded 2022-07-13 18:30:28 +01:00
Richard Cox 8377fbc69d Click on harvester link to load plugin (currently skipped) - Also update harvester package info (and fix plugin metadata) 2022-07-13 18:30:15 +01:00
Neil MacDougall 5bca2ca529
Fix cluster pod count on home page (#6358) 2022-07-13 17:34:11 +01:00
Nancy Butler 4a8a11a12c members routing 2022-07-12 18:40:17 -07:00
Nancy Butler 10c1accdc0 rename dialogs 2022-07-12 10:59:34 -07:00
Richard Cox bee5f86c2c Fix epinio pkg build
- Includes fixes for some dashboard component references
2022-07-12 10:59:34 -07:00
Nancy Butler 9f37ab0e77 fixes for build-pkg 2022-07-12 10:59:33 -07:00
Nancy Butler 4dfeb7c291 routing maybe 2022-07-12 10:59:32 -07:00
Neil MacDougall 886238dea0
Errors are not displaying when standard user attempts to create a project with non-default Pod Security Policy (#6278) 2022-07-08 17:40:20 +01:00
Neil MacDougall a73003018e
Fix snapshot location for rke1 clusters being empty (#6303)
* Fix snapshot location for rke1 clusters being empty

* Fix lint issues
2022-07-08 17:39:10 +01:00
yuzeng 327a9d2c20 Harvester: Fix missing liveMigrate 2022-07-08 18:34:50 +08:00
n313893254 127cf264e3 HARVESTER: Fix edit host system labels 2022-07-08 18:34:50 +08:00
wujun 4ed001967a HARVESTER: fix clone issue 2022-07-08 18:34:50 +08:00
wujun 7c29f779c7 HARVESTER: disable delete defaultVersion 2022-07-08 18:34:49 +08:00
n313893254 1309e62227 HARVESTER: Fix rebase error 2022-07-08 18:34:49 +08:00
wujun ded011302c HARVESTER: fix error title 2022-07-08 18:34:49 +08:00
Sean ddab180ecc Adds in form validation mixin, error reporting on inputs, a few examples 2022-07-07 13:18:43 -04:00
Bastian Hofmann 4a7ad7a03d Service detail page: Show loadbalancer ip or hostname from the service status, if the spec field is empty
Adresses https://github.com/rancher/dashboard/issues/6245
2022-06-29 12:13:45 +02:00
Neil MacDougall fdc85696c9
Improve machine pools when there are a large number of machines (#6132)
* Improve cluster details machne pools information

* Remove unused code
2022-06-23 09:59:06 +01:00
Richard Cox f50af042cc Ensure path is shown when listing ingress rules
- Regression brought in by changes to `shell/models/networking.k8s.io.ingress.js` in 50aed3eb9e (diff-7a50af77ca2d43ff68be7e5f06102af2f4468473e27874480c2325a1fe1faa81R7)
- Breaking change included spliting out path calculation into separate function
- function got the path totally wrong
2022-06-20 11:29:01 +01:00
Shavindra 9888d4ef2e
Set confirmRemove getter for deletion of clusters. (#6158) 2022-06-13 17:58:42 +02:00
codyrancher b00bb18b76
Merge pull request #6127 from codyrancher/timeout-messaging
Increase the timeout and provide better messaging for the timeout when creating clusters
2022-06-09 09:03:05 -07:00
Alexandre Alves 83edadda2b
Multiple issues in Fleet (Dashboard and gitRepo Graph views) (#6008)
* add check for missing props so that ui doesnt break + add missing state definition

* Fix extra space.

* Fix spacing.

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Shavindra <Shavindra@users.noreply.github.com>
2022-06-09 10:12:06 +01:00
Cody Jackson a406a2b3e0 Increase the timeout and provide better messaging for the timeout when creating clusters
rancher/dashboard#6010
2022-06-08 13:41:05 -07:00
Richard Cox bfd5506a5f Remove double line on Cluster Management list action menu
- double lines (and other things) are normally handled when running through the base availableActions
- models then provide an _availableActions getter for specific actions
- for the cluster provisioning model it was override availableActions
2022-06-08 16:32:24 +01:00
Neill Somerville 5b71ac100c
Merge pull request #5988 from neillsom/neill/5900/cluster-delete-multiple-times
Prevent cluster management from allowing cluster deleting multiple times while cluster is transitioning
2022-06-07 16:24:46 -07:00
Alexandre Alves 1f7cb4bc79
Cluster Manager and Cluster Dashboard show different age for same cluster (#5992)
* create custom model prop for provisioning.cluster in order to display correct age of a cluster in the case of an upgrade in rancher version

* simplify logic by setting creationTimestamp prop on resource-class model

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2022-06-06 14:23:25 +01:00
Neil MacDougall 6d015116e2
Workload events tab (#6058) 2022-06-06 13:20:23 +01:00
Neil MacDougall 362579eeea
Fix PVC expansion and add to action menu (#6072)
* Fix PVC expansion and add to action menu

* Localize action name
2022-06-06 13:19:30 +01:00
Shavindra 65a115fd8e
Confirm cluster delete with cluster name - 5780 (#5887)
* Confirm cluster delete with cluster name.
2022-06-06 09:25:24 +01:00
Catherine Luse 250971e9cb
Merge pull request #6078 from catherineluse/ecr
Re-enable RKE2 encryption key rotation
2022-06-03 08:02:07 -07:00
Catherine Luse 6693c588c0 Re-enable RKE2 encryption key rotation 2022-06-02 12:19:57 -07:00
Shavindra cfd6f6cf82
Display IP Address on RKE2 cluster nodes #5735 (#6062)
* Add IP address to RKE2 cluster machine pools list.
2022-06-01 12:32:50 +02:00
Neil MacDougall 32610d4a72
Use patch when updating storage class default (#6049) 2022-05-31 18:52:01 +01:00
Catherine Luse 1fb8fee218 AlertmanagerConfig detail page renders properly 2022-05-26 14:30:27 -07:00
Alexandre Alves fdd90feecb
resourceQuota: Address issue where removing existing quotas wasn't being reflected on the saved obj (#5976)
* add _replace=true query param to projects PUT request in order to update nested object properties of the object correctly on the database

* clean up 'replace' logic to remove unnecessary step

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2022-05-24 14:00:36 +01:00
Alexandre Alves 4027d90a90
`Save RKE Template` option is seen for a Std user who is cluster owner (#5973)
* update permissions check for action 'save RKE template' on cluster provisioning list view

* add check for action 'saveAsTemplate' on norman cluster counterpart

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-05-24 11:36:36 +01:00
Shavindra f912874410
Add IP address to cluster machine pools list. (#5869)
* Add IP address to cluster machine pools list.
2022-05-20 13:26:05 +01:00
Neill Somerville 518cf275d8 update candelete logic 2022-05-19 18:01:11 -07:00
Neill Somerville 416cc94ece update canDelete to hide delete option once cluster is transitioning 2022-05-18 22:47:52 -07:00
Neil MacDougall df6ab9644c
Hide Mgmt Cluster type in Cluster Management Advanced group (#5840)
* Hide Mgmt Cluser type in Cluster Management Advanced group

* Update management.cattle.io.cluster.js
2022-05-17 12:07:19 +01:00
Alexandre Alves 1e3110f9e6
Fleet request: more real time visibility (#5938)
* Fleet Bundle Deployment Chart

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-05-12 16:20:08 +01:00
Alexandre Alves d59743d5ee
Project is created with resource quota even after the quota is removed (#5841)
* clear up resource quota if removed individually from UI

* finish logic to clear project resourceQuotas

* fix issue where data was not being captured corretly from remove event coming from ArrayList in ResourceQuota component

* PR review changes

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2022-05-12 15:05:16 +01:00
Richard Cox 95166ae3dc Fixes after rebase 2022-05-10 10:04:04 +01:00
Richard Cox 65adfd41d7 Port missing isSingleProduct plumbing
- this was in the epino-dev world to support standalone world
2022-05-10 10:04:04 +01:00
Richard Cox 50aed3eb9e New Epinio pkg, and updates to dashboard (core, pkg process) (#5637)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* disable consent banner text overflow wrap

* add additional metadata to workload detail view

* minor css tweak

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Add annotation to stop upgrades for managed charts

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Use correct name for Network Attachment Definition Resource (#5579)

* Fix heading levels in Account and API keys page (#5563)

* SortableTable Performance: Optimise row mouse over/leave handlers (#5550)

Co-authored-by: Richard Cox <richard.cox@suse.com>

* Keep the check for fleet bundle ID

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

* warn on adding windows node to cutom cluster

* Display custom error message when login fails. (#5582)

* change rke2 upgradeStrategy to 1 concurrent controlplane and worker (#5580)

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>

* update endpoint display, fix ready status for daemonset type

* Fix Sortable Tble SSR (#5599)

* Sortable Table: Fix broken props to slot (#5600)

* expanded error check to include simple type

* fixed error check logic

* Fix async buton wobble with spinner (#5586)

* Add Pod restart count to workload detail page

* Can scale workload from workload detail page

* Enable source map in Nuxt/Webpack configuration for debugging (#5590)

* Move hardcoded values for roles in his own config file

* Allow to set default values also for Clusters and Namespaces

* Allow local cluster to be hidden

* Initialize always auth errors as empty list

* Add translation for snapshot group

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Enable s3 storage in rke2 cluster config

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Group by snapshot location

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* After rejig

* Prevent injection of malformed errors in the generic resource form component

* New Epinio pkg, and updates to dashboard (core, pkg process)

* Remove epinio-select

* correct @shell// reference

* Fix filtering issue
- store/index suffered a bad merge

* Add hide-local-cluster to the settings page

* Fix node table column sorting (#5611)

* Fix issue where private registry auth can be changed in view mode (#5617)

* Change title of support block on home page when custom link set (#5547)

* Tidying up

* Add feedback to the copy kubeconfig header button (#5628)

* Add feedback to the copy kubeconfig header button

* Minor improvement

* Get rke3 and k3s latest versions from settings (#5608)

* Revert previous change and avoid watching spoofed types

* Move the group-by string to computed prop

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Use computed instead of method, use Array.isArray instead of lodash isArray

* Ensure auth provider note appears consistently within form instead of new floating button section
- some auth providers already had this
- possibly better ux to add to top, but that area is already busy

* Fix bug where delay loading only worked on scroll with live columns (#5635)

* Inconsistencies with Cluster metrics across the UI (#5542)

* fix num pods being displayed on the homepage cluster list + set mem to gib for ram on homepage cluster list

* show total number of nodes rather that useful nodes in cluster dashboard view + remove reserved info for CPU and MEM in cluster table in homepage + fix pods usage in nodes list view + clear console logs

* cleanup

* correctly wire PodsUsage as a formatter + display N/A when usage is zero in nodes list values for CPU, MEM, PODS

* add loader icon to PodsUsage formatter

* add string translation to n/a in percentageBar formatter

* add delayedLoading to PodsUsage formatter

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro-2.local>
Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>

* Enable filtering by project name on project/namespaces paeg (#5636)

* Fixes post merge

* Rename core-store to dashboard-store
- contains TODO: RCs to resolve

* Tidy up/imporve nav hooks

* Fix some todo's, epinio routing product

* refactor detailtop

* Hide NeuVector product if `cattle-neuvector-system` does not exist
- As per request at https://github.com/rancher/dashboard/issues/5556#issuecomment-1098270110
- fixes #5556
- alternative to #5604

* Fix a number of areas where the sticky footer consumes large amounts of space
- Fixes #5643
- Mostly caused by non-standard ways the CruResource was being used

Effected Areas / Places to test
Note - Only need to visit pages, shouldn't need to make any changes to resources
- Cluster create/import screens (types, credentials (create new / existing), import, rke2)
- Auth providers (shortest form is keycloak saml)
- Create/Edit resource types - project, namespace, some random others
- Create/Edit resource types that have sub-types (secrets, workloads, OPA Gateway / Constraints)

Also Addressed
- Only show top border of the footer if CruResource is in edit view
- Fixed hide of errors

* Fix conditional showing of Group `Assign To` and `Refresh` buttons

Buttons should only show if
- There is a non-local auth provider enabled
- The user has the correct permissions for the relevent action

Fixes #4897

* Fix live expiry badge used on api keys table

* Hide local cluster in LandingPagePreference and api key (token) list

* HARVESTER: Fix Grafana metrics reload failure

* Address some TODOs

* minor fixes

* Rename i18n to l10n, make use of default folders

* Improve adding multiple routes

* Config map view inconsistent for binary data (#5602)

* Fix Config map view inconsistent for binary data

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro-2.local>

* check for existance of limit prop so that deleting a project doesnt silently fail (#5661)

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>

* Changes following review

* Fix CruResource `Edit as Yaml` feature
- ensure sticky buttons are stuck at bottom
- doesn't apply sticky buttons to direct `Edit as Yaml` feature outside of CruResource

* Fix navigation & ns filter bugs
- nav from explorer to epinio cluster (errors in console)
- nav from epinio cluster to explorer (ns filter broken)

* Remove epinio ns and config validation
- this was the process that will be replaced with Sean's work
- it's suffered bit rot and was broken after the merge
  - not running in places
  - it visually broke the labelled select (in multiple places)

* remaining todos

* fixes following validation change

* fix bad yarn lock file

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Neill Somerville <neill.somerville@gmail.com>
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
Co-authored-by: Shavin Fonseka <Shavindra@users.noreply.github.com>
Co-authored-by: Alexandre Alves <97888974+aalves08@users.noreply.github.com>
Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>
Co-authored-by: Catherine Luse <catherine.luse@gmail.com>
Co-authored-by: Giuseppe Leo <giuseppe.leo@suse.com>
Co-authored-by: cnotv <giuseppe.leo@suse.de>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro-2.local>
Co-authored-by: n313893254 <n313893254@126.com>
# Conflicts:
#	shell/assets/translations/en-us.yaml
#	shell/components/CruResource.vue
#	shell/components/ResourceDetail/Masthead.vue
#	shell/components/ResourceList/Masthead.vue
#	shell/components/SortableTable/index.vue
#	shell/components/form/KeyValue.vue
#	shell/components/form/LabeledInput.vue
#	shell/components/form/NameNsDescription.vue
#	shell/components/form/NotificationSettings.vue
#	shell/components/formatter/PodsUsage.vue
#	shell/components/nav/Header.vue
#	shell/config/product/neuvector.js
#	shell/detail/workload/index.vue
#	shell/edit/provisioning.cattle.io.cluster/CustomCommand.vue
#	shell/models/cluster.x-k8s.io.machinedeployment.js
#	shell/models/harvester/kubevirt.io.virtualmachineinstance.js
#	shell/models/workload.js
#	shell/pages/c/_cluster/settings/banners.vue
#	shell/plugins/steve/actions.js
#	shell/store/type-map.js
2022-05-10 10:04:04 +01:00
Richard Cox 25acc1f8eb Plugins: Rejig files to new shell locations (#5623)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

* After rejig

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
2022-05-10 10:04:02 +01:00