Sebastian Malton
2164b4b010
Remove legacy IPC usage
...
- From extension installation state store
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 13:34:46 -05:00
Sebastian Malton
ac6e3e18e2
Fully convert ExtensionDiscovery to be injectable
...
- To fix unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 13:34:46 -05:00
Sebastian Malton
7f86a89cc2
Fully convert ExtensionLoader to be injectable
...
- To fix unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 13:34:46 -05:00
Sebastian Malton
aeea8640ce
Fix tests
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 13:32:10 -05:00
Sebastian Malton
cfe2a2fbee
Add clarifying comment
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 12:32:42 -05:00
Sebastian Malton
7cda0792b7
Fix type errors
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 12:32:42 -05:00
Sebastian Malton
b79f906ad5
Fix tests
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 12:32:42 -05:00
Sebastian Malton
8f508d1582
Fix rebase
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 12:32:42 -05:00
Sebastian Malton
d85a64a931
Fix lens-extension tests
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 12:32:41 -05:00
Sebastian Malton
a045006a02
Simplify extension dependency injection
...
- Has better typing
- Removes use of unnusual unique symbol
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 12:32:41 -05:00
Sebastian Malton
e3c0bc34fd
Introduce clearer boundry between extensions
...
- Bundled extensions are always enabled, and are always compatible
- Have bundled extensions be loaded asyncronously to support
typescript dynamic import (which is typed) as opposed to require
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-03-01 12:32:33 -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
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
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
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
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
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 and Antti Lustila
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
Sebastian Malton
6d2efb99e7
Export more things for the extension API ( #7088 )
...
* Export more things for the extension API
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Provide more insight into the dist-tag computation
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 >
2023-02-02 08:28:56 -05:00
Sebastian Malton
a73f166f1f
Fix @k8slens/extensions being broken after monorepo ( #7058 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-01-30 16:32:30 -05:00
Jari Kolehmainen
4a47e92b95
Allow computed catalog source from extension ( #7053 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2023-01-30 09:37:31 -05:00
Jim Ehrismann
a8a59ff191
introducing vpa resources ( #7004 )
...
* introducing vpa resources (as hpa resources to start)
vpa spec (WIP)
adding real vpa fields
scss files, and updates after rebase on master
scss update
tweaks to vpa api definition
putting more fields into the vpa list
adding vpa details, fixing vpa spec implementation (WIP)
vpa details page done
merge conflicts
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* moved files after monorepo merge
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* address review comments, added vpa endpoint to endpoints export list
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* deprecate HPAStore in favour of HorizontalPodAuotoscalerStore
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
---------
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2023-01-27 16:33:13 -08:00
Sebastian Malton
20c0fd912f
Fix building docs and verify:docs workflow ( #7013 )
...
* Fix building docs and verify:docs workflow
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix commands
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-01-25 13:59:21 -05:00
Jari Kolehmainen and Sebastian Malton
7e8ae3fded
Move node-fetch to separate package ( #7009 )
...
* move node-fetch to separate package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix node-fetch package runtime error
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix test:unit nx dependency
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix test:unit nx dependency
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* Add prepare step for node-fetch
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Update lock
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove dead comment
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove unnecessary fetchModuleInjectable
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 >
2023-01-25 17:13:41 +02:00
Jari Kolehmainen
2657df2293
Restructure to monorepo ( #6907 )
...
* wip: restructure to monorepo
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor create-release-pr to a package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* build fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* github workflow fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix typo
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* add webpack-env types to core
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix github workflows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor/fix integration tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* lint fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* yarn run dev
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* eslint settings for vscode
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* move templates to right package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* open-lens build fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* integration test fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix nx task dependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* use bash shell for unit tests in test workflow
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix test:unit for windows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix win-ca webpack error in open-lens
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix win-ca webpack error in open-lens
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix build:app on windows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove ELECTRON_BUILDER_EXTRA_ARGS
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* sync src/ from master
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove Makefile from core
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2023-01-24 10:46:26 -08:00