Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Malton ae96ae7d50 Update extension's package-lock.json files
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-06 15:24:17 -04:00
Sebastian Malton 4705a66632 Use JSON patch for editing components (#3674) 2021-10-04 16:28:19 -04:00
Sebastian Malton 8b1de233f2 Don't override entity source on cluster icons (#3928) 2021-10-04 14:38:14 -04:00
Sebastian Malton f2c623f89e Specify tableId for DeploymentReplicaSets (#3950) 2021-10-04 14:32:15 -04:00
Sebastian Malton cfd89fa7ba Pin @k8slens/extensions dependencies instead of wildcarding them (#3930) 2021-10-01 15:46:25 -04:00
Sebastian Malton b692bc3603 Make default catalog action to open entity (#3915) 2021-09-30 09:46:33 -04:00
Sebastian Malton 17e97f16c9 Fix title of service account dialog (#3883) 2021-09-23 22:27:03 -04:00
Sebastian Malton 3c77c06519 Add ability to search and activate entities via the command dialog (#3692) 2021-09-23 13:18:31 -04:00
Sebastian Malton 3fc5b83461 Add error message for no contexts in add cluster page (#3868) 2021-09-22 10:25:48 -04:00
Sebastian Malton dfa0a35695 Fix error due to async validators for <Input> (#3823)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-20 09:54:12 -04:00
Sebastian Malton e251194cb5 Fix reference error when opening cluster view (#3824)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-20 13:01:05 +03:00
Sebastian Malton e5c9c9a4b5 Fix test GH action to run on all branches (#3822) 2021-09-16 10:38:31 -04:00
Sebastian Malton 1ebb8eedf7 Upgrade all testing linux CI machines to Ubuntu-20.04 (#3799) 2021-09-16 09:02:43 -04:00
Sebastian Malton be1a2ebe59 Fix shell connection readiness heuristic (#3795) 2021-09-15 17:40:36 -04:00
Sebastian Malton 056b818ceb Fix check for user exec command (#3664) 2021-09-15 13:09:57 -04:00
Sebastian Malton 068c78d48d Draggable region on macOS should be the same as the main header (#3800)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-15 12:28:06 -04:00
Sebastian Malton b43086a386 Don't change permissions when deleting a cluster (#3798)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-15 12:27:48 -04:00
Sebastian Malton f68cbabbc9 Fix cluster's accessibleNamespaces being reset on restarting Lens (#3817)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-15 12:19:15 -04:00
d72158cc63 Fix local cluster delete flow (#3473)
* Fix local cluster delete flow

- Now checks for the cluster being the current cluster and confirms the
  action

- <ConfirmDialog> is fixed to work with several confirmations happinging
  at once

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

* Custom delete cluster dialog

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

* Saving kubeconfig file refactoring

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

* Switching current-context from dialog

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

* Cleaning up css styles

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

* Show Delete menu item only for local cluster

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

* Make all dialogs rounded

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

* Releasing kubeconfig file after lock

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

* Adding delete cluster dialog tests

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

* Cleaning up

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

* Delete cluster dialog refactoring

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

* Fixing typo

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

* Removing temp file on error

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

* Updating tests

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

* Do not switch context if select is hidden

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

* Removing spread symbols

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

* Moving cluster delete event from catalog initializer to ipc

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

* Refactor warning messages

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

* Getting spread (...) back to fix Select render

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

* Using async form without promises

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

* Do not show context switcher if no contexts left

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

* Updating the tests

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

* don't allow delete of the active cluster before setting to new active cluster (#3749)

* don't allow user to delete the active cluster before setting to new active cluster

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* fix lint issues

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* Show delete button if no more contexts available

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

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

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
2021-09-08 15:06:14 +03:00
Sebastian Malton d132a4c7e7 Fix node shell secret pulling (#3668)
- On some KE errors are thrown if trying to get a secret with an empty
  name, instead of just ignoring the entry

- Clean up the node shell settings

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-01 12:49:00 +03:00
Sebastian MaltonandPanu Horsmalahti 6fdb2f0b58 Support filtering catalog entities (#3647)
* Support filtering catalog entities

- This allows extensions and OpenLens to restrict which of the entities
  the sources have provied are "visible" to the rest of Lens

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

* Fix lint

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

* switch to filtering only for catalog view

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

* Fix test

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Add test to iter reduce

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

Co-authored-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-08-31 16:00:56 +03:00
59933507e4 Upgrade to electron 12 and Node 14 (#3572)
Upgrade to electron 12 and Node 14

- Compute cluster ID for tests
- Switch to temporary appData path while testing

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

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-26 12:13:31 -04:00
Sebastian Malton 5f89b3e31f Fix filtering deprecated charts (#3635) 2021-08-24 08:29:36 -04:00
Sebastian Malton 2716a3fded Fix .eslintrc.js (#3648)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-19 14:29:18 -04:00
Sebastian Malton 902224a6dc Always display a Node's taints' values (#3646)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-19 13:40:16 -04:00
Sebastian Malton 7d8a6a3e25 Validate and set defaults for HelmChart creation (#3492) 2021-08-18 08:06:57 -04:00
Sebastian Malton 1833a1c722 Fix StatefulSet.getImages to handle null case (#3619) 2021-08-17 13:02:33 -04:00
Sebastian Malton 8c93c96910 Remove @types/circular-dependency-plugin (#3601)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-17 11:53:48 -04:00
Sebastian Malton f39f0634b1 release v5.2.0-beta.1 (#3610)
* release v5.2.0-beta.1

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

* Fix CI

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-16 12:34:19 -04:00
Sebastian Malton e979cbf7c7 Add back sentry winston logger transport (#3602)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-12 11:01:39 -04:00
Sebastian Malton 476aa74101 Inject handlers into LensProxy to remove circular-deps (#3546)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-04 19:18:01 -04:00
Sebastian Malton 2b3351bf9b Remove circular dependency with isAllowedResource function (#3545)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-04 16:01:47 -04:00
Sebastian Malton b6ba39c438 Remove circular imports around the command pallet (#3544) 2021-08-04 14:22:18 -04:00
Sebastian Malton ee158e33df Move lookupApi into apiManager (#3540) 2021-08-04 11:36:13 -04:00
Sebastian Malton 574aea40b4 Make DetectoryRegistry a Singleton and initialize in a function (#3538) 2021-08-04 08:48:33 -04:00
Sebastian Malton 9a8616f05e Create c&p folder before starting kube sync (#3428)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-04 08:02:21 -04:00
Sebastian Malton 14f8343170 PR authors must label their PRs (#2985) 2021-08-04 12:21:26 +03:00
Sebastian Malton 17b14f9871 Make sure that there are only ever 12 slots in a hotbar (#3379)
* Make sure that there are only ever 12 slots in a hotbar

- Send notification if hotbar is full

- Filter out on every fromStore call

- Switch to broadcast on error

- Fix addToHotbar index check

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

* change when to/fromStore are located

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-04 10:37:08 +03:00
Sebastian Malton fb74859f66 Split KubeObject related components into seperate folders (#3533) 2021-08-03 17:39:29 -04:00
Sebastian Malton 3fe8014f11 Move Hotbar types to seperate file (#3532) 2021-08-03 14:38:36 -04:00
Sebastian Malton 77077ef72c Fix custom resources not having a fallback details component (#3542) 2021-08-03 12:31:44 -04:00
Sebastian Malton a6e91fc34a Move cluster related types and function into seperate files (#3530) 2021-08-03 10:36:14 -04:00
Sebastian Malton 2893ad956d Notify user of error if confirmation dialog rejects promise (#3179)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-03 10:09:19 -04:00
Sebastian Malton 4fc340d0c6 Cleanup integration and unit tests (#3531)
- Make mockWindow a function and call it when needed

- Change timeouts so that better error messages happen more often in
  integration tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-03 08:51:52 -04:00
Sebastian Malton b546f1df72 Simplify most of the KubeObjectDetailRegistry initial values (#3529)
- Keep one without any type param to make sure that an extension
  developer can as well

- Keep one with a child type to make sure the same as above

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-03 08:51:13 -04:00
Sebastian Malton b9bb990690 Add new SentryTransport to winston (#3432)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-03 08:38:23 -04:00
Sebastian Malton f35178175b Ignore certain file globs when under dir kube sync (#3452)
- .DS_Store
- *.lock
- *.swp

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-02 15:02:55 +03:00
Sebastian Malton 1b88e63343 Set default type params for KubeObjectDetail related APIs (#3528)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-29 10:55:41 -04:00
Sebastian Malton 9038d92eac Remove package open (#3504)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-29 08:36:45 -04:00
Sebastian Malton ad86502368 Fix KubernetesClusters overriding entity names too often (#3524)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-29 12:11:45 +03:00
Sebastian Malton f507ec9e6c Set defaults for EndpointSubsets (#3454) 2021-07-27 08:54:14 -04:00
Sebastian Malton 270d9d631c Warn if ClusterPageMenuRegistration is a subMenu and has an Icon (#3462)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-27 08:53:49 -04:00
Sebastian Malton 51b53b3349 Improve <NamespaceSelectFilter>'s UX (#3490)
- Display previously selected namespaces at the top of the option list
  when first opened

- Don't resort after every selection

- Automatically close the option list if no longer in multi-select mode
  and have toggled at least one namespace

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-27 08:53:34 -04:00
Sebastian Malton 91b3bd10ee Only stopPropagration in onClick for the itemMenu (#3502)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-27 08:53:22 -04:00
Sebastian Malton 1437f8a945 Fix auto cleanup of Extension's IPC classes (#3505) 2021-07-23 15:14:11 -04:00
Sebastian Malton b71e71cdfc Fix entity accessibleNamespaces (#3507)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-23 12:48:49 -04:00
Sebastian Malton 07532b1552 Display hint to user on how to add items in an EditableList (#3475)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-23 09:26:23 -04:00
Sebastian Malton da53aa0d79 Treat default weblinks same as any other weblinks (#3385)
- Use seenWeblink and check for non-arrays

- Spread out link validation

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-22 20:28:01 -04:00
Sebastian Malton 0204eef848 Filter out undefined values in hotbar-store migration (#3489)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-22 14:13:32 -04:00
Sebastian Malton 64ac04186b Improve Table typing and remove annotations on callbacks (#2981)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-22 10:42:27 -04:00
Sebastian Malton 84c767a3d2 release v5.1.3 (#3477)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-22 09:55:34 -04:00
Sebastian Malton cdb7c95b8f Fix typings for KubeObjectDetailsRegistration (#3460) 2021-07-21 10:22:32 -04:00
Sebastian Malton d52c4c3999 Fix onRun not executing everywhere :hover is defined for HotbarIcon (#3316)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-21 08:08:39 -04:00
Sebastian Malton fe33296ba5 Bundled extensions are always compatible in dev mode (#3459)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-21 07:19:46 +03:00
Sebastian Malton b7a24f4520 Default to empty array for 500Beta13 migration (#3461)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-21 07:19:23 +03:00
Sebastian Malton 27f2bd7181 Wait for shell to bring up prompt before sending commands (#3337) 2021-07-20 15:25:18 -04:00
Sebastian Malton f03cc59688 Wait for a file to be stable before computing diff (#3427)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 09:32:37 -04:00
Sebastian Malton a4f252864b Add ability to trim the value from <Input> (#3333)
- If set (default = false) then the input will be trimmed of whitespace
  before validation and before submit

- Use trim on all input's that use the systemName validator

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 09:30:02 -04:00
Sebastian Malton 14b70a6c53 Cleanup <EventEmitter> (#3338) 2021-07-20 08:39:44 -04:00
Sebastian Malton 686ae32dcb When viewing a specific release, select its namespace (#3440)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 10:32:15 +03:00
Sebastian Malton cf3aceb465 Sort cronjob last scheduled time by number (#3430)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 10:19:52 +03:00
Sebastian Malton c4aeaf5bb7 Fix styling on cluster roles and bindings (#3434)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 07:40:02 +03:00
Sebastian Malton c590bccffa Fix permissions issue on ServiceDetails under RBAC (#3433)
- Only watch the namespace that the service is in instead of all of them

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 07:34:23 +03:00
Sebastian Malton 70448159d3 Failing to loadAll should only warn (#3442)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 07:33:38 +03:00
Sebastian Malton 078583412b Use all namespaces for cluster overview warnings (#3441)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 07:33:22 +03:00
Sebastian Malton 4873b85647 release v5.1.2 (#3431)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-19 16:15:58 -04:00
Sebastian Malton 600d2c8607 Log as errors the places where getPortFrom can fail (#3425)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-19 13:40:47 -04:00
Sebastian Malton 48797b4a57 Check KubeObject.metadata is defined in getOwnerRefs (#3412)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-19 07:47:54 +03:00
Sebastian Malton c504065743 Check metadata labels is an object in getRoleLabels (#3416)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-19 07:46:55 +03:00
Sebastian Malton c1554d90f2 Catch Cluster create error in cluster-manager (#3401)
* Catch Cluster create error in cluster-manager

- Only warn if the file is missing. The file must have disapeared
  betweeen kubeconfig-sync detecting it and cluster-manager performing
  the addCluster call

- For all other errors log an error

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

* Fix spelling

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

* Use logger

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-19 07:34:18 +03:00
Sebastian Malton 7f332d24b2 release v5.1.1 (#3414)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-16 23:04:17 -04:00
Sebastian Malton eef5dd5f9c Display toleration's value in pod-details (#3384)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-16 08:57:26 -04:00
Sebastian Malton 9903417fed Failing to load chart releases should only warn (#3399)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-15 17:16:54 -04:00
Sebastian Malton ea4a5a4c57 getPortFrom should log the lines it retrived if it fails to get a port (#3395) 2021-07-15 14:19:33 -04:00
Sebastian Malton c3823b9d27 Failing to load KubeStateMetrics should only warn (#3394)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-15 13:52:21 -04:00
Sebastian Malton 873a165a60 Fix clusters not being defined (#3392)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-15 12:59:43 -04:00
Sebastian Malton f9635504f9 Stringify errors that get sent to notifications (#3393)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-15 12:59:03 -04:00
Sebastian Malton 07fbf74100 release v5.1.0 (#3390)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-15 10:29:56 -04:00
Sebastian Malton 074b1562dd release v5.1.0-beta.2 (#3381)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-14 10:48:59 -04:00
Sebastian Malton 2d831af78c Update yarn.lock (#3380)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-14 09:11:17 -04:00
Sebastian Malton c029039035 Remove conflicting classNames under quota-entries (#3334)
- Both flex and inline modify the display rule and inline was winning

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-14 08:33:41 -04:00
Sebastian Malton 0a8cf96415 Add kube-version and distro on detail panel (#3335) 2021-07-14 08:30:57 -04:00
Sebastian MaltonandAlex Andreev 9c2942c333 Fix .TableHead.sticky in for details panels (#3331)
* Fix .TableHead.sticky in for details panels

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

* Fine-tune TableHead styling in PodDetailsList

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

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-07-14 12:31:58 +03:00
Sebastian Malton f2cd0aa8e8 Catch empty string error is parseKubeApi (#3358)
* Catch empty string error is parseKubeApi

- Add more debugging lines

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

* Add some unit tests

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

* Use resolved pathname

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-14 08:48:32 +03:00
Sebastian Malton c335b0f054 Only create TerminalStore after ThemeStore (#3359)
- Use Proxy for backwards compatability

- Fix a bunch of unit tests that needed all the Singleton's created

- Add comments on the order required for the store migrations

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-13 12:36:46 -04:00
Sebastian Malton 9e363b8d5f Remove win-ca/pem before publish & catch inject error (#3362) 2021-07-13 11:40:52 -04:00
Sebastian Malton dfd9843809 Provide better typing for dock tabs (#3340) 2021-07-13 08:44:27 -04:00
Sebastian Malton 5bccc27204 Check for unset pod spec (#3361)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-13 08:51:49 +03:00
Sebastian Malton 485783167d Add SystemName validation to AccessibleNamespaces (#2754)
- Don't validate after a submit

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-12 16:13:24 -04:00
Sebastian Malton c6618bde88 release v5.1.0-beta.1 (#3360) 2021-07-12 15:58:25 -04:00