Janne Savolainen
e1a6d4c4a9
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-app-paths
2022-01-10 17:13:20 +02:00
Sebastian Malton
4f75acf2b4
Ban circular dependencies ( #3547 )
2022-01-05 11:35:44 -05:00
Janne Savolainen and Mikko Aspiala
9d33fff906
Cascade different refactorings to eliminate global shared state from app paths
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2022-01-05 13:26:49 +02:00
Sebastian Malton
bde0a9ef91
Change isEnabledForCluster to use KubernetesCluster instead of Cluster ( #4584 )
2021-12-17 08:28:47 -05:00
Sebastian Malton
c0e0408c9b
Remove all 'NonBreakingSpace' characters from the repo
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-12-10 13:06:33 -05:00
Sebastian Malton
181197fad8
Remove unnecesarry TerminalApi.destroy and TerminalApi.reconnect overloads ( #4538 )
2021-12-10 09:07:18 -05:00
Sebastian Malton and Jari Kolehmainen
0f2801552f
Fix handling of PTYs when renderer is reloaded ( #4346 )
...
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-11-17 13:48:46 -05:00
Panu Horsmalahti
14ab00d017
Fix concurrent loadItems in CatalogEntityStore ( #4356 )
...
* Fix concurrent loadItems in CatalogEntityStore
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Add parameter to loadItems.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Remove unnecessary overloading.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-11-17 11:33:42 +02:00
Sebastian Malton
c37a8aee0a
Correctly catch and notify user about NodeShell pod failures ( #4244 )
...
* Correctly catch and notify user about NodeShell pod failures
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix error throwing sometimes during Terminal.detach
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-11-09 22:52:46 -05:00
Sebastian Malton
81b972a2d0
Make ws:// authentication more timing safe ( #4297 )
2021-11-09 14:24:32 -05:00
Sebastian Malton
e5bf5920fc
Keep shell processes alive between network offline periods ( #4258 )
2021-11-09 12:30:55 -05:00
Sebastian Malton
c09a57370e
Block shell websocket connections from non-lens renderers ( #4285 )
...
* Block shell websocket connections from non-lens renderers
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add IPC based authentication tokens
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix race condition on tab start
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-11-08 19:02:10 -05:00
Sebastian Malton
c6dce043a7
Lint: comma-spacing (error) & comma-dangle (error) ( #4200 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-11-02 17:38:20 -04:00
Sebastian Malton
e21888c62c
Fix iter function return values ( #3958 )
2021-10-19 09:02:59 -04:00
Juho Heikka and Sebastian Malton
724b9450a6
Change onBeforeRun API ( #3981 )
...
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2021-10-07 12:43:50 -04:00
chh and Sebastian Malton
4af796c532
Before hook for onRun of Catalog entities ( #3911 )
...
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2021-10-05 15:36:44 -04:00
Sebastian Malton
e251194cb5
Fix reference error when opening cluster view ( #3824 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-09-20 13:01:05 +03:00
Sebastian Malton
be1a2ebe59
Fix shell connection readiness heuristic ( #3795 )
2021-09-15 17:40:36 -04:00
Panu Horsmalahti
936927af98
Add CatalogCategory filter to the extension API ( #3718 )
...
* Add CatalogCategory filter to the extension API.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Fix test.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-09-13 15:46:28 +03:00
Sebastian Malton and Panu Horsmalahti
6fdb2f0b58
Support filtering catalog entities ( #3647 )
...
* Support filtering catalog entities
- This allows extensions and OpenLens to restrict which of the entities
the sources have provied are "visible" to the rest of Lens
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* switch to filtering only for catalog view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix test
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Add test to iter reduce
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
Co-authored-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-08-31 16:00:56 +03:00
Jari Kolehmainen
58a446bd45
Refactor k8s api to common ( #3553 )
...
* refactor kube api to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor more utils to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor more utils to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* switch to use node-fetch on both sides
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* improve logger
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix lint errors
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix/improve tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix node-fetch require error on prod build
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* preload fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* read serverAddress from apiBase
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-10 13:26:14 +03:00
Sebastian Malton
ee158e33df
Move lookupApi into apiManager ( #3540 )
2021-08-04 11:36:13 -04:00
Sebastian Malton
77077ef72c
Fix custom resources not having a fallback details component ( #3542 )
2021-08-03 12:31:44 -04:00
Sebastian Malton
f507ec9e6c
Set defaults for EndpointSubsets ( #3454 )
2021-07-27 08:54:14 -04:00
Alex Andreev
89662103a8
Fix workload overview status sorting ( #3486 )
...
* Sort statuses allowing 'running' to be first
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix Chart legend badges
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding getStatus() tests for each store
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-07-26 09:33:32 +03:00
Sebastian Malton
64ac04186b
Improve Table typing and remove annotations on callbacks ( #2981 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-22 10:42:27 -04:00
Alex Andreev
c6a4d55d86
Improving metric queries ( #3424 )
2021-07-22 09:57:14 -04:00
Sebastian Malton
27f2bd7181
Wait for shell to bring up prompt before sending commands ( #3337 )
2021-07-20 15:25:18 -04:00
Sebastian Malton
48797b4a57
Check KubeObject.metadata is defined in getOwnerRefs ( #3412 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-19 07:47:54 +03:00
Sebastian Malton
c504065743
Check metadata labels is an object in getRoleLabels ( #3416 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-19 07:46:55 +03:00
Sebastian Malton
eef5dd5f9c
Display toleration's value in pod-details ( #3384 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-16 08:57:26 -04:00
Josh Soref and Josh Soref
e87b4836be
Fix spelling ( #3181 )
...
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com >
2021-07-16 08:53:01 -04:00
Sebastian Malton
f2cd0aa8e8
Catch empty string error is parseKubeApi ( #3358 )
...
* Catch empty string error is parseKubeApi
- Add more debugging lines
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add some unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Use resolved pathname
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-14 08:48:32 +03:00
Sebastian Malton
5bccc27204
Check for unset pod spec ( #3361 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-13 08:51:49 +03:00
mcpappas
008e516715
Use allocatable instead of capacity for node resources. ( #2098 )
2021-06-18 14:53:29 -04:00
Sebastian Malton
5bd1d079de
Add checks to block edits to key fields ( #2426 )
...
- Referece kubetcl:pkg/cmd/util/editor/editoptions.go:649
- disallow editing status field
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-14 08:49:55 -04:00
Sebastian Malton
280af6391e
Switch to more specific IPC helpers ( #2821 )
2021-06-10 10:34:22 -04:00
Sebastian Malton
6d10f011e5
Explicitly initialize registries
...
- Helps moves towards turning on banning CyclicImports
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-10 09:34:13 -04:00
Sebastian Malton
5ee2ab5b4a
Move all RouteParam's and URL builders to src/common ( #2778 )
...
- Prevents some circular dependencies
- Allowed main to use them as needed
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-10 08:52:09 -04:00
Sebastian Malton
a1a1c240e9
Split UserManagement into seperate Cluster and Namespace Roles and RoleBindings ( #2755 )
2021-06-09 13:40:55 -04:00
Sebastian Malton
60a19143b4
Revert 2844 ( #2980 )
...
* Revert "review comments"
This reverts commit 97f2ecd88d .
* Revert "Switch to I, remove type parameter default"
This reverts commit a3073cc99b .
* Revert "Improve Table typing and remove annotations on callbacks"
This reverts commit defb0ea0dd .
2021-06-07 12:02:15 -04:00
Sebastian Malton
97f2ecd88d
review comments
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-07 11:30:29 -04:00
Sebastian Malton
a3073cc99b
Switch to I, remove type parameter default
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-07 11:30:29 -04:00
Sebastian Malton
defb0ea0dd
Improve Table typing and remove annotations on callbacks
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-07 11:30:28 -04:00
Sebastian Malton
817c8e00db
Simplify add cluster view ( #2716 )
...
- Only shows editor, and will save all text to file
- Reports some validation errors, but doesn't block the add cluster
button
- Cleanup kube helpers to facilitate clearer FS interactions
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-07 08:14:43 -04:00
Sebastian Malton
043f411ad1
Fix getReleases returning inconsistent data types ( #2924 )
2021-06-01 11:53:24 -04:00
Sebastian Malton
36e8888ecb
Improve loading animation when switching release details ( #2367 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-05-31 16:43:08 -04:00
Jari Kolehmainen
c8e2f7ca2d
Fix main->renderer catalog entity sync issue ( #2902 )
...
* fix main->renderer catalog entity sync issue
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-31 08:09:16 +03:00
Violetta
23dadaa1a1
Show all pod addresses ( #2841 )
...
Signed-off-by: vshakirova <vshakirova@mirantis.com >
2021-05-28 09:14:09 -04:00
Roman
643b0d861f
Fix: cluster commands disappeared from Command Palette ( #2886 )
...
* Cluster commands disappeared from Command Palette, close #2760
Signed-off-by: Roman <ixrock@gmail.com >
* refactoring: get rid of ClusterStore.active && ClusterStore.activeCluster (managed via catalog's entity)
Signed-off-by: Roman <ixrock@gmail.com >
2021-05-28 14:06:18 +03:00