* 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>
* 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>
* 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>
* 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>