* Add behavioural tests to cover bug fix
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove previous fix to fix last test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* More consistent impl of flushPromises
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove ContextHandler test (dead code)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix PrometheusHandler describe text
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add useful case test-utils helper
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Rename file to match token
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cleanup tests to fix type errors and use tables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Convert runMany and runManySync to use injectManyWithMeta
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup type errors due to new Runnable requirements
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add documentation for verifyRunnablesAreDAG
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Simplify convertToWithIdWith
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move all utility functions to separate package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move testing utilities to separate package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move run-many and run-many-sync to separate package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Replace all internal uses of utilities with new packages
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Use new @k8slens/run-many package in core
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add dep to open-lens
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup uses of @k8slens/test-utils
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup getGlobalOverride
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move tests to new package too
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup uses of AsyncResult and autoBind
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup remaining import issues
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Finial fixups to fix build
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Revert moving "testUsingFakeTime" to separate package
- This fixes tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix unit test failing due to spelling fix
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
- requestNamespaceListPermissions is infallable so no need to have the extra try/catch
- Refactor isMetricHidden method away from Cluster
- Refactor shouldShowResource out of Cluster
- Refactor isInLocalKubeconfig out of Cluster
- Remove depecrated and unused workspace from Cluster
- Refactor out kubectl as a dependency of Cluster
- Remove from cluster getter used only once
- Split out ClusterConnection from Cluster
- Also split out KubeAuthProxyServer from ContextHandler
- Rename ContextHandler to PrometheusHandler
- Cleanup onNetworkOffline/Online impls within ClusterManager
- Remove annotations from ClusterConnection
- Remove mobx annotations from Cluster
- Rename loadConfigFromFileInjectable
- Remove all uses of dead createClusterInjectionToken
- Fix type errors related to broadcastConnectionUpdate
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* 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>