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

3290 Commits

Author SHA1 Message Date
Roman
3fc5a0a81d allow to mark as default IngressClass from menu item
Signed-off-by: Roman <ixrock@gmail.com>
2023-01-05 15:34:45 +02:00
Roman
0f1cb787e8 fix: IngressClass proper metadata typing
Signed-off-by: Roman <ixrock@gmail.com>
2023-01-04 14:35:17 +02:00
Roman
a2aa0ba8cc fix: incorrect apiName for front-end-routing/cluster/network/ingress-class
Signed-off-by: Roman <ixrock@gmail.com>
2023-01-03 18:25:50 +02:00
Roman
4255933688 fixes: remove duplicating / allow editing IngressClass items (due api's "namespaced=true")
Signed-off-by: Roman <ixrock@gmail.com>
2023-01-03 18:21:59 +02:00
Roman
ab0c9cc760 handling IngressClass drawer details
Signed-off-by: Roman <ixrock@gmail.com>
2023-01-02 17:29:35 +02:00
Roman
bd1b559e93 fix: duplicating/overcaching items with each page visiting (Nnetwork -> Ingress classes)
Signed-off-by: Roman <ixrock@gmail.com>
2023-01-02 16:46:58 +02:00
Roman
34e7977259 some fixes, improved items search by values from spec.parameters.*
Signed-off-by: Roman <ixrock@gmail.com>
2023-01-02 16:02:49 +02:00
Roman
4c88f295ec Merge remote-tracking branch 'origin/master' into feature/ingress_class_api_view 2022-12-30 15:10:28 +02:00
Roman
ecc1640179 fix: incorrect icons layout in ingress-class details
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-30 15:02:28 +02:00
Roman
97776b6460 chore, fix lint
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-30 14:38:03 +02:00
Caleb Xu
d6531f23a8
Fix minor typo/grammar in extension install message (#6847)
Signed-off-by: Caleb Xu <calebcenter@live.com>

Signed-off-by: Caleb Xu <calebcenter@live.com>
2022-12-30 11:57:36 +03:00
Roman
d05d15e8ef fix: consistent sidebar items order by janne's request
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-29 14:30:35 +02:00
Roman
d022e2d856 added "set as default" menu action for ingress classes
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-29 14:25:36 +02:00
Roman
c33a5f12ea
Page refresh is broken in development mode, fixes #6818 (#6844)
Signed-off-by: Roman <ixrock@gmail.com>

Signed-off-by: Roman <ixrock@gmail.com>
2022-12-29 13:36:51 +02:00
Alex Andreev
6422d8183f
Use Monaco editor in ConfigMap details (#6830)
* Use monaco in config map details

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Add ability to set monaco initial height regarding to text lines

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Refactor get initialHeightClassName()

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Rename injectable to getEditorHeightFromLinesCountInjectable

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Lint fixes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Better monaco editor view for the light theme

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Set initial height refactoring

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Linter fixes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Clean up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-29 14:33:59 +03:00
Alex Andreev
7cb7d9573f
Fix .TabLayout .Tabs jumping (#6843)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-29 14:31:35 +03:00
Roman
c50828cb27 Page refresh is broken in development mode #6818 (upcoming fix)
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-29 12:40:21 +02:00
Roman
87c932f2e5 Merge branch 'master' into feature/ingress_class_api_view 2022-12-29 12:38:16 +02:00
dependabot[bot]
37c3d65714
Bump @typescript-eslint/parser from 5.46.1 to 5.47.1 (#6832)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.46.1 to 5.47.1.
- [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.47.1/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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-29 12:45:33 +03:00
dependabot[bot]
9ff6794f0f
Bump sharp from 0.31.2 to 0.31.3 (#6813)
Bumps [sharp](https://github.com/lovell/sharp) from 0.31.2 to 0.31.3.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md)
- [Commits](https://github.com/lovell/sharp/compare/v0.31.2...v0.31.3)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-29 12:44:49 +03:00
dependabot[bot]
a4996d1f56
Bump playwright from 1.29.0 to 1.29.1 (#6812)
Bumps [playwright](https://github.com/Microsoft/playwright) from 1.29.0 to 1.29.1.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.29.0...v1.29.1)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-29 12:44:24 +03:00
Jari Kolehmainen
e59ec3abfd
clarify readme (#6838)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2022-12-28 15:27:00 +02:00
Alex Andreev
29d2e1fb86
Using syncKubeconfigEntries.replace() (#6837)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-28 13:18:22 +03:00
Janne Savolainen
8156936b82
Allow main to message to cluster frames (#6835)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-12-28 08:18:58 +02:00
Roman
fffdc62ccb added icon-marker to see default ingress class in the list
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-27 14:44:33 +02:00
Roman
3845c7bc67 fix lint
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-27 13:20:51 +02:00
Roman
5f843259dd fix: new bugs after master merging (with conflicts!), looks like breaking change if those apis where exported
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-27 13:18:24 +02:00
Roman
4c44b76f24 Merge remote-tracking branch 'origin/master' into feature/ingress_class_api_view
# Conflicts:
#	src/common/rbac.ts
2022-12-27 12:55:11 +02:00
Alex Andreev
44bc703606
Remove error overlay in dev mode (#6831)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-27 10:40:44 +03:00
Dan
ce280e1d07
add restart button to daemonset menu (#6826)
Signed-off-by: Dan Bryant <daniel.bryant@linux.com>

Signed-off-by: Dan Bryant <daniel.bryant@linux.com>
2022-12-26 14:30:39 +03:00
Jari Kolehmainen
97551bb7f0
Allow to import app as a library (#6722)
* 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>
2022-12-23 13:33:35 +02:00
Alex Andreev
ba908c860d
Fix terminal window paddings (#6822)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-22 16:35:04 +03:00
Alex Andreev
da267a99f4
Revert #6733 to avoid breaking changes for extensions (#6821)
This reverts commit 4af8fbaa34.

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-22 07:21:44 -05:00
github-actions[bot]
6781b4657f
Update version to next preminor (#6810)
Signed-off-by: GitHub <noreply@github.com>

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: Nokel81 <Nokel81@users.noreply.github.com>
2022-12-21 15:03:48 -05:00
Sebastian Malton
6aee907dc5
Release 6.3.0 (#6804)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 12:57:53 -05:00
Sebastian Malton
2000d9b32e
Massively simplify bundled extension loading (#6787)
* Switch bundled extension declarations to injection token

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

* Change how bundled extensions are loaded

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

* Fix token file name

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

* Fix spelling

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

* Improve interface name

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 16:46:51 +02:00
Sebastian Malton
a83259b70a
Make request-api-resources flatter in implementation (#6802)
* Make request-api-resources flatter in implementation

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

* More improvements to requestApiResources
- Also move files to better places

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

* Rename iter.pipeline as iter.chain

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 16:31:31 +02:00
Roman
6492770fa6 fix: show loaded items from api into IngressClasses view
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-21 16:01:57 +02:00
Roman
b385c281c1 added initial ingress-class table-view + magic route-component.injectable
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-20 18:28:34 +02:00
Sebastian Malton
4dac9a8b2b
Fix broken import after PR merge (#6803)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-20 11:07:29 -05:00
Sebastian Malton
24240655c0
Split out use of httpsProxy preference (#6771)
* Split out use of httpsProxy preference

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

* Rename file

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-20 11:00:15 -05:00
Sebastian Malton
443081493b
Fix allowed resources checks on GKE (#6657)
* Add check for incomplete SelfSubjectRulesReview to fix GKE

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

* Adding namespaced for KubeApiResource

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

* Refactoring of AuthorizationNamespaceReview

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

* Removing dead code

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

* Refactoring ListApiResources

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

* Extract ClusterContext into deps for KubeObjectStore to fix circular import

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

* Fix remaining type errors

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

* Fix crash in frame by consolidating setup into runnables

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

* Fix type errors and remove dead code

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

* Fix core resources not showing up

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

* Fix namespaces not being shown

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

* Simplify ClusterContext to remove something only NamespaceStore needs

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

* Make sure the public API doesn't change

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

* Fix lint

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

* Fixing namespace-select-filter tests

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

* Fix other tests requiring overrides

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

* Fix kludge in cluster-frame tests

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

* Fix remaining test failures

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

* Fix integration test due to incorrect casting

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

* Fix integration test and kube watches not working at all

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

* Fix secret details test

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

* Fix lint

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

* Fix non-ApplicationBuilder tests by adding overrides

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

* Fix crash due to trying to read hostedCluster too soon

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

* Fix crash due to timing issues
- Make injectable phases more explicit for renderer

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-20 17:20:27 +02:00
Roman
5d0f92d4fb added explicit returning type for ingresses-sidebar-items.injectable
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-20 16:15:58 +02:00
Roman
b273de02e2 added new sidebar item: "Network -> Ingress Classes"
Signed-off-by: Roman <ixrock@gmail.com>
2022-12-20 15:43:29 +02:00
Sami Tiilikainen
e36f3d2d70
Navigation logging injectable (#6797)
Move navigation logging to `setupLoggingForNavigationInjectable` to prevent cycle of injectables from occurring. Wasn't eventually needed for #6795 but still an improvement.

Credit for the implementation goes to @Nokel81 , thanks!

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2022-12-20 08:38:20 -05:00
dependabot[bot]
257582df76
Bump typedoc from 0.23.22 to 0.23.23 (#6792)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.22 to 0.23.23.
- [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.22...v0.23.23)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-20 08:38:04 -05:00
dependabot[bot]
6ce7e8ee53
Bump sass from 1.57.0 to 1.57.1 (#6793)
Bumps [sass](https://github.com/sass/dart-sass) from 1.57.0 to 1.57.1.
- [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.0...1.57.1)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-20 08:37:43 -05:00
dependabot[bot]
e762d07cf8
Bump esbuild from 0.16.9 to 0.16.10 (#6790)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.16.9 to 0.16.10.
- [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.16.9...v0.16.10)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-20 08:37:32 -05:00
Alex Andreev
5dde02733b
Fix: load pods from all namespaces in node details (#6794)
* Load pods from all namespaces in Node details

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Lint fixes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-20 16:34:43 +03:00
Sebastian Malton
ed26e245e6
Prevent shell sync commands from polluting history (#6668)
* Prevent shell sync commands from polluting history

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>
2022-12-20 08:33:48 -05:00