Commit Graph
100 Commits
Author SHA1 Message Date
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
Sebastian Malton 9b2031159d Ignore extensions' clusters when adding to kubeConfigSync (#3313) 2021-07-12 12:05:05 -04:00
Sebastian Malton 26fb2e796e Fix not being able to configure non-Lens prometheus settings (#3355)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-12 10:13:11 -04:00
Sebastian Malton 52ab699426 Remove <CubeSpinner> and <AppInit> as both are unused (#3336)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-12 08:45:15 +03:00
Sebastian Malton 77f8ea67bd Cleanup sentry integration (#3315) 2021-07-08 16:57:29 -04:00
Sebastian Malton 3b31dadf19 Fix listing charts failing due to bad versions (#3308) 2021-07-08 11:35:54 -04:00
Sebastian Malton db968b8a5b Fix user-store/5.0.3-beta.1.ts comment (#3311)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-08 16:13:29 +03:00
Sebastian Malton 497e47b277 Automatically sync all kubeConfigPaths (#3227) 2021-07-07 16:29:58 -04:00
Sebastian Malton fe443f462b Fix table columns being hidden after changing any user preference (#3302)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-07 15:48:00 -04:00
Sebastian Malton 17a8044647 Add logging on proxy error (#3303)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-07 09:42:16 -04:00
Sebastian Malton a301283adc Fix unhandled exception in visibility handler (#3291)
- If an KubernetesCluster entity is being deleted then the
  catalogEntityRegistry.getById() will return undefined. This leads to
  an unhandled exception in the handler because we tried to read
  apiVersion. This commit changes it so that we get the apiVersion and
  kind from KubernetesCluster class itself

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-07 09:30:07 +03:00
Sebastian Malton b03eb443c9 Await kubeconfigPathP for fish shell args (#3286)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-07 09:20:17 +03:00
Sebastian Malton 0f9f79a8c9 Emit an error on async fromStore (#3285) 2021-07-06 11:05:07 -04:00
Sebastian Malton 803c3a3d34 Unblock subsequent Singleton.createInstance() (#3225)
- Also fix clusters with unknown workspaces

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-06 17:16:04 +03:00
Sebastian Malton c4623c424d Formalize the to/from Store rules for UserStore (#2708)
- Explicitly don't save to disk if the value in the store is the same as
  the default. That way we can change the defaults between versions

- Calculate the PreferencesModel on demand

- In the future, when we turn on strict null checking, we can enforce
  that the UserStore expects the correct types too

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

simplify default check, remove defaults from UserStore

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-06 09:14:13 -04:00
Sebastian Malton baef6944aa Reduce transition duration for <Tab>'s (#3167)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-06 08:42:59 -04:00
Sebastian Malton b2836eb57a Don't clear searchValue on CommandDialog onBlur (#3172)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-06 11:01:11 +03:00
Sebastian Malton 4cae802a08 Don't clear cluster icon on cancel (#3191)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-05 11:05:40 +03:00
Sebastian Malton 189f017b2e Set ownerReference to manually triggered cron jobs (#3229)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-02 15:10:37 +03:00
Sebastian Malton 2708ca63ed Use kubeconfigPath for delete synced clusters confirmation (#3205)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-02 15:08:42 +03:00
Sebastian Malton a12fc68242 Cap cpu chart label values to 2 decimal points (#3228)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-02 14:26:53 +03:00
Sebastian Malton 223dadc073 Allow users to disconnect from clusters that fail to connect (#3231)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-02 14:22:16 +03:00
Sebastian Malton 05311c4b1b Correctly migrate duplicate clusters in workspaces (#3211)
- Keep track of the set of all workspaces that each duplicated entry was
  a part of

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-02 14:21:04 +03:00
Sebastian Malton e0a509d462 Always check if ref is active in virtual-list (#3230)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-01 09:51:11 +03:00
Sebastian Malton aa86e5a41e release v5.0.0 (#3209) 2021-06-29 11:38:29 -04:00
Sebastian Malton 45cafaa420 Fix cluster-store and hotbar-store migrations (#3208)
- kubeConfigPath was erroniously set to cluster.id
- Skip empty workspace hotbars
- Output a warn if updating or creating a cluster throws in
  cluster-store

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-29 09:42:32 -04:00
Sebastian Malton 10e1e69137 release v5.0.0-beta.13 (#3203)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-28 14:56:06 -04:00
Sebastian Malton 0b88df9b36 HotbarIcon's refering to unknown entities should be removalable (#3190)
* HotbarIcon's refering to unknown entities should be removalable
* Allow menu to open when icon is disabled
* Add cursor context-menu

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-28 11:28:18 -04:00
Sebastian Malton 2788025fea Switch to deterministic cluster IDs (#3201) 2021-06-28 11:14:55 -04:00
Sebastian Malton 8dda513b79 Don't clear searchUrlParam on every change (#3189)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-28 11:41:01 +03:00
Sebastian Malton 4e235a95a1 release v5.0.0-beta.12 (#3188) 2021-06-25 14:32:08 -04:00
Sebastian Malton dbfdd450a8 Track extension provisions and check bundled for routing (#3187)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-25 13:28:07 -04:00
Sebastian Malton 9790b71f8c Update distro label on clusters (#3171)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-25 10:40:26 -04:00
Sebastian Malton fff6d2e5f9 Remove padding for custom icons (#3162)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-25 10:40:02 -04:00
Sebastian Malton 51655884c7 Fix hotbar migration of workspaces (#3178) 2021-06-25 09:55:25 -04:00
Sebastian Malton eba44d76aa Fix integration test not assigning to clusterAdded correctly (#3168) 2021-06-24 09:21:53 -04:00
Sebastian Malton 7058193295 Navigate back to last viewed catalog catagory (#3163)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-23 15:53:22 -04:00
Sebastian Malton e49576ee8c Fix <Icon>'s not using tooltip and fix toolbar not being boolean (#3038)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-23 09:14:59 -04:00
Sebastian Malton 65b9e74d45 Treat bundled extensions as enabled in protocol router (#3148)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-22 09:59:53 -04:00
Sebastian Malton 6b464a873b Mark typed-emitter as a dependency for @k8slens/extensions (#3138)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-21 14:14:48 -04:00
Sebastian Malton 132015e900 Publish new npm package (#3137)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-21 12:33:38 -04:00
Sebastian Malton 20d6e50cb7 Always open main window if lens:// are routed (#3130) 2021-06-21 09:27:11 -04:00
Sebastian Malton 4cd25caca8 Switch sync buttons on windows (#3110)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-21 08:37:05 -04:00
Sebastian Malton 723ba1df37 Set grouping on local settings (#3109)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-21 11:01:48 +03:00
Sebastian Malton adf1251bbd Fix dependabot.yml reviewers
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 15:12:12 -04:00
Sebastian Malton e30381f1ee Fix dependabot.yml
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 15:10:45 -04:00
Sebastian Malton fd474fcfa3 Depedabot config should be in .github/ (#3113)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 15:08:46 -04:00
Sebastian Malton 9b04e611a4 Transition workspaces to hotbars (#3079) 2021-06-18 12:05:44 -04:00
Sebastian Malton 4ff5a722a7 lens:// routing shouldn't ignore intree extensions (#3091)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 10:19:13 -04:00
Sebastian Malton 8a0cb2602b ClusterStore.storedKubeConfigFolder should be usabled everywhere (#3105)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 08:44:40 -04:00
Sebastian Malton 7f51e3addd Make CatalogEntity labels clickable (#3075)
- Transition workspace's to be labels

- Fix migrations to support multiple migrations for the same version

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 08:44:28 -04:00
Sebastian Malton eb45f45a7a Add context menu entry for deleting local clusters (#2923) 2021-06-17 12:19:22 -04:00
Sebastian Malton 7988f068cb release v5.0.0-beta.9 (#3063)
* Revert displayName being first key

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

* release v5.0.0-beta.9

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-17 13:25:24 +03:00
Sebastian Malton c3c944cd30 Send LensMainExtension.nagivate calls to renderer before navigating (#3082)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-17 12:59:27 +03:00
Sebastian Malton 5f6abe3496 Update extensions/**/package-lock.json to v0.0.1 (#3076)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-16 14:21:23 -04:00
Sebastian Malton 247b00a5a3 Fix height resizing of VirtualList (#3072) 2021-06-16 09:05:24 -04:00
Sebastian Malton 42bb2a620a Fix extensions not having the same version as Lens (#3027)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-15 14:14:03 -04:00
Sebastian Malton 62bc806105 Don't try watching again if credentials have failed (#3039)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-14 09:39:06 -04:00
Sebastian Malton fa5a54f271 Adding tracking of mainWindow's visibility to ProtocolRouter, open main view on valid lens:// (#3026) 2021-06-14 08:55:45 -04:00
Sebastian Malton 5bd1d079de Add checks to block edits to key fields (#2426)
- Referece kubetcl:pkg/cmd/util/editor/editoptions.go:649

- disallow editing status field

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-14 08:49:55 -04:00
Sebastian Malton 6f6ad9cc12 Only run make build on azure (#3041)
* Only run 'make build' on azure

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

* fix spelling

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-14 07:37:54 +03:00
Sebastian Malton 84cad4b155 Allow installing extensions by dist-tag (#3040)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-11 15:06:56 -04:00
Sebastian Malton e26694d4b6 release v5.0.0-beta.8 (#3036)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-11 11:38:40 -04:00
Sebastian Malton 9593cc1323 Add manual restart required to update notification (#3009)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-11 12:28:06 +03:00
Sebastian Malton c9aec32a4a Fix dependabot config (#3022)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-10 14:45:21 -04:00
Sebastian Malton 264f2df7f4 Fix buildNumber to be consistent for all package.json's (#3016) 2021-06-10 12:17:12 -04:00
Sebastian Malton 280af6391e Switch to more specific IPC helpers (#2821) 2021-06-10 10:34:22 -04:00
Sebastian Malton 6d10f011e5 Explicitly initialize registries
- Helps moves towards turning on banning CyclicImports

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-10 09:34:13 -04:00
Sebastian Malton c18df6bcae Minor cleanup of ExtensionDiscovery (#2887) 2021-06-10 09:21:04 -04:00
Sebastian Malton 5ee2ab5b4a Move all RouteParam's and URL builders to src/common (#2778)
- Prevents some circular dependencies

- Allowed main to use them as needed

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-10 08:52:09 -04:00
Sebastian Malton 8e244db1a3 Set build version before building extensions (#3001) 2021-06-09 19:57:04 -04:00
Sebastian Malton 4a4f5e6d26 CatalogEnitityDrawerMenu should have actions running left to right (#3015)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-09 15:35:46 -04:00