* fix: Dispose the kubeconfig watcher when application quits
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* fix: Dispose the extension watcher when application quits
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Persist apiVersion when editing resources in monaco
- Use a new custom k8slens prefixed label
- Means that users aren't surprised when they use lens to update a
resource to a new apiVersionWithGroup
- Doesn't touch the versions in the stores
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* fix: Fix lint issues
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: make lint not bail on failure
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: Run lint:fix on all files
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
- 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>
* feat: Allow built versions to specify an environment
- This should be hard coded at build time
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: Add default value to open-lens
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: Add --no-bail to test script invocations
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* chore: Add tests for coverage of new code
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>
* Behavioural tests and log file rename
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Update messaging to work with new base
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Move files to feature
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
---------
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
* Introduce getWorkloadKindFromUrl() method
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Whitelist kind param to 'show-details' event
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Using parseKubeApi instead of new utility
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding checks for empty selfLink
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
---------
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* no updates available
Signed-off-by: Gabriel <gaccettola@mirantis.com>
* lint fix
Signed-off-by: Gabriel <gaccettola@mirantis.com>
* lint padding-line-between-statements
Signed-off-by: Gabriel <gaccettola@mirantis.com>
* test stubs - wip
Signed-off-by: Gabriel <gaccettola@mirantis.com>
* tray - when no new update is discovered showMessagePopupMock toHaveBeenCalled & toHaveBeenCalledWith
Signed-off-by: Gabriel <gaccettola@mirantis.com>
* fake tray and fake menu parity
Signed-off-by: Gabriel <gaccettola@mirantis.com>
* tray and menu passing tests and lint
Signed-off-by: Gabriel <gaccettola@mirantis.com>
---------
Signed-off-by: Gabriel <gaccettola@mirantis.com>
* fix: Add check in release-tool for no relevant PRs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* fix: Change wording of message while picking PRs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* 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>