Juho Heikka
9ff084a684
Lint fixes after changed prettier config
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-06 15:49:12 +03:00
Juho Heikka
e0040e1c1c
Merge branch 'master' into metrics-extraction
2023-04-06 15:46:54 +03:00
Juho Heikka
a8fd71e298
Add missing packages to metrics package.json
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-06 15:35:39 +03:00
Juho Heikka
07b4e30ddd
Remove unnecessary variable from init containers component
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-06 14:39:14 +03:00
Juho Heikka
8e4774ea29
Update metrics package description
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-06 14:09:47 +03:00
Sebastian Malton
5db8fc1342
chore: Remove explicit throw when finding platformSpecificVersion
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 16:17:50 -04:00
Sebastian Malton
c0ebe605c4
fix: Fix tests by recreating non-specific injection token
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 16:17:50 -04:00
Sebastian Malton
477ad3caa4
chore: fix lint for main webpack
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 16:17:50 -04:00
Sebastian Malton
3c8839151c
chore: move test-env specific versions to own folder
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 16:17:50 -04:00
Sebastian Malton
5fc32c0b27
chore: convert request-system-cas to use PlatformSpecific
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 16:17:50 -04:00
Sebastian Malton
75a1b0a983
chore: move PlatformSpecific back to core
...
- This is needed in 6.4 and this will make that transition easier
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 16:17:50 -04:00
Sebastian Malton
0bc3d9f8b2
feat: Introduce PlatformSpecific as a new wrapper type for injectables
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 16:17:50 -04:00
Sebastian Malton
9b0318b493
fix: remove platform specific injectable file names
...
- Causes issues due to a single platform being used to build the library
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 16:17:50 -04:00
Sebastian Malton
630928d6ba
chore: fix spelling
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 16:17:50 -04:00
Sebastian Malton
15d3829319
Fix cherry-pick of #7504
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 14:41:38 -04:00
dependabot[bot]
87453b2f14
Bump joi from 17.8.4 to 17.9.1
...
Bumps [joi](https://github.com/hapijs/joi ) from 17.8.4 to 17.9.1.
- [Release notes](https://github.com/hapijs/joi/releases )
- [Commits](https://github.com/hapijs/joi/compare/v17.8.4...v17.9.1 )
---
updated-dependencies:
- dependency-name: joi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-05 13:49:18 -04:00
Janne Savolainen
a3716baaf0
Stop file system watchers on application quit to prevent exit code !== 0 ( #7504 )
...
* 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 >
2023-04-05 13:35:13 -04:00
Sebastian Malton
807f98ed1b
Persist apiVersion when editing resources in monaco ( #4406 )
...
* 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 >
2023-04-05 10:56:23 -04:00
Sebastian Malton
058494bc73
Introduce clearer boundry between extensions ( #7164 )
...
- 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 >
2023-04-05 10:21:38 -04:00
Sebastian Malton
351f9d492f
fix: Referencing apiManager should not throw ( #7468 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-05 10:17:35 -04:00
Sebastian Malton
128b05d4d4
feat: Allow built versions to specify an environment ( #7495 )
...
* 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 >
2023-04-05 10:17:21 -04:00
Juho Heikka
afd64df112
Update package-lock.json
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:17:07 +03:00
Juho Heikka
7e06047835
Remove duplicate package import
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:07:42 +03:00
Juho Heikka
d13c5fad00
Add ingress details metrics injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:33 +03:00
Juho Heikka
e725e416ea
Add daemonset details metrics injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:32 +03:00
Juho Heikka
0339870631
Add job details metrics injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:32 +03:00
Juho Heikka
d4392520d8
Rename details injectables file suffixes from tsx to ts
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:32 +03:00
Juho Heikka
669e6414ca
Add namespace details metrics injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:32 +03:00
Juho Heikka
275a9f7f55
Add stateful set details metrics injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:32 +03:00
Juho Heikka
21df918f12
Refactor repeating code into a separate function.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:32 +03:00
Juho Heikka
ecd8af3892
Add persistent volume claim details metrics injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:32 +03:00
Juho Heikka
8adebb6cd5
Add replicaset details metrics injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:32 +03:00
Juho Heikka
fdff10a3bd
Add node details metrics injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:31 +03:00
Juho Heikka
4401b17af9
Add deployment details metrics injection token
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:31 +03:00
Juho Heikka
03a87f9549
Extract pod container metrics to its own injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:31 +03:00
Juho Heikka
be0028cc5e
Add pod details metrics injection token.
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 16:01:26 +03:00
Juho Heikka
66f3cc8bcf
Add cluster UI block injection token and current implementation as a Feature
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-05 15:59:27 +03:00
dependabot[bot]
af1808dbb3
Bump @ogre-tools/injectable-extension-for-mobx from 15.1.2 to 15.3.0 ( #7503 )
...
Bumps [@ogre-tools/injectable-extension-for-mobx](https://github.com/ogre-works/ogre-tools ) from 15.1.2 to 15.3.0.
- [Release notes](https://github.com/ogre-works/ogre-tools/releases )
- [Changelog](https://github.com/ogre-works/ogre-tools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ogre-works/ogre-tools/compare/v15.1.2...v15.3.0 )
---
updated-dependencies:
- dependency-name: "@ogre-tools/injectable-extension-for-mobx"
dependency-type: direct:production
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-04-05 10:04:55 +03:00
dependabot[bot]
1e6c859539
Bump tailwindcss from 3.2.7 to 3.3.1 ( #7458 )
...
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss ) from 3.2.7 to 3.3.1.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases )
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.2.7...v3.3.1 )
---
updated-dependencies:
- dependency-name: tailwindcss
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-04-04 08:14:55 -04:00
Sami Tiilikainen
69b132300c
Renderer file logging through IPC ( #7499 )
...
* 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 >
2023-04-04 08:11:06 -04:00
Sebastian Malton
173a667466
Auto cancel stale workflows ( #7494 )
...
* chore: rename workflow file
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* chore: Add concurrency rules for workflows
- test
- Electronegativity
- linter
Signed-off-by: Sebastian Malton <sebastian@malton.name >
---------
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-04 07:33:18 -04:00
Alex Andreev
2cf8a2f188
Add workload 'kind' param to 'show-details' event ( #7464 )
...
* 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 >
2023-04-04 09:59:36 +03:00
dependabot[bot]
df9db01be5
Bump ansi_up from 5.1.0 to 5.2.1 ( #7497 )
...
Bumps [ansi_up](https://github.com/drudru/ansi_up ) from 5.1.0 to 5.2.1.
- [Release notes](https://github.com/drudru/ansi_up/releases )
- [Commits](https://github.com/drudru/ansi_up/compare/v5.1.0...v5.2.1 )
---
updated-dependencies:
- dependency-name: ansi_up
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-04-04 09:55:46 +03:00
Juho Heikka
1308b5ed6c
Webpack config fixes ( #7423 )
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-04 09:36:02 +03:00
dependabot[bot]
7116e55d5a
Bump @typescript-eslint/parser from 5.55.0 to 5.57.1 ( #7496 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.55.0 to 5.57.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.57.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 >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-04 09:25:09 +03:00
Gabriel Accettola
e790757302
Show Message Box when no update is available after manually checking for updates ( #7390 )
...
* 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 >
2023-04-03 15:36:25 -04:00
Sebastian Malton
4856e3c5aa
chore: Add notes about picking PRs in release guide ( #7492 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2023-04-03 14:19:20 -04:00
Sebastian Malton
b22d7af291
fix: Add check in release-tool for no relevant PRs ( #7478 )
...
* 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 >
2023-04-03 13:05:04 -04:00
Juho Heikka
fef9443064
Fix node metrics line progress ( #7466 )
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2023-04-03 16:12:35 +03:00
dependabot[bot]
47796228d0
Bump @types/react-beautiful-dnd from 13.1.3 to 13.1.4 ( #7459 )
...
Bumps [@types/react-beautiful-dnd](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-beautiful-dnd ) from 13.1.3 to 13.1.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-beautiful-dnd )
---
updated-dependencies:
- dependency-name: "@types/react-beautiful-dnd"
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-04-03 08:28:49 -04:00