* Introduce feature for assigning keyboard shortcuts
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Enable keyboard shortcuts automatically instead of requiring explicit listener to be used in the application
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Start using keyboard shortcuts feature
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Update package-lock after rebase
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Tweak scripts for a package
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce modifier for ctrl or command based on platform in use
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Get dev mode fixed
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add empty scripts for windows to satisfy run-script-os
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Refactor out Cluster.apiUrl to direct reading
- Should help prevent using stale data
- Removes some uses of synchronous FS operations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Rename helper function to better communicate intent
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Improve prometheus handler tests to override less things
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix crash due to non base64 encoded secrets
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix app crash on quit (#7407)
* Fix app crash on quit
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Back out disabling extensions on quit
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup cherry-pick
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix webpack config for react
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce package for discovering html elements in unit tests
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using discovery of html elements from package
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce competition for starting react application inside the Feature
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Move stuff in application start to earlier timeslot having no real need to be done so late
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using react application root feature being more friendly to extending
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using more familiar pattern of higher order components for wrapping react application
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Adapt to more familiar pattern for higher order components
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Rename feature for clarity
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove requirement for JSON of messages
- Remove backhanded requirements of reactive contexts, overriding
application configurations.
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Adding HelmChartIcon tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* HelmChartIcon refactoring
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fine-tune styles in HelmChartDetails
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding styles to separate module
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Clean up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fixes
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>
* Rename ExtensionStore -> BaseExtensionStore
- The name was too close to ExtensionsStore
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move ExtensionsStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move ClusterStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move UserStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cleanup types to remove multiple cast locations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move HotbarStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move WeblinkStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move FileSystemProvisionerStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Clean up impl and rename to better describe intent
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix remaining type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the enabled extensions storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the clusters storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the hotbar storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the weblinks storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fully split apart the user preferences storage
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix crashing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests and snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix integration test failures
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Improve typing to prevent errors in the future.
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cleanup @k8slens/messaging and friends
- To fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix lint issue
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix global override not being complete enough causing tests to fail
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Bump memory for unit tests on CI
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Attempt to fix memory issue on CI again
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup test because of new injectables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Upgrade Jest
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix unit tests falling over
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Back out jest config change
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove console log
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests by matching equality instead of snapshots
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests by forcing specific snapshot style
- Ubuntu CI seems to format arrays in snapshots differently than macOS locally
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* refactor electron window setCertificateVerifyProc
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use ChromiumNetError enum in tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* Fix unit 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>
* Use container name as downloaded file name
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Specify container to call for logs query
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Support using Eviction API when deleting Pods and Deployments, fix#5602
Signed-off-by: Roman <ixrock@gmail.com>
* fix: `KubeStatus` message/status/info full explanation
Signed-off-by: Roman <ixrock@gmail.com>
* added some tests for `PodApi.evict(resourceDescriptor)`
Signed-off-by: Roman <ixrock@gmail.com>
* revert props.editable & props.removable for `KubeObjectMenu`
Signed-off-by: Roman <ixrock@gmail.com>
* revert props.editable & props.removable for `KubeObjectMenu` -- missing parts
Signed-off-by: Roman <ixrock@gmail.com>
---------
Signed-off-by: Roman <ixrock@gmail.com>
* Add clusterIconSettingsComponentInjectionToken
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding tests for new token
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Create cluster-settings package
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix cluster-settings package build process
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use tolens from @k8slens/cluster-settings
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove typescript 5.x.x from cluster-settings package
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding prepare:test command to package.json
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Test small cleanup
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix getByText check
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Clean up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Check for updates -> Check for Updates
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Revert debugging changes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding ellipsis to every Check for Updates items
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Simplify CRD KubeApi registrations
- Switch to auto injectable registrations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make sure that stores can still be retrieved
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cleanup get extension fake to simplify impl
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Simplify logic for extensionInjectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix test in differencing registrator
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Cleanup code style
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix some tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix HPA details tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* 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>
* Renderer file logging through IPC
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Remove pagehide event listener as it may cause UI to freeze
Pagehide was needed in cluster frame to better handle main frame close/reload situation. But even empty pagehide listener in cluster frame seems to freeze the UI at least on some situations (multiple clusters open).
Beforeunload is not always executed in cluster frame when main frame is reloaded/closed, leaving log files open. To fix that, `stopIpcLoggingInjectable` is introduced to close all log files.
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Remove unnecessary formatting changes
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Lint fix
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Winston logger override
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Remove usage of doGeneralOverrides as it has been removed
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Update imports to match the new base
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Remove unnecessary id
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Review improvements
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Extract beforeunload listener to injectable
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Typo fix
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
---------
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Fix type error in new @k8slens/messaging
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Better fix to conform to tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* electron 22.3.3.
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix typo
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix crash on quit
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix sessionData app path
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* Fix errors after merging new feature
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>
* Add custom jest resolver to fix requiring "uuid" module
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Update dependencies
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce test utils for rendering and running with thrown mobx reactions
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Extract startable-stoppable to NPM package
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Extract messaging to NPM package
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using startable-stoppable from NPM package
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using messaging from the Feature
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove old implementation of messaging
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make setupping app paths happen earlier in renderer
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix typo
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add kludge to make testing-library work properly from test-utils package
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix code style
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add lint:fix -root script
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix unrelated failing unit tests
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Turn of no-floating-promises from typescript linting for being broken
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make linting not happen for dist -directories
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make linting failures appear as failure
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Stop running prettier twice
It already gets ran as eslint-plugin.
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make CI run unit tests for all packages by consolidating name of NPM script
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add missing unit tests for coverage
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Skip coverage for test utils
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove check for coverage in packages which are not ready for it
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Stop collecting coverage from index.ts files them being indirections to the implementation
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Implement sending message to channel in main
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add missing feature dependencies
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add dummy implementations for requesting in main from renderer
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Re-enable communicating from main to cluster frames
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Ignore trivial files from coverage
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Update package-lock
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Extract message-bridge to separate NPM package to prevent dev dependencies being in the production bundle
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Extract computed channel to own NPM package for clear dependencies
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Consolidate electron related stuff to a directory
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add missing publish configurations
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Ignore test implementation from coverage being not interesting
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix problems when using 'npm link'
- Add missing peerDependencies and devDependencies
- Move 'overrides' to root package to fix audit issues
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type issue and remove deprecated @types/* deps
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixing type errors harder
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* destroy resolve system proxy window on before quit
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* resolve system proxy window: load blank page
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* disable paintWhenInitiallyHidden
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix resolve system proxy error when no windows available
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix electronBrowserWindowInjectable id
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* Fix catalog list table view
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Wrap ingresses rules
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Reduce Badge sizing
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Do not text-overflow:ellipsis in Pod names
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Save a room to table head cells
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Update snapshots
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add iconBackgroundColor cluster preference type
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Set custom backround for hotbar entities
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove unused code from Catalog
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Update entity background if preferences background changes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Set avatar backgrounds from entity
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Clean up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Clean up in hotbar entity icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix setting up entity background
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use single icon prop
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Cleaning up hotbar entity icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing test to ensure icon has data:image
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add more test cases
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix bundled extensions not being loaded
- Also show that this fixes it by added an example bundled
extension to 'open-lens'
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix build
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add explanatory comment for inline require
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move activating cluster into injectable IPC
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move deactivating a cluster into injectable IPC
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Take cluster settings menu icon items from computedInjectMany
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing changed cluster preference typing: using tuple array
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Export data from cluster-settings-menu-injection-token
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Exporting ClusterPreferences to extensions
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove legacy api token export
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Removing legacy exports part 2
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove workflow
- Not applicable anymore since each package has its own version
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix daily-alpha to be based on core version
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* lerna.json no longer will be updated during releases
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Use the prerelease parts of @k8slens/core to determine dist tag
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Release 6.5.0-alpha.1
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Switch to having lerna in independent mode
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix package versions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* alternative to https://github.com/lensapp/lens/pull/7187
Signed-off-by: Roman <ixrock@gmail.com>
* update snapshots with `jest src -u` from `packages/core`
Signed-off-by: Roman <ixrock@gmail.com>
* skipping some tests cause i have no idea how to fix those and what is wrong
Signed-off-by: Roman <ixrock@gmail.com>
* fix tests
Signed-off-by: Roman <ixrock@gmail.com>
---------
Signed-off-by: Roman <ixrock@gmail.com>
- Now the callback is provided with an object containing either
`mainDi` or `windowDi` fields. This should help with confusion
over which environment the `di` is for
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Better displaying container's info for Pods and all tooltips with `formatters={{tableView: true}}`
Signed-off-by: Roman <ixrock@gmail.com>
* fix: keep containerID on a single line
Signed-off-by: Roman <ixrock@gmail.com>
* nope, i can :P (make it perfect)
Signed-off-by: Roman <ixrock@gmail.com>
---------
Signed-off-by: Roman <ixrock@gmail.com>
* Introduce package for sharing eslint and prettier configurations
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Start using eslint and prettier in packages
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* 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>
* Add support for using release branch targetted PRs (#7291)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix namespaces not respecting accessible namespace config (#7279)
* Fix namespaces not respecting accessible namespace config
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix warning hover text formatting
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Log state after refresh accessibility
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix NamespaceStore.allowedNamespaces
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove unnecessary '?'
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add deprecation messages
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move selected_namespaces storage to injectable
- And its initialization
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Implement contextNamespaces logic in forNamespacedResources
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix formatting
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix formatting
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix test
- This was a side effect of the previous bug fixes where
the clusterContext.hasAllSelected was previously erroneously 'false'
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Change log level
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix another test suite
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix not showing some non-core kinds (#7303)
* Fix not showing some non-core kinds
- Specifically if a Kind is not present within the preferredVersion of
a group then we don't know that resource exists
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add technical tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove option to doGeneralOverrides and do it always
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Override telemetry by default to optimize and simplify testing
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Simplify more usages of getDiForUnitTesting
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix code style
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Navigate to catalog explicitly on cluster disconnect
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Extract CatalogEntityDetails to seperate root component
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Expose entity details to extension API
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add behavioural tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixup catalog technical tests to use ApplicationBuilder
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update snapshot
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update test and then fix it
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
The fix was to defer injection. The error was made possible in master by git-merging a PR which was
falsely green.
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Drop support for adding telemetry by tagging
This was not used, and would make development of future feature more difficult.
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Introduce white-listing for params of telemetry
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Fix linting
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Make misconfigured telemetry for function parameters log the error, and not blow up fatally
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
---------
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Introduce an agnostic way to start application is the Feature
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce directory for application-packages
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove non agnostic timeslots from agnostic application
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce empty package for electron main specific stuff for Application Feature
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce electron-main specific timeslots
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Update injectable version
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Update README
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Tweak export names to make them easier to import
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make starting of application synchronous for Electron main
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Tweak versions in package jsons
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Consolidate name of feature file
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* 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>
The cause for this was unknown, and was fixed by using "fork-ts-checker-webpack-plugin" instead of
"ts-loader".
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Iku-turso <mikko.aspiala@gmail.com>
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>
* General fixes for release-tool
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Revert change to number of PRs retrieved
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* 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>
* 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>
* Various improvements to release-tool
- Pass more IO from script to user to provide better UX
- Interactive versioning using lerna directly
- Remove all CMD args in favour of interactive
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove some more unnecessary console logs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Resolve comments
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix repoRoot issue
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* De-spagetti-ify release-tool
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix bugs related to picking PRs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix name
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Improve display after picking PRs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Rename pickWhichPRsToUse
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add line describing what to do
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix not displaying output after cherry-pick fails
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Roman <ixrock@gmail.com>
* 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>
* Add missing dev script
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Inline all shared scripts to make them work in all environments
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using deterministic fake for path.join in unit test
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make multi export config for webpack not fail when used in windows
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* 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>
* 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>
* Add package for shared webpack configurations for Lens applications, Features and libraries
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove duplication from gitignores
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add package for shared jest configurations for Lens applications, Features and libraries.
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add root level script for running unit tests in monorepo mindset
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Ignore coverage files from VCS
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* 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>
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>
* Switch to using npm over yarn
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove reference to `yarn` from documentation
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Enable NPM workspaces
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce script for installing all dependencies
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove usage of lerna bootstrap for no longer being used
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix build by not bundling libraries for application in node environment (main) as Electron does that
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Tweak evil static import paths in build of application
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Consolidate npmrc configs to root since required by workspaces
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make application build not fail for not detecting electron version
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Update package-lock
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make sure native dependencies are rebuilt for electron
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove unused binary for causing trouble when installing dependencies
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Update package-lock
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Disable caching in CI for Windows
Installing Electron in Windows seems to be broken in this regards.
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
* 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>
* 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>
* 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>
* 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>
* Add a bit of spacing before Installed extensions title
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Update snapshot
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix daily-cron failing to bump version
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix variable name
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Close dock tab only if submit() resolved
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Close dock tab only if all resources successfully created
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Simpler error throw
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Initial tests for <NamespaceTreeView />
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Introduce <NamespaceTreeView/>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Render namespace children
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Render a child subnamespace
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove unused lodash import
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Render subnamespace badge after name
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Testing rendering 2 levels deep
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add tree view to namespace details
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Expand all nodes by default
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add links to the tree items
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Initial label styling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Label and group styling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove fontSize attr from SvgIcon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Expand and collapse tree nodes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Testing clicking plus icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Restyling subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding tooltip for subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix linter harder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Replace CloseIcon with semi-transparent MinusIcon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Styling TreeView inside scss module
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Move isSubnamespace method inside API
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Extract nodeId to avoid repeating
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Rename Icon components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Clean up tests from boilderplate
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Subnamespace badge style fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use font-size: x-small instead of rem units
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Move subnamespace badge show check to parent
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use prevDefault util
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Refactor: move tree build logic to store
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Refactor hierarchicalNamespacesInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add tests for getNamespaceTree() function
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use Subnamespace badge in namespace list (#7132)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Renderer file logging transport
Add file logging to renderer, writing separate log files for renderer main frame and each cluster frame.
Related to lensapp/support-lens-extension#118
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Switch renderer file log level to info
There is too much noise on debug level from api responses etc
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Unmount on pagehide instead of beforeunload
It seems cluster onbeforeunload is not triggered when iframe is removed from dom by the parent (when disconnecting a cluster).
While on root/main frame the beforeunload event does work, it seems to be adviced to use pagehide instead.
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Close log files on unmount
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Improve file handle closing in different situations
This should cover reloading main and cluster frames and closing cluster frame throught disconnecting cluster. No file handles should be left open now.
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Fix renderer log rotation
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Switch back to beforeunload in root frame
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Remove capturing phase event usage
Does not seem to be needed for log files to be successfully closed and caused integration tests to fail.
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
---------
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* core webpack dependencies as externals
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use fork-ts-checker-webpack-plugin
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* 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>
* Move @k8slens/generate-tray-icons to seperate package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Rename very long folder name to fix issue on windows
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make it possible to build on windows using powershell
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix integration tests on windows
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Don't error on close directly
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Switch to type: module for generate-tray-icons
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make more packages type:module
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix scripts needing node
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* fix ensure-binaries bin
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix dist file extension
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use type: module
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix lerna/yarn timeouts on windows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* increase install dependency retry timeout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to develop & build on windows powershell
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove hardcoded bash shell from test workflow
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use rimraf
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
---------
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* 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>
* Move downloading binaries to new package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove old location from files
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Swtich @k8slens/download-binaries to provide a binary
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add reusable CLI for parsing semver
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Use CLI to specify dist-tag
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove dead scripts
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add git ignore
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix publishing @k8slens/node-fetch
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Switch to specifying access via yarnrc
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* 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>
* Do not block config map details scrolling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix linter
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add ability for KubeApi to filter server versions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update error message
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Check preferred version for PodDistruptionBudgets
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Limit which versions can be used
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make sure that details are show for all versions
- Remove duplicate versioning checks since everything must go through the API anyway
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove unnecessary logger as dep
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add ability for KubeApi to filter server versions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update error message
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Show metric name is targetCPUUtilizationPercentage is used
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Testing metric names in HPA details
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
* Add ability for KubeApi to filter server versions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update error message
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>
* 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>
* unify build fs layout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use currentApp path for static files
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* lint fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to import open-lens
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to customize both main & renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix compile-library script
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove bundled extensions
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* similar interface for both main & renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use startApp on both sides
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix startApp import
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix startApp import
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* Fix injection cycle (somehow)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* use cwd in download_binaries
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* introduce applicationInformationToken
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* register applicationInformationInjectable in main & renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to define bundled extensions via appStart
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* compile node-fetch automatically via prepare
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* define peerDependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* webpack fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* rename application-information-token.injectable.ts -> application-information-token.ts
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* monaco-editor as externals
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* refactor application-information
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* introduce bundledExtensionInjectionToken
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* mark library exports as experimental
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* move extension npm package files & add release automation
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* add missing build files to package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix bad merge conflict resolve
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix package.json name
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to set mode via startApp
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* revert unnecessary changes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* webpack: fix extensionOutDir
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove unnecessary peerDependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* introduce nodeEnvInjectionToken
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove NODE_ENV from environmentVariablesInjectable
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix jest modulePathIgnorePatterns
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix duplicate injectable registration
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix build executableName
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
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>