Commit Graph

317 Commits

Author SHA1 Message Date
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
Alexandre Alves b4d463b04c
add CSI suffix to all non-builtin storageClass provisioners (#10348)
* add CSI suffix to all non-builtin storageClass provisioners

* improve unit test

* fix issue with storybook build a spec.ts files

* update main.js to exclude

* revert changes to storybook config + rewrite unit test

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-01-31 17:16:15 +00:00
Nancy c77e402313
Allow cluster provisioning extensions to define cluster-importing support (#10316)
* allow prov extensions to specify cluster importing support, allow prov extensions to overwrite built-in

* remove commented code

* fix e2e test data
2024-01-31 07:58:55 -08:00
Alexandre Alves 21bd9b28c3
System namespaces curation (#10258)
* update logic to decide if a namespace is a system one + improve curated list of system namespaces

* fix and extend unit tests for isSystem namespace model prop

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-01-22 09:58:38 +00:00
Francesco Torchia 27dc8cba94
Add null checks for Clusters agentConfig property
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-01-18 17:48:33 +01:00
Richard Cox 01b94b9d69
Merge pull request #10256 from richard-cox/fix-deployment-save
Fix Creation and Edit of Workload bases Resources
2024-01-15 13:40:21 +00:00
Nancy 4cca5faf81
AKS provisioning extension (#9669)
Adds a built-in AKS provisioning extension to replace the embedded ember pages, as well as modifications to the provisioning UI to support other non-rke2 provisioning extensions
2024-01-11 07:52:45 -08:00
Richard Cox 4cde4b9bda Fix save of Deployments in form view
- Some deployments won't have initContainers
- Ensure we skip the clean if they don't exist
- Also removed if blocks in favour of `?`
2024-01-11 12:00:58 +00:00
Neil MacDougall b036421f25
Fix bug where a manually added node breaks the node list page (#10091)
* Fix bug where a manually added node breaks the node list page

* Address PR feedback

* Address PR feedback

* User rowNames in node list test
2024-01-08 17:08:50 +00:00
Richard Cox 0368f657f0
Merge pull request #10037 from Shavindra/9371-remove-unwatned-properties
Removed unwanted properties from steve resources
2024-01-08 15:48:08 +00:00
Richard Cox 24a44dadaf Minor tweaks
- handle scenarios where cloned pods have no `initContainer` collection (not seen in local tests)
- removeContainerField --> cleanContainerForSave
- Worklaods typo
2024-01-02 17:21:25 +00:00
Francesco Torchia b5ec434a42
- Add providerSummary getter to machinedeployment model
- Hide provider labels for Harvester clusters

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-01-02 15:17:35 +01:00
Richard Cox aaba6b38a7 Include metadata clusterName, deletionPeriodSeconds and generateName properties in steve objects 2024-01-02 10:49:35 +00:00
Richard Cox cc9136b633 Fix unit tests (move mocks into utils folder) 2024-01-02 09:49:52 +00:00
Evgeniya Vashkevich 4aba0acfec
Fixed comments on PR #9735 (#10160)
* Fixed comments on PR #9735
2023-12-21 09:57:57 -08:00
Richard Cox aa6461802d improve unit tests, ensure super.cleanForSave's run correctly 2023-12-20 16:56:59 +00:00
Richard Cox afa5feb3b4 fix workload test 2023-12-20 16:01:39 +00:00
Richard Cox d1a8b2f33b Refactoring and many fixes 2023-12-20 15:26:23 +00:00
Shavindra 2e69430808
Fix fleet cluster state (#10162)
* Display cluster state.

* Display cluster repo status badge.

* Fix typo.

* Fix typo.

* Fix linting.

* Fix linting.

* Removed type from request.

* Reverted change.
2023-12-18 10:52:11 +01:00
cnotv 939e3e3aac Add tests for workload save 2023-12-18 10:38:34 +01:00
cnotv 47dcfda5d7 Import just one function over the whole lodash utilis 2023-12-15 16:21:28 +01:00
Shavindra 2292202327 Fix linting. 2023-12-15 01:33:14 +01:00
Shavindra de550a86d4 Merge branch 'master' into 9371-remove-unwatned-properties 2023-12-14 23:17:59 +01:00
momesgin 807e2dc96c
scaling down to zero restrictions for RKE1 (#10017)
* disable scale down to zero

* scaling down to zero restrictions for RKE1

* removed extra optional chaining

* removed wrong condition for minus button

* added unit tests

* combined rke1 and rke2 scale down modals + more tests + minor refactor

* delete unused file ScaleRke1NodeDownDialog.vue

* moved logic from created to data + used nameDisplay for both rke1 and rke2

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-12-14 10:08:34 -08:00
Neil MacDougall 83550bd0ca
Yaml Editor: Auto-fold section in RKE2 cluster config (#10108) 2023-12-14 13:22:44 +00:00
Richard Cox c9b2f79053
Merge pull request #10024 from richard-cox/cluster-cert-view
Add certificates view to cluster dashboard
2023-12-12 11:57:20 +00:00
Evgeniya Vashkevich 25618ad4a0
[INT] Replaced vue-clipboard2 library with clipboard-polyfill (#10072)
* [INT] Replaced vue-clipboard2 library with clipboard-polyfill
2023-11-30 16:31:35 -08:00
Richard Cox 8271abadac Fixes and improvements
- Fix loop when searching by text
- Move function to fetch certs into fetch
- Add extra safety checks when missing certInfo
- Check sans.array as well as sans for additional domains
2023-11-22 13:27:54 +00:00
Shavindra d3c6562c42 Fix imports 2023-11-14 17:19:16 +01:00
Shavindra eaafc3a53e Fix imports. 2023-11-14 11:02:12 +01:00
Shavindra 3436e4271c Fix linting errors. 2023-11-14 10:51:46 +01:00
Richard Cox 732798fe56 One fix, one improvement
- Show a dash for `Expires In` for expired certs
- Cache `certInfo` to avoid multiple calls. The info one's change, and for the other use will always refresh (see dataPreview)
2023-11-13 18:08:58 +00:00
Richard Cox a92e2ef5a1 Fix failing storybook (broken import) 2023-11-09 09:13:46 +00:00
Richard Cox 4e3a282b79 Add certificates view to cluster dashboard
- Add a new tab, next to events, in the cluster dashboard
- Tab shows a list of all secrets of cert type
- List allows users to see which certs are expiring soon, how long they've lived etc
- Tab also shows a notification if certs are expiring or have expired
- Related fixes
  - plumb in option list paging params (so we can show X of Y Certificates in pagination controls)
  - fix usages of from = from || now
  - Count requests to kube steve as steve requests (alongside local steve requests)
2023-11-08 11:52:23 +00:00
Francesco Torchia 108e86b6e5
Set namespaceLocation to null if local cluster is not visible
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-11-03 10:38:54 +01:00
Francesco Torchia b03736d617
Add namespaceLocation to provisioning cluster model
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-11-02 15:25:25 +01:00
Francesco Torchia e80e807940
Link namespaces in mgmt cluster to local cluster
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-11-02 15:25:24 +01:00
Shavindra 9ac7eb2360 Removed unwanted properties from pod, secret and workload 2023-11-02 11:05:55 +01:00
Evgeniya Vashkevich 6d4f75afaf
Fixed RKE cluster being shown as Imported (#9868) 2023-11-01 13:02:37 -07:00
Evgeniya Vashkevich 92d810399a
[FEAT] Removed all mentions of Pod Security Policies (#9962) 2023-11-01 11:02:43 -07:00