1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

3620 Commits

Author SHA1 Message Date
Sami Tiilikainen
ac2d0e46ff
Renderer file logging transport (#6795)
* 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>
2023-02-08 05:50:22 -05:00
Alex Andreev
30ca560937 Linter fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-06 11:28:06 +03:00
Alex Andreev
014174e04b Subnamespace badge style fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-06 11:27:50 +03:00
Alex Andreev
074c0aa087 Merge branch 'master' into enhancement-namespace-tree-view 2023-02-06 10:35:01 +03:00
Alex Andreev
b0ab29095e Clean up tests from boilderplate
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-06 10:34:31 +03:00
dependabot[bot]
c12561f7d8
Bump http-cache-semantics from 4.1.0 to 4.1.1 (#7108)
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 13:28:33 -05:00
dependabot[bot]
e0195117d5
Bump @swc/cli from 0.1.59 to 0.1.61 (#7096)
Bumps [@swc/cli](https://github.com/swc-project/cli) from 0.1.59 to 0.1.61.
- [Release notes](https://github.com/swc-project/cli/releases)
- [Commits](https://github.com/swc-project/cli/compare/v0.1.59...v0.1.61)

---
updated-dependencies:
- dependency-name: "@swc/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 09:54:58 -05:00
dependabot[bot]
4c44e1948c
Bump @swc/core from 1.3.31 to 1.3.32 (#7090)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.3.31 to 1.3.32.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.3.31...v1.3.32)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 09:50:55 -05:00
Sebastian Malton
28d2ccf0fe
Release 6.4.0-beta.13 (#7106)
* Release 6.4.0-beta.13

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix create-release-pr after fresh bootstrap

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-03 09:10:04 -05:00
Alex Andreev
70ca90f3ae Rename Icon components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-03 16:28:23 +03:00
Alex Andreev
c594cb4c25 Extract nodeId to avoid repeating
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-03 16:27:02 +03:00
Alex Andreev
fa87ab5157 Move isSubnamespace method inside API
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-03 16:23:19 +03:00
Alex Andreev
db0cb45a30 Styling TreeView inside scss module
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-03 16:17:43 +03:00
Jari Kolehmainen
65175377d0
fix common extension api bundling (#7099)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-03 15:15:08 +02:00
Alex Andreev
ef618f3f74
Merge branch 'master' into enhancement-namespace-tree-view 2023-02-03 16:02:29 +03:00
Jari Kolehmainen
205dc5127f
fix open-lens package missing fonts (#7100)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-03 13:26:18 +02:00
Alex Andreev
c2b38591c4
Merge branch 'master' into enhancement-namespace-tree-view 2023-02-03 13:40:19 +03:00
Jari Kolehmainen
f291150044
Fix invalid bin links causing errors on windows (#7101)
* fix invalid bin links causing errors on windows

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* add --include-dependencies

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

---------

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-03 12:21:41 +02:00
Jari Kolehmainen
5002b450fd
Set core webpack dependencies as externals (#7094)
* 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>
2023-02-02 16:52:21 +02:00
Alex Andreev
f8519e6ebd
Merge branch 'master' into enhancement-namespace-tree-view 2023-02-02 16:54:02 +03:00
Sebastian Malton
6d2efb99e7
Export more things for the extension API (#7088)
* Export more things for the extension API

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Provide more insight into the dist-tag computation

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-02 08:28:56 -05:00
Alex Andreev
0df260ecd0 Replace CloseIcon with semi-transparent MinusIcon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-02 12:51:55 +03:00
Alex Andreev
65a4e2b90a Merge branch 'master' into enhancement-namespace-tree-view 2023-02-02 11:59:37 +03:00
Sebastian Malton
7a57a89194
Release 6.4.0-beta.12 (#7086)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-01 16:13:39 -05:00
Sebastian Malton
b94a4a0664
Fix publish release use of internal package (#7085)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-01 16:11:25 -05:00
dependabot[bot]
5953510c11
Bump @typescript-eslint/eslint-plugin from 5.49.0 to 5.50.0 (#7075)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.49.0 to 5.50.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.50.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:56:47 -05:00
dependabot[bot]
c81a83ee84
Bump sass from 1.57.1 to 1.58.0 (#7073)
Bumps [sass](https://github.com/sass/dart-sass) from 1.57.1 to 1.58.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.57.1...1.58.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:54:38 -05:00
dependabot[bot]
e548d9b024
Bump @typescript-eslint/parser from 5.49.0 to 5.50.0 (#7074)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.49.0 to 5.50.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.50.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:54:00 -05:00
dependabot[bot]
fef8e98fef
Bump @swc/cli from 0.1.59 to 0.1.60 (#7072)
Bumps [@swc/cli](https://github.com/swc-project/cli) from 0.1.59 to 0.1.60.
- [Release notes](https://github.com/swc-project/cli/releases)
- [Commits](https://github.com/swc-project/cli/compare/v0.1.59...v0.1.60)

---
updated-dependencies:
- dependency-name: "@swc/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:53:52 -05:00
Sebastian Malton
b982d41c55
Release 6.4.0-beta.11 (#7084)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-01 15:45:04 -05:00
Sebastian Malton
b19e355e0e
Move @k8slens/generate-tray-icons to seperate package (#7057)
* 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>
2023-02-01 11:41:44 -08:00
Jari Kolehmainen
89b2aab75d
use rimraf for node_modules remove (#7083)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-01 17:13:37 +02:00
Jari Kolehmainen
76c025f04c
Fix ensure-binaries bin (#7078)
* 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>
2023-02-01 17:13:13 +02:00
Alex Andreev
8c0f85a20b
Merge branch 'master' into enhancement-namespace-tree-view 2023-02-01 17:18:38 +03:00
Jari Kolehmainen
df6f4b5fa0
Allow to develop & build on Windows powershell (#7081)
* 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>
2023-02-01 15:58:18 +02:00
Alex Andreev
4ab9f73e35 Merge branch 'master' into enhancement-namespace-tree-view 2023-02-01 15:02:02 +03:00
Alex Andreev
074536d529 Fix linter harder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 14:33:37 +03:00
Alex Andreev
8c8701f8a6 Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:54:13 +03:00
Alex Andreev
1489264953 Adding tooltip for subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:42:53 +03:00
Alex Andreev
78e77f7536 Restyling subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:37:21 +03:00
Alex Andreev
752c60d755 Testing clicking plus icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:31:46 +03:00
Alex Andreev
0ecf00ed03 Expand and collapse tree nodes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:29:22 +03:00
Alex Andreev
e6ab47f1eb Styling subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 10:02:22 +03:00
Alex Andreev
270f7f839d Remove fontSize attr from SvgIcon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 09:45:28 +03:00
Alex Andreev
e4221d891c Label and group styling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 09:43:52 +03:00
dependabot[bot]
f445bd4eb9
Bump esbuild from 0.17.4 to 0.17.5 (#7061)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.17.4 to 0.17.5.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.17.4...v0.17.5)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 11:31:08 -05:00
dependabot[bot]
2c97c68e3c
Bump @swc/core from 1.3.30 to 1.3.31 (#7060)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.3.30 to 1.3.31.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.3.30...v1.3.31)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 11:30:57 -05:00
dependabot[bot]
77cd89c54b
Bump typedoc from 0.23.23 to 0.23.24 (#7062)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.23 to 0.23.24.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.23...v0.23.24)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 11:30:40 -05:00
Jari Kolehmainen
d3c4816e4b
set cwd when spawning kube auth proxy (#7069)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-01-31 18:23:29 +02:00
Sebastian Malton
9ca8dc86fd
Rename extension api parts as 'extensionApi' (#7066)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-31 10:00:49 -05:00