Commit Graph

456 Commits

Author SHA1 Message Date
Richard Cox 9b5d420b77 Changes given real cluster tests
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....
2024-12-11 17:27:56 +00:00
Evgeniya Vashkevich 93a0b4750f
Fixed cluster page throwing error if imported cluster is broken (#12798) 2024-12-05 11:13:36 -08:00
Evgeniya Vashkevich bb1f8c2097
fixed some console errors for standard user (#12479) 2024-12-03 11:14:59 -08:00
Richard Cox 475aaef2eb Merge branch 'pagination-home-page' into pagination-cluster-explorer 2024-12-02 17:45:16 +00:00
Nancy e64e3da1f8
Fix editing rke2/k3s clusters in 'pending' state (#12694)
* fix cluster isImported check to account for clusters in the process of provisioning

* remove tests
2024-12-02 08:31:02 -08:00
Alexandre Alves c4805dffd1
fix issue with clone of global role with inheritedClusterRoles (#12707)
* fix issue with clone of global role with inheritedClusterRoles

* add e2e test
2024-11-28 16:04:56 +00:00
Alejandro Ruiz 8e76737596 Fix empty GitRepos list on Cluster details 2024-11-20 11:33:34 +01:00
Richard Cox 1f61ce53cf - Fix issue where list components containing PaginatedResourceTables would incorrectly fetch all resources anyway
- convert reminaing storage lists
2024-11-15 15:40:00 +00:00
Richard Cox 24249f9cc1
Merge pull request #12521 from aruiz14/rework-gitrepo-status-resources
Use BundleDeployment status to calculate GitRepo resources
2024-11-14 15:54:11 +01:00
Francesco Torchia eac3deaa4b
Add harvester features
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:36 +01:00
Nancy 6f52e59b07
Fix editing local rke1 and eks clusters (#12583)
* rework isImported and provisionerDisplay cluster properties

* refactor cluster unti tests to account for isImport property refactor

* update CLI e2e test to expect successful download
2024-11-12 14:11:00 -08:00
Alejandro Ruiz 046eb46009 Use BundleDeployment status to calculate GitRepo resources 2024-11-06 16:31:53 +01:00
Richard Cox 78df731878
Merge pull request #12404 from richard-cox/fix-project-description
Fix for missing project/namespace description in project/namespace list
2024-10-29 19:27:19 +01:00
Richard Cox 75df179125 Lo-bar fix for missing project namespace
- better to change extend class to Steve instead (but more risky)
2024-10-29 15:18:52 +00:00
Evgeniya Vashkevich 885f0a8cde
[FIX] Fixed validation on Gitrepo page (#12386) 2024-10-29 08:02:39 -07:00
Richard Cox df953cd07d
Merge pull request #12375 from richard-cox/fleet-improvements
[2.10] Fleet Improvements
2024-10-29 13:43:06 +01:00
Neil MacDougall 38c9ed997b
Improve parsing of cluster badge color (#12379) 2024-10-29 08:55:58 +00:00
Richard Cox 0aa96329ed
Merge pull request #12317 from richard-cox/helm-app-values
[2.10] Update Helm App Values Approach
2024-10-29 09:51:57 +01:00
Richard Cox 965833d12d Update following review
- avoid 0 showing as `?` - e.g. `0 || ?`
2024-10-28 16:19:56 +00:00
Richard Cox df9c7ad684 Fleet Improvements
- Performance Fix
  - go back to using git repo status cluster ready / desired stats instead of costly clusterResourceStatus (churn can call this a LOT)
  - Improve load time of fleet cluster detail page
- Bug Fix
  - Using targetClustersReady and targetClusters doesn't seem to work in some cases, revert back to previous
- General Fixes
  - Fix weird fleet cluster list column alignment
2024-10-28 14:05:45 +00:00
Richard Cox a61f832a36 Fix issue where socket updates to helm app wiped cached values
- socket updates remove all properties from an object on update, this included `_values`
- switch to more solit / response secrets getter instead

Top notes
- Helm app references secret by owner refs
- helm repo update action supplies helm app update and receives references to helm operationin response
  - This creates a new secret and updates the helm app's secret owner reference
- ui receives socket up to helm app containing new secret owner ref
2024-10-28 12:03:45 +00:00
Richard Cox b7326da042 Fix `Expires` column sort order
- sort order should be expired --> expiring --> never expires
- ensure expired 0 is not in the same bucket as never expires
2024-10-24 14:01:51 +01:00
Richard Cox bbbe9267dd
Merge pull request #12335 from m-ildefons/rancher/wip/fix-cc-expiry-0
Fix cloud-credential expiry display
2024-10-24 14:34:38 +02:00
Phillip Rak 43a3bfdab9
Merge pull request #12326 from rak-phillip/bugfix/12243-deployment-volume-mounts
Clone `defaultContainer` to apply defaults for workload forms
2024-10-23 07:16:41 -07:00
Moritz Röhrich 22ce9f9343
Fix cloud-credential expiry display
Fix cloud-credential being displayed if the expiry annotation has a Unix
timestamp of "0".

When Rancher is upgraded and there are cloud-credentials for a Harvester
cluster without a token (e.g. when the token expired and purged or
was manually removed), the cloud-credential's expiry will be updated
with a Unix timestamp of "0" (i.e. as if the token had expired at 00:00
AM on Jan 1st 1970), since the actual time of expiry of the token can
not be determined.
This fix makes the UI display such a cloud credential correctly as
"expired".

Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
2024-10-23 13:06:59 +02:00
Francesco Torchia 96668a0ca9
Merge pull request #12252 from torchiaf/12221-architecture-labels
Lowercase architecture labels
2024-10-23 12:32:00 +02:00
Phillip Rak 5223af8d0d Clone `defaultContainer` when applying defaults
`defaultContainer` retains its values even after navigating away from the workload create form. This behavior was not observed in Vue2, and it requires further investigation to fully understand.

To address this issue in the short term, using `structuredClone` to create a deep copy of defaultContainer ensures that modifications to the container do not persist after navigating away from the form.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-22 14:26:30 -07:00
Richard Cox cf7ac08522 Changes after review
- force fetch of secrets on visit on install app/chart detail/app detail page
- add somre jsdoc


Note
This shouldn't break extensions UNLESS extension developers have implemented
custom chart install/upgrade processes. Existing extensions like kubewarden
or elemental are fine (they redirect to actual chart install process rather
than have their own)
2024-10-22 16:54:55 +01:00
Richard Cox 55bbc2ddac Helm App Values Change 2024-10-22 10:09:55 +01:00
Richard Cox 77e91a4185
Merge pull request #12039 from richard-cox/fix-node-drivers
Fix two node driver based issues
2024-10-21 14:50:39 +02:00
Richard Cox 69e1b2608e
Merge pull request #12157 from richard-cox/harv-creds-2.10
[2.10] Show Cloud Credential Expiration information for Harvester Creds, add actions to renew
2024-10-18 18:15:00 +02:00
Giuseppe Leo ab2244cf8e
Clone of global admin role not a 100% carbon copy (#12235)
* Add comment about the logic behind the goToClone methods

* Remove verbs key manipulation and map verbs with methods

* Add tests to ensure verbs are not manipulated

* Fix linters
2024-10-18 17:45:31 +02:00
Phillip Rak 8685e05f47 Use optional chaining on `machineSelectorConfig`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-17 09:29:35 -07:00
Evgeniya Vashkevich 614826f92b
[FEAT] Added support for cluster-repo-name label for app upgrades (#12268) 2024-10-16 12:16:06 -07:00
Francesco Torchia 8c248f59aa
Lowercase architecture labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-10-16 10:55:37 +02:00
Richard Cox a51e75310a Fix cloud cred annotation collection
- this magically worked before because const y = ['a']; this.x[y] --> this.['a']
- if anything else was added to the array it would fial
2024-10-11 12:12:27 +01:00
Richard Cox af90846cf6 Update & Improvement
- Update label with latest value
- Improve fn that updates cloud cred fn
  - make it more efficient when fetching cluster
  - add consistent error handling
2024-10-11 11:46:51 +01:00
Nancy 5e55136807
fix ember provider query param (#12177) 2024-10-08 15:20:58 -07:00
Richard Cox 3e64826022 Ensure spacing is correct when there is only a cloud cred or description, update label name 2024-10-07 12:55:03 +01:00
Richard Cox 94c86f4a0c Split out banner text, fix cluster banner text 2024-10-07 10:40:27 +01:00
Richard Cox ffa7bfce1e Tweaks 2024-10-07 10:40:16 +01:00
Richard Cox 96172607b3 Show Cloud Credential Expiration information for Harvester Creds, add actions to renew 2024-10-07 10:40:09 +01:00
Richard Cox 20e592aef1 Handle more accurate schemaDefinition cache updating error response
- i saw some cases where 500 recovers, so keeping that in there
2024-10-04 15:26:47 +01:00
Nancy f28214f9c6
Vue3 fix workload storage (#12070)
* fix workload storage codemirror not rendering

* workload storage default component  yamleditor instead of codemirror

* test editing projected vols

* add container mount test

* fix lint

* refactor deployment tests to improve retry-ability

* add to workoad storage tests and improve retry
2024-10-03 15:00:34 -07:00
Phillip Rak d4c84f4592 Default to empty object for missing `machineSelectorConfig`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-27 13:38:17 -07:00
Richard Cox 4d4c06f624 Merge pull request #11984 from richard-cox/node-driver-fixes
Fix two node driver based issues
2024-09-26 16:15:57 +01:00
Alexandre Alves 4c756e9a08
Fix Vue3: CIS Benchmark issues (#11991)
* add missing translations in clusterscan edit view + fix broken links in clusterscan + update clusterscan model to apply defaults on edit/create view instead of model because of schema diet changes

* change mode for realMode
2024-09-26 09:50:45 +01:00
Phillip Rak 0d374f678c Fix sorting for user retention fields
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-24 13:56:53 -07:00
Cody Jackson 11a586d568 Fixing a reactivity issue in workload.js model where we were using $set instead of just assigning to an already reactive object. 2024-08-22 16:09:55 -07:00
cnotv ff08d80e0e Lint: Manually fixed issues related to vueApp variable added by the script 2024-08-22 16:07:03 -07:00
Cody Jackson 9b829c55ea Ran `yarn lint --fix` 2024-08-22 16:05:36 -07:00
Cody Jackson d5ce4fff2e Run the vue3 migration script
Commands run:

➤ yarn migrate
➤ git clean -fdx
➤ nvm use 20
➤ yarn
2024-08-22 16:05:36 -07:00
Siva Kanakala 321b03ad1e update unit tests 2024-08-22 13:03:38 +05:30
Siva Kanakala 3f6d99d533 fix lint 2024-08-22 12:56:41 +05:30
Siva Kanakala 3554d4923e fallback handling in replicaSetId method 2024-08-22 12:56:41 +05:30
Siva Kanakala c630808b46 fix-grafana-links-deployment 2024-08-22 12:56:41 +05:30
Giuseppe Leo a2304f462e
Remove or replace all the @nuxt libraries (#11302)
* Update checkout to v4 and bump Node to 16

* Update GHA workflow migration paths

* Removed named exports from Vue files

* Move code outside of the Vue app element

* Remove @nuxtjs/eslint-config-typescript

* Remove @nuxt/types and @nuxt/typescript-build

* Fix import issue with http-proxy-middleware

* Replace @nuxtjs/axios with axios and axios-retry

* Remove @nuxtjs/webpack-profile

* Fix linting issues after Nuxt webpack removal

* Pin resolution for glob after rebase

* Update yarn.lock after rebase

* Fix issue with rancher-components

* Bump rancher-component GHA config to match rebase changes

* Generate yarn file

* Add dependency

* Remove nuxt global var in app template

* Pin version for babel/plugin-proposal-private-methods
2024-08-08 15:31:44 +02:00
Richard Cox cef4876c26 Fix prv/mgmt cluster description issues
See #11588 for details

- mgmt cluster is a steve resource, so can inherit the steve model
  - this resolve the issue of mgmt cluster not having a description
- prv cluster uses it's own description, falls back on mgmt description
  - custom stuff on home screen not needed
  - fixes description on detail page of legacy clusters
- remove description from hybrid model
  - this contains steve references and isn't needed
2024-08-06 16:07:22 +01:00
Evgeniya Vashkevich 6d5a7e923e fixed labels 2024-07-03 14:05:13 +01:00
Evgeniya Vashkevich 7136e0a9fc [FIX] Fixed some issues with driver pages 2024-07-03 14:05:13 +01:00
Jordon Leach bd70d4ca56
Switch context for generic oidc provider to the genericOIDCConfig type (#11326) 2024-07-02 08:20:47 -04:00
Phillip Rak a31eaa90e4 Use labels for user menu actions
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-27 16:29:25 -07:00
Jordon Leach c6a56aa60e
Add generic OIDC provider support (#11112)
* Add generic oidc provider support

* Add oidc provider icon - filter genericoidc provider - update tests

* Automatically set scope - disable advanced inputs initially

* Update oidc login button with unique display name

* Remove default scope for oidc provider

* Add acrValue - move scope inputs

* Clean up validation - update wording - remove rogue c&p

Fix unit tests

* Remove required authEndpoint input

* Require authEndpoint for keycloakoidc - clean up validation
2024-06-26 13:31:01 -04:00
Phillip Rak c746601593 Don't display a value for `Disable After` for disabled users
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:48 -07:00
Phillip Rak a47c7ea7aa Update user state display labels
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:48 -07:00
Phillip Rak f404873ffe Stop displaying relative time when date has lapsed
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:48 -07:00
Phillip Rak 5052ce9f4b Customize suffix for `userLastLogin`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:48 -07:00
Phillip Rak ab0481e5f6 Add new fields to user details getter
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:47 -07:00
Phillip Rak 630d96ca5b Add User Disabled In & Deleted In columns
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:47 -07:00
Phillip Rak 75cbdda5ba Add Last Login to users table
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:47 -07:00
Francesco Torchia 031f6e9217
Merge pull request #11223 from torchiaf/10831-provisioning-architecture
Show empty architecture during cluster provisioning
2024-06-14 09:57:28 +02:00
Francesco Torchia 61ad3fec72
Show empty architecture during cluster provisioning
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-06-13 11:50:47 +02:00
Richard Cox 1cc92acf8a Multiple changes
- Add unit test to cover basic functionality and `load` mallarky
- Fix issue where another SteveModal property was nuked
- Improve `private` use
2024-06-07 14:43:19 +01:00
Richard Cox 9182258954 Fix issue where SteveSchema lost its local properties after being updated over socket 2024-06-07 14:43:18 +01:00
Richard Cox a5661c575f
Remove usages of findAll for types supported by server-side pagination (#10795)
* Changes for new design
- New visuals
- Pagination controls --> load more
- finished testing of label select with pagination off

# Conflicts:
#	shell/edit/provisioning.cattle.io.cluster/__tests__/Basics.tests.ts

* Changes following review

* Update Node list to support server-side pagination
- Setup pagination headers for the node type
- Define a pattern for fetching custom list secondary resources
- Major improvements to the way pagination settings are defined and created
- Lots of docs improvements
- Handle calling fetch again once fetch is in progress (nuxt caches running request)
- Validate filter fields (not all are supported by the vai cache
- General pagination fixes

* Lint / test / fixes

* Improvements to configmap e2e test & Improve pagination disabled

* Beef up validation

* Fix missing name column in non-server-side paginated node list

* Fix PR automation actions
- fix syntax
- catch scenario where a pr has no fixed issue

> There's duplication between files, see https://github.com/rancher/dashboard/pull/10534

* CI bump

* Fixes post merge

* Wire in 2.9.0 settings for server-side pagination
- Everything is gated on `on-disk-steve-cache` feature flag
  - There's a backend in progress item to resolve a `revision` issue, until then disable watching a resource given it
- Global Settings - Performance
  - Added new setting to enable server side pagination
  - this is incompatible with two other performance settings

* Integrate pagination with configmaps in cis clusterscanbenchmark edit form
Also
- improved labeled select pagination
- gate label select pagination functinality on steve cache being enabled

* - harvester machine-config
- project monitoring (and bug fixes)

* Disable workload screen if vai cache is on
- temp step until we get new overview

* TODOs and TEST

* Conditionally remove fetch of all secrets from SelectOrCreateAuthSecret

* TODOs and TEST

* Update SimpleSecretSelector
- only used in monitoring.coreos.com.alertmanagerconfig context

* View and Edit ingress - secrets

* node detail page - pods list

* Backup/Restore: Secrets (WIP)

* Backup/Restore: Secrets, and other usages of SimpleSecretSelector / SelectOrCreateAuthSecret

* Edit: Service account

* Add comments for remaining items

* Paginate Secret selection for logging providers
- Allow `None` option in Paginationed LabelSelect
- Optionally classify pagination response

* WIP

* fixes arfter merge

* Don't suggest container names, not practical
- previously all pods were fetched... and we scrapped all container names from them
- this is a scaling nightmare, user now must just enter the name/s to match

* Avoid findAll secrets in SimpleSecretSelector

* tidying up

* Move LabeledSelect/index.vue back to LabeledSelect.vue to not break extensions

* changes after self review... 1

* changes after self review... 2

* ooof

* changes after self review... 3

* fix formatting

* Link new paginated label select with pagination setting

* Work around failing kubewarden unit tests in check-plugins gate

* Fix backup.spec e2e test

* fix formatting, paginationUtils.isSteveCacheEnabled --> paginationUtils.isEnabled

* Don't fetch all secrets on cloud creds page

* Fix backup.spec e2e test

* TODO tidying / tracking

* don't getch ALL workloads for hacky way to get a link to a service's workload

* Fix bad merge

* Create a convienence wrapper called ResourceLabelSelector that hides most of the complexity

* fix unit test

* Updates following review

* changes following self review

* Fix bottom bar of edit backup, edit restore pages

* revert temp change

* changes following self review

* Workaround for kubewarden unit tests in check plugin gate

* bump

* Fix e2e
2024-06-05 09:15:43 +01:00
Alexandre Alves 9b811c58ab
Replace Fleet Cluster `Nodes Ready` column (#11041)
* replace nodeInfo with bundleInfo in fleet cluster model + update fleet cluster table to display bundles ready instead of nodes ready

* address pr comments
2024-05-27 09:39:21 +01:00
momesgin f0b0f9376f
Add OCI chart support to repositories pages (#10907)
* add oci support

* fix typo

* fix import

* fix typo

* show oci type on the list table + send number type for all the exponential back-off values

* fix access isOciType from model

* fix conflict resolution error after merging master into branch

* update oci message

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-05-21 07:50:10 -07:00
Alexandre Alves b70864ace6
Test GitRepo detail view displays incorrect number of bundles + code improvements and fixes (#10986)
* add cluster tab to git repo details + improve code on fleet dashboard view + fix count of clusters in fleet dashboard view badges + add e2e test for 9866

* address pr comments + remove clusters tab from fleet gitrepo details view
2024-05-20 16:43:19 +01:00
Neil MacDougall f5431cbbaf
Add i18n string usage checker script (#10805)
* Add i18n string usage checker script

* Fix lint issues

* Add i18n check to GH Action workflow

* Update to node 16

* Update workflow to run script properly

* Allow script to return okay if when there are errors

* Add documentation

* Remove commented code
2024-05-02 20:52:15 +01:00
Richard Cox f0c397c001 Update Node list to support server-side pagination
- Setup pagination headers for the node type
- Define a pattern for fetching custom list secondary resources
- Major improvements to the way pagination settings are defined and created
- Lots of docs improvements
- Handle calling fetch again once fetch is in progress (nuxt caches running request)
- Validate filter fields (not all are supported by the vai cache
- General pagination fixes
2024-04-30 11:04:06 +01:00
Sorin 08f11a5d81
fixes i18n, new Cluster Appearance UX (#10677)
* fixes i18n and small UX
* new layout design for the modal
* enables edit badge from cluster explorer

---------

Signed-off-by: scures <scurescu@suse.com>
2024-04-29 17:12:16 +02:00
Nancy 557d0280fb
EKS Provisioning (#10581)
* eks initial

* k8s options

* eks node group component

* add config and networking components

* fix default region on initial load

* use .sync modifier in network tab

* launch templates

* node group styling

* spot instances/launch template instance type

* fix selectcredential footer when not showing the rest of the form

* cluster name description and options

* iam listRoles

* subnets

* k8s version dropdown custom

* logging tab

* agent deployment customization, labels and annotations

* working default values

* fix edit eks/aks

* instance types dropdown improvements and spot instance type filtering

* validation;

localization

* todos

* tests

* move diffUpstreamSpec

* clean up

* improve launch template loading appearance

* fix kms key fetch

* fix custom role radio

* fix failing nodegroup test

* fix lint

* fix typescript errors in crueks

* nodegroup ts

* cache ec2 instance types

* cache instance types in vuex

* nodegroup ts

* ts errors in eks networking

* eks config ts errors

* tweak nodegroup input sizing

* reset nodegroup default values if the launch template is cleared

* add tooltips and userdata file upload button to node groups

* add networking tooltips; make credential dropdown half width when not showing credential form controls

* fix rancher managed launch template detection

* fix networking tooltip

* show when a node group has a rancher-managed launch template

* fix error filtering for ec2 iam roles

* add system labels and annotations for norman clusters

* lint

* lint

* fix labels and annotations getters in norman cluster model

* added tests for norman cluster system labels and annotations

* fix some eks typescript and hide cluster name when no credential

* fix userdata sublabel link

* fix networking info banner translation typo

* node group size labels and tags should be editable
2024-04-26 09:06:48 -07:00
Giuseppe Leo 793f7c6023
Initial migration of Vue3 for compatible fixes (#10858)
* Correct file naming and small TS issues

Correct TS related issues

* Manual replacement of :is on standard HTML tags

* Add missing required in the code dependencies

* Correct SCSS import

* Correct test file naming

* Correct typo in markup

* Use alias for types import
2024-04-23 20:16:46 +02:00
Francesco Torchia acea0125fb
Fix provisioning label
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-04-18 15:49:11 +02:00
Francesco Torchia 17677f3499
Add Unknown to architecture possible values; Add translations
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-04-16 17:51:44 +02:00
Francesco Torchia 12f0c2feee
Add tooltip for mixed architecture
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-04-15 13:05:20 +02:00
Francesco Torchia e438f5cb99
Capitalize Architecture column/label
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-04-15 13:05:20 +02:00
Francesco Torchia e83eeb8812
Add architecture info in home page - clusters table
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-04-15 13:05:19 +02:00
Richard Cox 09614b0136 Server-side pagination
Polish and fixes from alpha
2024-04-02 13:34:36 +01:00
Phillip Rak ab75da8b93
Merge pull request #10700 from rak-phillip/bugfix/10639-extension-cache
Add new cache states to determine plugin init
2024-03-28 07:42:51 -07:00
Evgeniya Vashkevich 47ff3ddac6
[FEAT] Moved driver pages from Ember (#10557)
* [FEAT] Moved driver pages from Ember
2024-03-26 16:33:15 -07:00
Phillip Rak 9d7a13f354 Add new cache states to determine plugin init
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-26 09:14:27 -07:00
scures 27889b0dbf
feat: cluster abbreviation to 3 chars, shows customisation on cluster creation 2024-03-11 14:43:28 +01:00
Francesco Torchia bbea223f98
Add warning when delete managed App
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-03-05 19:08:56 +01:00
Richard Cox b464d15ee0
Integrate new schemaDefinitions endpoint (#10141)
* resource edit AS yaml

* fix cruresource (yaml from form)
- lazy load the schemaDefinitions when needed, avoids sync all to createYaml before we have an async chance to fetch schemaDefinitions

* Fix questions
- there are only four places we use questions, none of which use schema, this is just to be safe

* cluster scan, plugins/fieldsForDriver, defaultFor, validationErrors

* pathExistsInSchema
- used to optionally show conditions tab/list in resource detail view
- logs of things in ingress list/edit

* createPopulated / defaultFor
defaultFor requires resourceFields, it's only used by createPopulated in one place to support machine configs without components

* wip

* WIP MONITORING.SPOOFED
- these aren't spoofed types, but secondary schemas
- testing fix blocked, primary schema's have resourceFields

* Move steve specific (resourceField) code to steve models
- create models for steve schemas and apply to cluster and management stores
- move resoureField based validationto steve model
- move pathExistsInSchema to steve store getter
- don't fetch schemaDefinitions on start up when saving prefs (not needed and blocking)

* comments / improvements

* (untested) refactoring

* Fix alertmanager definitions, add retry definition fetch

* Fix pathExistsInSchema for path length > 2

* Fix questions that accept schemas
- tested by adding Questions to random page and the node schema

* Fix to saving configmap part 1
- the save works but doesn't show data. the yaml is the same as before. debug info added

* Validation by resourceFields is a norman specific thing, so make it such

* small refactor

* Tidying up

* Remove rebase junk

* fix linting and unit tests

* fix unit tests

* fix linting from fix for test....

* Tidying up, fix alertmanagerconfig

* Remove unit test todos

* add unit tests for resource fields

* sdssdf

* Add unit tests for pathExistsInSchema

* JS --> TS

* Store schemas in local singleton cache to avoid hitting store

* fix minor changes from review

* cruresource changes following review
- improvement - remove spurious canDiff
- createResourceYaml - pass in resource to use instead of calc in code

* WIP changes to parseType

* Fix generic cloud credential and node driver forms

* handle missing reactivity given schema definitions not in store

* fix and add unit tests for `parseType`

* Fix create-yaml test

* Changes following review
- improved comments
- SchemaDefinitionCache is now per store (and is reset as such)
- typeRef now uses parseType

* Fix dep loop by moving route based helps in auth out to utils file

* fix unit tests

* Changes following review
2024-02-28 17:08:35 +00:00
Alexandre Alves 74e543c524
show registration tab only on hosted providers with private endpoint/network (#10319)
* change condition to show registration tab only on hosted providers with private endpoint/network + adds unit tests

* address pr comments

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-02-05 10:08:40 +00:00
Richard Cox aa2653b81b
Merge pull request #10318 from ly5156/secret-resource-type
fix(steve/actions): fix missing type attribute of secret resource
2024-02-02 10:34:46 +00:00
Alexandre Alves 21327c54c0
Update logic of 'hasError' in 'provisioning.cattle.io.cluster' model (#10366)
* update logic of hasError in prov cluster model

* working on unit tests

* fix code logic and finish unit tests

* fix lint issue

* address pr comments

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-02-02 09:27:06 +00:00
LiuYan 1458fffad4 test(resource-utils): add unit test for cleanForDownload method 2024-02-02 09:03:08 +08:00
Richard Cox f4c39fcb6c Wire in cleanForDownload per resource customisation to existing model cleanForX pattern
- base resource model has cleanForX style functions which specific resources override with their own custom neads
- wire in the cleanForDownload into this pattern
- add cleanForDownload override for secrets
2024-02-02 09:03:08 +08:00