1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

73 Commits

Author SHA1 Message Date
Janne Savolainen
fabe910cf0
Adapt merge conflicts
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2023-03-06 13:04:27 +02:00
Janne Savolainen
c6861b6f6e
Merge branch 'master' into remove-duplicate-runnable-ids-rebased
# Conflicts:
#	package-lock.json
#	packages/core/package.json
#	packages/core/src/features/application-menu/main/start-application-menu.injectable.ts
#	packages/core/src/features/application-update/child-features/periodical-checking-of-updates/main/start-checking-for-updates.injectable.ts
#	packages/core/src/features/application-update/main/emit-current-version-to-analytics.injectable.ts
#	packages/core/src/features/application-update/main/watch-if-update-should-happen-on-quit/start-watching-if-update-should-happen-on-quit.injectable.ts
#	packages/core/src/features/cluster/state-sync/main/setup-sync.injectable.ts
#	packages/core/src/features/cluster/store/main/init.injectable.ts
#	packages/core/src/features/file-system-provisioner/main/init-store.injectable.ts
#	packages/core/src/features/hotbar/store/main/init.injectable.ts
#	packages/core/src/features/shell-sync/main/setup-shell.injectable.ts
#	packages/core/src/features/theme/system-type/main/setup-update-emitter.injectable.ts
#	packages/core/src/main/cluster/initialize-manager.injectable.ts
#	packages/core/src/main/electron-app/runnables/enforce-single-application-instance.injectable.ts
#	packages/core/src/main/electron-app/runnables/setup-application-name.injectable.ts
#	packages/core/src/main/electron-app/runnables/setup-deep-linking.injectable.ts
#	packages/core/src/main/electron-app/runnables/setup-developer-tools-in-development-environment.injectable.ts
#	packages/core/src/main/electron-app/runnables/setup-device-shutdown.injectable.ts
#	packages/core/src/main/electron-app/runnables/setup-ipc-main-handlers/setup-ipc-main-handlers.injectable.ts
#	packages/core/src/main/electron-app/runnables/setup-main-window-visibility-after-activation.injectable.ts
#	packages/core/src/main/electron-app/runnables/setup-runnables-after-window-is-opened.injectable.ts
#	packages/core/src/main/electron-app/runnables/setup-runnables-before-closing-of-application.injectable.ts
#	packages/core/src/main/library.ts
#	packages/core/src/main/start-main-application/runnable-tokens/phases.ts
#	packages/core/src/main/start-main-application/runnables/emit-service-start-to-event-bus.injectable.ts
#	packages/core/src/main/start-main-application/runnables/initialize-extensions.injectable.ts
#	packages/core/src/main/start-main-application/runnables/kube-config-sync/add-source.injectable.ts
#	packages/core/src/main/start-main-application/runnables/kube-config-sync/start-kube-config-sync.injectable.ts
#	packages/core/src/main/start-main-application/runnables/sentry/setup.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-hardware-acceleration.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-hostnames.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-immer.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-lens-proxy-certificate.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-lens-proxy.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-mobx.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-proxy-env.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-syncing-of-general-catalog-entities.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-syncing-of-weblinks.injectable.ts
#	packages/core/src/main/start-main-application/runnables/setup-system-ca.injectable.ts
#	packages/core/src/main/start-main-application/runnables/show-initial-window.injectable.ts
#	packages/core/src/main/start-main-application/runnables/show-loading.injectable.ts
#	packages/core/src/main/start-main-application/start-main-application.injectable.ts
#	packages/core/src/main/stores/init-user-store.injectable.ts
#	packages/core/src/main/theme/sync-theme-from-os/start-syncing-theme-from-operating-system.injectable.ts
#	packages/core/src/main/tray/electron-tray/start-tray.injectable.ts
#	packages/core/src/main/tray/menu-icon/start-reactivity.injectable.ts
#	packages/core/src/main/tray/reactive-tray-menu-items/start-reactive-tray-menu-items.injectable.ts
#	packages/core/src/main/user-store/sync-open-at-login-with-os.injectable.ts
#	packages/core/src/main/utils/channel/channel-listeners/start-listening-on-channels.injectable.ts
#	packages/core/src/main/vars/build-version/init.injectable.ts
#	packages/core/src/main/vars/default-update-channel/init.injectable.ts
#	packages/core/src/main/vars/release-channel/init.injectable.ts
#	packages/core/src/main/vars/semantic-build-version/init.injectable.ts
#	packages/core/src/renderer/components/test-utils/get-application-builder.tsx
#	packages/core/src/renderer/getDiForUnitTesting.tsx
#	packages/open-lens/package.json
2023-03-06 12:21:48 +02:00
Janne Savolainen
129565f08a
Switch to using start application from Feature (#7260)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2023-03-06 10:40:04 +02:00
Jari Kolehmainen
8b93a52930
should show resource if missing allowedResources data (#7274)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-03-03 13:48:26 +02:00
Sebastian Malton
bc351aa540 Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:44:14 -05:00
Sebastian Malton
09881f2b56 Finial fixups to fix build
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:58 -05:00
Sebastian Malton
10a316f4e5 Fixup remaining import issues
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:58 -05:00
Sebastian Malton
ff49246c60 Fixup uses of AsyncResult and autoBind
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:58 -05:00
Sebastian Malton
0775b6a42f Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:57 -05:00
Sebastian Malton
9b3e31394d Move tests to new package too
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:57 -05:00
Sebastian Malton
e860c388f1 Fixup uses of @k8slens/test-utils
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:57 -05:00
Sebastian Malton
45b630553a Fixup type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:57 -05:00
Sebastian Malton
dcf9de2694 Use new @k8slens/run-many package in core
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:57 -05:00
Sebastian Malton
ef32f2b72b Replace all internal uses of utilities with new packages
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:57 -05:00
Sebastian Malton
3a2e436933 Move run-many and run-many-sync to separate package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:24 -05:00
Sebastian Malton
4fe106610a Move testing utilities to separate package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:24 -05:00
Sebastian Malton
13673eaac4 Move all utility functions to separate package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:24 -05:00
Sebastian Malton
83950f46ce Simplify convertToWithIdWith
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:24 -05:00
Sebastian Malton
1fc31d39ca Add documentation for verifyRunnablesAreDAG
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:24 -05:00
Sebastian Malton
d12f59a6a4 Fixup type errors due to new Runnable requirements
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:24 -05:00
Sebastian Malton
ecf3eff8d4 Convert runMany and runManySync to use injectManyWithMeta
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 13:30:23 -05:00
Sebastian Malton
6ca4af8284
Add displaying @k8slens/* versions in about when not latest (#7257)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-02 08:03:42 -05:00
Juho Heikka
6df01ba468
Fix cluster metadata detectors (#7255)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-03-01 11:49:18 -05:00
Sebastian Malton
c67230f322
Cleanup getDi and registering injectables (#7251)
* Cleanup getDi and registering injectables

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Create more explicit application

- Make testing use more production code

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix uses of getEnvironmentSpecificLegacyGlobalDiForExtensionApi

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>
2023-03-01 10:46:08 -05:00
Sebastian Malton
3433bc6fe0
Fix extension install (#7247)
* Fix extension install

- Remove old bundled extension dependencies
- Make sure external extensions are installed as optional

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Ignore ENOENT errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add comment

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-01 08:11:49 -05:00
Sami Tiilikainen
ec81af4e6c
Revert "Renderer file logging transport (#6795)" (#7245)
Renderer file logging still caused UI freezing (at least on apple silicon macs) when cluster frame was open and main frame was reloaded.

See #544

This reverts commit ac2d0e46ff.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2023-02-28 09:02:42 -05:00
Sebastian Malton
d29615c089
Quick fix for store migration version being wrong (#7243)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-27 13:31:45 -08:00
Janne Savolainen
003dc44681
Upgrade and adapt to new version of libraries in ogre-tools (#7241)
* Update injectable version

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Adapt to new version of ogre-tools

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix "lint:fix" -command in core

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

---------

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2023-02-27 14:27:36 -05:00
Panu Horsmalahti
b2160ae06c
Throw on errors in kubectlApplyFolder (#7239)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2023-02-27 14:30:30 +07:00
Sebastian Malton
3067e82e02
Remove all references to slack (#7233)
* Remove all references to slack

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix readme

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Cleanup migration

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove existing slack link from weblink store

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix type error and wording on ErrorBoundary

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Don't export forumsUrl to extension API

- Also just remove slack URL

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Update snapshots again

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Update snapshots again v3

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Revert remove slackUrl

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix filtering

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix readme

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* More of a fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Try again

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Slightly better for now

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-24 17:04:15 -05:00
Sebastian Malton
dc39dc9c62
Allow extensions to opt-out of KubeApi auto registering (#7217)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-24 10:44:35 -05:00
Sebastian Malton
f2a229cef6
Fix ApiManager not handling duplicate apiBases of KubeApis (#7235)
* Add failing unit test

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix failing unit test

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-24 10:44:19 -05:00
Juho Heikka
2550b1efbd
Fix catalog avatar font size (#7226)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-02-23 16:03:45 +02:00
Janne Savolainen
688336647d
Extract injection token for application information to separate NPM package (#7211)
* Introduce dummy package for application

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Introduce application information token in application Feature

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Switch to using applicationInformationToken from application feature

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

---------

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2023-02-22 11:58:05 -05:00
Alex Andreev
4e02bdce6d
Fix PodList TableHead overflow (#7212)
* Remove transparent bg on .flat TableHead

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix TableHeads not to be sticky

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

---------

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-22 15:28:36 +03:00
Alex Andreev
52660ef75c
Fix dropdown items readability in Dock (#7209)
* Remove Select's outlined theme

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Updating snapshots

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

---------

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-22 14:47:05 +03:00
Roman
df1b947870
[UX]: allow to navigate to namespace-details from other resource details view (#7203)
* UX: allow to navigate to namespace (if available) in every kube-resource details view (via: `<KubeObjectMeta/>`)
2023-02-21 20:23:05 +04:00
Juho Heikka
d8acff67d1
Fix ensure hashed directory for extension (#7188)
* Fix ensure hashed directory for extension

Earlier open lens versions stored extension_data directory based on
path of extension's package.json. This causes problems
because extensions have moved to new location. This ensures
backward compatibility that extension will get the same
directory than before the change.

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Reconstruct the key for old hashed directories

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Remove unnecessary return

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Use sync version of random bytes

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Add migration to new type of key

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Fix global override for random bytes to not return a promise

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Make registeredExtensions a dependency

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

---------

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-02-21 16:09:03 +02:00
Roman
b3ae5a0446
Fix: removed duplicated labels & annotations for Node-details view. (#7202)
By default this info is shown in every resource-details view (`default-kube-meta-details-item.injectable.ts` injects `<KubeObjectMeta/>` at the top of details-view contents)

Signed-off-by: Roman <ixrock@gmail.com>
2023-02-21 07:49:57 -05:00
Alex Andreev
219a683890
Fix empty pod logs tab content (#7177)
* Replace logsViewModelInjectable lifecycle
to keyedSingleton

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Await logs view model to instantiate

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove async from instantiating LogTabViewModel

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix LogList overflow (#7178)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

---------

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-17 13:22:34 -05:00
Sebastian Malton
ff95eaefd6
Fix external extensions not loading initially (#7189)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-17 13:19:49 -05:00
Sebastian Malton
dafdabc24b
Export requestMetrics to extension api (#7167)
* Export requestMetrics to extension api

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fixup typing

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Revert change

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Make diff smaller

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-17 09:19:44 -05:00
Sebastian Malton
2959e01d1e
Add support for specifying orderNumber for ClusterPageMenus (#7166)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-17 03:55:17 -08:00
Jari Kolehmainen
c94dce2c29
Fix chromium net error codes (#7180)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-16 10:51:57 -05:00
Jari Kolehmainen
415a133085
Change extension ipc registration log level from info to debug (#7175)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-16 07:52:09 -05:00
Janne Savolainen
4bf72742fd
Fix configuration shown release details being stale (#7174)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2023-02-16 07:49:43 -05:00
Roman
54e874f646
Replication Controllers (new resource view) (#7154)
* New resource view: ReplicationController -- scaffolding files

Signed-off-by: Roman <ixrock@gmail.com>

* fix: inappropriate names after copy-pasting

Signed-off-by: Roman <ixrock@gmail.com>

* update replication controller api types/spec, fix menu title

Signed-off-by: Roman <ixrock@gmail.com>

* items list + details list views (added contents from replication controllers), lint fixes

Signed-off-by: Roman <ixrock@gmail.com>

* allow to scale replication controllers

Signed-off-by: Roman <ixrock@gmail.com>

* switched for scaling replicas with `Slider` component instead of `Buttons+Input`

Signed-off-by: Roman <ixrock@gmail.com>

---------

Signed-off-by: Roman <ixrock@gmail.com>
2023-02-16 07:48:24 -05:00
Sebastian Malton
79e5c9c431
Add bundled extension versions to 'About Lens' (#7163)
- Only during non-stable versions

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-15 09:46:22 -05:00
Janne Savolainen
fbb37c6717
Fix extension installation by not removing the package.json (#7161)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2023-02-15 05:16:58 -08:00
Panu Horsmalahti
3f0de0550e
Enable extension to specify storeName for persisting data (#7107)
* Enable extension to specify storeName for persisting data

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Add unit tests and update injectables

Signed-off-by: Antti Lustila <antti.lustila@luotocompany.fi>

* Remove unnecessary mock

Signed-off-by: Antti Lustila <antti.lustila@luotocompany.fi>

---------

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
Signed-off-by: Antti Lustila <antti.lustila@luotocompany.fi>
Co-authored-by: Antti Lustila <antti.lustila@luotocompany.fi>
2023-02-15 14:56:56 +02:00