Commit Graph

287 Commits

Author SHA1 Message Date
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
momesgin 5919915b29
Validating server url on Setup & Global Settings pages (#9701)
* added more validations for server-url on Setup and Global Settings pages

* handling server-url 'use default value' case

* consistent error messages

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-10-26 11:17:45 -07:00
Nancy 801f8de515
account for the possibility that capi machine cluster getter returns undefined (#9974) 2023-10-25 10:19:48 -07:00
Richard Cox 48d0807181 Revert "App upgrade notification shown for incorrect app (#9806)"
This reverts commit eec4a46fdb.
2023-10-20 15:13:52 +01:00
Giuseppe Leo eec4a46fdb
App upgrade notification shown for incorrect app (#9806)
* Heavy code cleanup: move function to utils, config and types to their own file

* Add fallback and tests for version comparison not retrieving values

* Fix refactoring

* Add partial case of array filterBy

* Replace multiple functions handling the same case with single getter; add covering tests

* Add no parameter case to be correctly handled

* Add case with different chart values, e.g. Epinio issue case

* Prevent issues if retrieved version is undefined; Add unit tests for upgrade cases

* Filter out charts if lack parameters
2023-10-10 11:14:24 +02:00
Richard Cox a8900d9b07
Merge pull request #9809 from aalves08/9730-change-workspace-feature-behind-feature-flag
add new feature flag to gate workspace change on fleet clusters
2023-10-05 10:26:25 +01:00
Alexandre Alves 60b15ad429 fix bug with mispelled isRke2 + sneaky fix for id error on prov cluster screen when deleting clusters 2023-09-29 17:04:16 +01:00
Alexandre Alves ae0e753444 update code format 2023-09-29 15:20:32 +01:00
Alexandre Alves d58557d69f add new feature flag to gate workspace change on fleet clusters 2023-09-29 11:54:12 +01:00
Nancy Butler 3b561b2eaa allow saving global roles with no displayName; fix global role edit when no resourceURLs 2023-09-28 16:20:54 -07:00
Francesco Torchia 022cfe2c5a
Fix Ui crash in case of missing principal (#9762)
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-09-28 09:16:57 +01:00
Sean-McQ 6f0a3d436a
save method in model fixes payload, validator catches the rest (#9758) 2023-09-27 13:40:36 -04:00
Richard Cox a70fe1b431
Merge pull request #9598 from richard-cox/fix-modified-resource
Fix resource modified handler
2023-09-27 17:36:49 +01:00
Sean-McQ 70ad28eb3d
node to management node controller remaps status into internalNodeStatus (#9760)
Code that handles this on the backend: 9129a7b049/pkg/controllers/managementuser/nodesyncer/nodessyncer.go (L750)
2023-09-27 08:15:02 -04:00
richa 2ffe8d3170
App bar pin cluster (#9674)
* feat: app-bar init implementation

* fix: users e2e test

* chore: removes extra code

* fix: adds the correct width for the app-bar

* fix: addressing feedback

* fix: cleans up max-items preference, layout improvements

* chore: removes extra file

* feedback

* fixes issue with extra padding in standalone

* fix: loading overlay

* fix: spaces

* fix: missing content

* Added pin clusetr list

* Removed commented code

* Fixed sorted list order

* fix: fedback

* removes the 2px top

* fix: brings back the local cluster icon

* fix: adds cluster filter badge & cluster count

* Fix pin cluster test

* Rename pinned-clusters in pref

* Added pin methoded in cluster model

* Added test for unpinning cluster

* Fixed test

* Fixed lint

* Clean up css

* Resolved feedback

* Fixed lint

* Removed local cluster badge test

* Removed model

---------

Co-authored-by: scures <scurescu@suse.com>
2023-09-13 15:45:39 +02:00
Alexandre Alves 5c0da30362
New cluster template isn't displayed after repository refresh (#9612)
* force fetch and reset of catalog/load in order to get updated cluster templates every time we hit refresh on the cluster repo

* remove old solution + gate forceful catalog load to refresh action of clusterrepo

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-08-31 12:20:53 +01:00
Shavindra 51b47c2af1
Disable local cluster workspace change (#9552)
* Disable fleet workspace change for local cluster.
* Add LOCAL_CLUSTER constant.
2023-08-31 10:58:46 +02:00
Richard Cox f9aa1f38bb Fix resource modified handler
- fixes issue in handleConflict that meant
  - conflicts were not detected
  - non-conflicting changes were not applied to users resource
- see #9597 issue description for more detail
2023-08-25 18:41:04 +01:00
Shavindra e721ce3fe8
Handle correctdrift for previously created repos. (#9578)
* Handle correctdrift for previously created repos.
* Fix edit and Clone textbox
2023-08-25 12:18:19 +02:00
momesgin 17f5bb58aa
filter RKE1 s3 snapshots (#9460)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-08-02 09:03:24 -07:00
Richard Cox c906b55b42
Merge pull request #9440 from richard-cox/safer-chart-install
Add additional error handling to install chart page
2023-08-02 14:03:42 +01:00
Richard Cox dee580bad9 Changes following review with Neil
- try to find both from / to prov cluster
Also
- wrap creation of value in catch (just in case)
- only calc provClusterId once

Tested local cluster, imported cluster, rke1, rke2
2023-07-31 15:40:32 +01:00
Neil MacDougall 02e6e84f41
When execing into a container, try linux and windows commands when we can't determine if the node is windows (#9241)
* When execing into a container, try linux and windows commands when we can't determine if the node is windows

* Fix lint

* Lint: Remove trailing white space

* Use error message rather than last error

* extra failover, caching last working os against pod, errors, tests

* add __mocks__ folders to eslint ignore patterns

* standard user test fix

* removed unnecessary try/catch logic

* Revert "removed unnecessary try/catch logic"

This reverts commit c263131927.

---------

Co-authored-by: Sean <sean.mchugh@suse.com>
2023-07-28 21:28:03 -04:00
momesgin bac35d3a58
Merge pull request #9436 from momesgin/8839-disable-s3-snapshot
Disable failed S3 snapshots
2023-07-27 08:18:35 -07:00
Richard Cox 6f32ed0df2
Merge pull request #9412 from WuJun2016/circular-dependency
fix circular dependency
2023-07-27 11:39:53 +01:00
Mo Mesgin 8f19b3d53a check successful status instead of not failed 2023-07-26 16:18:35 -07:00
momesgin 7896059c49
filter failed snapshots (#9390)
* filter failed snapshots

* fixed import

* added one more test case

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-07-26 10:28:53 -07:00
Shavindra e11a73d6be
Fix fleet cluster labels and annotations save via YAML view. (#9383)
* Fix fleet cluster labels and annotations save via YAML view.
2023-07-26 13:25:31 +02:00
wujun f4856ffccc fix circular dependency 2023-07-26 17:45:27 +08:00
Shavindra eeb2a48330
Filter the bundles by label repo-name. (#9408) 2023-07-25 20:30:24 +02:00
Richard Cox 8558065b08 Fix how custom cluster drivers identify themselves
- the dashboard uses the kontainerdriver id for things like images, text and also to provide embedded ember with a key
- this works fine when the id is the type of kontainerdriver
- this doesn't if the kontainerdriver is custom and has a random id
  - for these cases use the status.displayName to use as an id instead
2023-07-21 16:49:55 +01:00