Sebastian Malton
8217ad4ba8
More consistent use of BaseStore.displayName
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
0cf9f9e536
Fix typing in tests to satisfy requirement to have cacheFile
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
33e76313bd
Cleanup formatting
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
ace5673a3d
Add typing to transient injectable
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
5a1fd72767
Fix messed up import
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
39d38252cc
Add simple migrations dependency for stores without any preexisting migrations
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
21039e2387
Remove usage of legacy global ClusterStore.getInstance
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
bd47377dd1
Remove usage of legacy global .getInstance
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
303a397209
Remove tests that reference lastSeenVersion
...
- That value is not used anywhere in code
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
a4ae7c0b41
Fix type error in base-store tests
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
846236452c
Remove dead code
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
a55cd67d6c
Switch WeblinkStore to injectable migrations
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
6620bb5340
Move migration utils into common/utils/
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
3958e613ec
Switch UserStore to injectable migrations
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:59 -05:00
Sebastian Malton
1aa3e46262
Switch HotbarStore to injectable migrations
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:58 -05:00
Sebastian Malton
ad814ebdf6
Introduce method to make store migrations injectable
...
- Use it for ClusterStore
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:58 -05:00
Sebastian Malton
3dce6f916e
Extract BaseStore deps into constructor argument
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:58 -05:00
Sebastian Malton
1c277a96fb
Remove last use of legacy global execHelm
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:58 -05:00
Sebastian Malton
4c1e1ac1db
Replace use of legacy global execHelm with injectable
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:58 -05:00
Sebastian Malton
9fee31a872
Remove more usages of Singleton
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:58 -05:00
Sebastian Malton
257082e699
Remove Singleton from BaseStore to remove global shared state
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-06 09:18:58 -05:00
Alex Andreev
667a978952
Fix top-bar .separator width ( #6706 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2022-12-06 15:07:11 +03:00
Sebastian Malton
9ba92cb072
Replace CatalogEntityDetailRegistry with an injectable solution ( #6605 )
...
* Replace EntityDetailRegistry with an injectable solution
- Add some behavioural tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix import error
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Simplify loading extensions
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Update snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove the last reminents of BaseRegistry
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix import errors
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix TypeError when loading extensions
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Cleanup LensExtensions
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove bad comment
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-02 10:31:27 -05:00
dependabot[bot] and Sebastian Malton
1acacbb7ef
Bump react-select from 5.6.1 to 5.7.0 ( #6696 )
...
* Bump react-select from 5.6.1 to 5.7.0
Bumps [react-select](https://github.com/JedWatson/react-select ) from 5.6.1 to 5.7.0.
- [Release notes](https://github.com/JedWatson/react-select/releases )
- [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md )
- [Commits](https://github.com/JedWatson/react-select/compare/react-select@5.6.1...react-select@5.7.0 )
---
updated-dependencies:
- dependency-name: react-select
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2022-12-02 10:31:09 -05:00
Sebastian Malton
5c69b273b1
Fix crash in PersistentVolumeDetails ( #6691 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-02 04:53:14 -08:00
Sebastian Malton
ad31b73264
Fix not being able to add custom helm repos ( #6692 )
...
* Add missing safety checks in unit tests for structured clone issues
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix not being able to add custom helm repos
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-02 04:53:00 -08:00
Alex Andreev
33e6771da3
Fix: remove excessive scrollbars from the TabLayout view ( #6689 )
...
* Remove excessive scrollbars from the TabLayout view
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Updating snapshots
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Updating snapshots harder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2022-12-01 09:32:41 -05:00
Sebastian Malton
4cb1946110
Fix race conditrion preventing window from opening ( #6680 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-01 09:22:18 -05:00
Sebastian Malton
a546f3b8ae
Add buttons to quicky filter the current view by a specific namespace ( #6677 )
...
* Add quick namespace filtering in pods view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to HorizontalPodAutoscalers view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to Leases view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to LimitRanges view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to ConfigMaps view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove last usage of legacy global
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to PodDisruptionBudgets view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to ResourceQuotas view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to Secrets view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove last usage of legacy global secretsStore
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to CustomResources view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to Events view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to HelmReleases view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to Endpoints view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove last usage of legacy global endpointsStore
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to Ingresses view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to NetworkPolicies view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to PortForwards view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to Services view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to PersistentVolumeClaims view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to RoleBindings view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to Roles view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to ServiceAccounts view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to CronJobs view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to DaemonSets view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to Deployments view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to Jobs view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to StatefulSets view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add quick namespace filtering to ReplicaSets view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove last usage of legacy global replicaSetStore
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix up missing styles
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-01 09:20:56 -05:00
Sebastian Malton
261aa2935a
Fix not displaying any pie charts when missing only some data ( #6671 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-30 04:31:11 -08:00
Sebastian Malton
b77044a8f9
Fix back navigation in entity settings ( #6670 )
...
- The bug was that the user would cycle through all the settings viewed
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-30 04:30:55 -08:00
Iku-turso
75aee7e4fd
Make preferences from extensions using tabs "application" and "telemetry" appear as last ( #6674 )
2022-11-30 11:37:18 +02:00
Iku-turso
1e0094bd8e
Fix extensions using "application" as magic string for preference tab ( #6666 )
...
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com >
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com >
2022-11-29 12:13:09 -05:00
Sebastian Malton
005ed1c34e
Remove uses of legacy global logger from injectables ( #6660 )
...
- Clean up some of them to use more injectables
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-29 08:56:09 -05:00
Sebastian Malton
9589175604
Make EntitySettingRegistry fully injectable ( #6604 )
...
* Make EntitySettingRegistry fully injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add behavioural tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Revert tsconfig change
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Update snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Improve naming
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-28 12:13:15 -05:00
Sebastian Malton
286e6c8de7
Make PrometheusProviderRegistry fully injectable ( #6592 )
...
* Stop using source code in build file
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add new injectable version of binaryName
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add new NormalizedPlatform type
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Switch legacy execHelm to use legacy global DI for binaryPath
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove dead code
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Introduce injectable for kube auth proxy certs
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Introduce injectable forms of PrometheusProviders
- Remove class requirement
- Make everything injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Update tests to not use private functions
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Cleanup creating binary names and paths
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-25 09:19:57 -05:00
Sebastian Malton
65b14b9e7b
Improve UX for shell env sync failure ( #6644 )
...
* Move files to be under a feature folder
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add error notification on shell sync failure
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Improve error handling of case where match is not found
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-25 04:53:09 -08:00
Sebastian Malton
27fb128c05
Handle globalAgent having a single non-array CA ( #6628 )
...
* Handle globalAgent having a single non-array CA
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Rewrite ternary as IIFE
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-24 11:28:33 -08:00
Sebastian Malton
6142aad5ab
Make ResourceStack fully injectable ( #6591 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-24 08:46:53 -05:00
Jari Kolehmainen and Sebastian Malton
245e132ada
Fix KubeApi watch retry on timeout ( #6640 )
...
* fix KubeApi watch retry on timeout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2022-11-24 08:44:35 -05:00
Alex Andreev
95cee3bcc8
Removing big padding after cluster settings avatar ( #6634 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2022-11-23 14:52:13 +03:00
Sebastian Malton
573cd83bfb
Fix crash when upgrading release ( #6626 )
...
* Fix crash when upgrading release
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix crash when upgrading helm releases
- Fixes not being able to upgrade helm releases as well.
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix test failures
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-23 03:38:37 -08:00
Janne Savolainen
892b105a6b
Add missing gutter between sections in cluster settings ( #6631 )
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2022-11-23 12:16:46 +03:00
Sebastian Malton
0eee5a07c5
Remove mac-ca usage since it was only in tests ( #6043 ) ( #6321 )
...
* Remove mac-ca usage since it was only in tests (#6043 )
* Make injecting CAs injectable, remove mac-ca as dependency
* Fix win-ca failing on electron renderer on windows
* Fix the matcher under features/ for main
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix type errors from new types
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Temp change to see windows errors on CI
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix temp change
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Change error message for windows
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Increase maxBuffer size when reading windows CAs
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Switch back to running integration tests on windows
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix usage after rebase
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Update lock file
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-22 15:23:01 -05:00
Andreas Hippler and Andreas Hippler
6d7090f8a7
fix: getAllowedResources for all namespaces using SelfSubjectRulesReview ( #6614 )
...
* fix: getAllowedResources for all namespaces using SelfSubjectRulesReview
Signed-off-by: Andreas Hippler <andreas.hippler@goto.com >
* fix: refresh accessibility every 15 min
Signed-off-by: Andreas Hippler <andreas.hippler@goto.com >
* chore: remove unused clusterRefreshHandler
Signed-off-by: Andreas Hippler <andreas.hippler@goto.com >
* fix: resolve SelfSubjectRulesReview globs
Signed-off-by: Andreas Hippler <andreas.hippler@goto.com >
Signed-off-by: Andreas Hippler <andreas.hippler@goto.com >
Co-authored-by: Andreas Hippler <andreas.hippler@goto.com >
2022-11-22 09:48:59 -08:00
Sebastian Malton
98e42cf25f
Make ClusterFrameManager fully injectable ( #6590 )
...
* Make ClusterFrameManager fully injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-22 09:10:22 -05:00
Jim Ehrismann
7b5e1b8a31
Update Button, keep left ( #6612 )
...
* Update Button, keep left
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* update snapshots
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2022-11-18 16:28:48 -05:00
dependabot[bot] and Sebastian Malton
9c64ddd59e
Bump typescript from 4.8.4 to 4.9.3 ( #6606 )
...
* Bump typescript from 4.8.4 to 4.9.3
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.8.4 to 4.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.4...v4.9.3 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2022-11-18 10:10:23 -05:00
Sebastian Malton
1b6f64c523
Remove spdy support ( #6580 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-17 13:02:47 -05:00
Sebastian Malton
56e7897bc4
Block renderering non http(s):// links via <Icon> ( #6588 )
...
* Block renderering non http(s):// links via `<Icon>`
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Still render icon, just without href
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Update tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-17 11:10:54 -05:00