Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Malton de43df1cca Fix cluster frame display issue (#5518)
* Fix cluster frame display issue

- Add some defensive code to prevent this sort of infinite loop

- Add some unit tests

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

* fix unit tests

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

* Fix build

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

* Fix lint

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

* Factor out injectable for getting of cluster config data

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-06-20 22:23:15 -04:00
Sebastian Malton 8c31e56462 release 5.6.0-alpha.3 (#5668) 2022-06-20 14:45:33 -04:00
Sebastian Malton 2a045fa04a release 5.6.0-alpha.2 (#5640) 2022-06-15 12:16:04 -04:00
Sebastian Malton f45627f117 Fix not starting with sentryDSN configured (#5629)
* Fix not starting with sentryDSN configured

- Make sure that all beforeElectronIsReady runables are run completely
  syncronously

- Fix when setupSentry is to be run (namely before electron is ready)

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

* Fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-06-15 07:38:54 +03:00
Sebastian Malton f8b6c4a427 release 5.6.0-alpha.1 (#5618) 2022-06-14 12:03:28 -04:00
Sebastian Malton 1a6c42844a Update copyright to 2022 (#5624) 2022-06-14 11:22:38 -04:00
Sebastian Malton dc1f1ab7f8 Update release creation script (#5617) 2022-06-13 16:20:43 -04:00
Sebastian Malton 808875f491 Add @types/hapi__call and @types/hapi__subtext (#5574) 2022-06-13 11:00:18 -04:00
Sebastian Malton 3058bea88f Fix memory leak in unit tests (#5597) 2022-06-13 11:00:07 -04:00
Sebastian Malton 5420780ae0 Fix changes to InputValidator to resolve accidental breaking changes (#5403)
* Fix changes to InputValidator to resolve accidental breaking changes

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

* Show changes working by removing no longer required empty props objects

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

* fix type errors

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

* Fix async validation errors not being displayed

- And fix validation errors sometimes being displayed multiple times

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

* Simplify builders for validators

- Replace the boolean type params on `function inputValidator` with a
  new builder `function inputValidatorWithRequiredProps` to make the
  code easier to read

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

* Introduce unionizing functions for input validators

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

* fix tests

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

* Remove RequiredProps type param

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-06-10 06:41:29 -04:00
Sebastian Malton c54d59f205 Fix cluster.k8s.io/v1alpha1/clusters CRD not being marked as Namespaced (#5593) 2022-06-09 16:55:01 -04:00
Sebastian Malton 2b5d54e8d9 Revert breaking the types of DrawerTitle (#5573) 2022-06-08 10:01:07 -04:00
Sebastian Malton 17c7b6a1bf Add reactive tray icon for when update is available (#5567) 2022-06-08 08:37:19 -04:00
Sebastian Malton e1152790c3 Fix cluster server path being duplicated by proxy (#5550) 2022-06-07 16:13:06 -04:00
Sebastian Malton fae6bff6fb Remove all manual uses of v8 serialization (#5548)
* Remove all manual uses of v8 serialization

- Seems that sometimes the is a versioning mismatch within the binary
  format causes cluster screen the go grey

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

* handle ping

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-06-06 07:34:03 -04:00
Sebastian Malton fba5892c8a Fix Tooltip not showing when switching hotbars (#5519) 2022-06-03 08:55:11 -04:00
Sebastian Malton e1c1e00a2b Fix downloading cluster specific kubectl (#5399) 2022-06-02 18:40:30 -04:00
Sebastian Malton ac27077ef9 Fix *.modules.scss that don't get correctly typed (#5532) 2022-06-02 08:59:38 -04:00
Sebastian Malton d4fbab7176 Remove legacy renderBooleans prop (#5483) 2022-06-02 08:59:23 -04:00
Sebastian Malton 06db3119a6 Fix ERR_FAILED for splash screen on windows sometimes (#5539) 2022-06-01 16:25:33 -04:00
Sebastian Malton ec1df4717d Fix type error in kube-object-menu.test.tsx (#5540) 2022-06-01 15:28:02 -04:00
Sebastian Malton 856598c12d Fix failing kube-object-menu.test.tsx test (#5538) 2022-06-01 15:00:54 -04:00
Sebastian Malton a332327b4f Cherry Pick: Fix remove and edit buttons not updating (#5505) (#5537) 2022-06-01 14:24:36 -04:00
Sebastian Malton f12851ff3b Update slack invite link (#5515) 2022-05-31 10:35:59 -04:00
Sebastian Malton 5acfcf1b89 Make terminal tab icon the same as the menu item icon (#5449) 2022-05-30 11:31:33 -04:00
Sebastian Malton 827cb8a886 Fix crash in <CephFs /> (#5501) 2022-05-30 11:01:08 -04:00
Sebastian Malton 72ae7173c2 Fix crash in ProjectedVolume component (#5467) 2022-05-30 10:58:00 -04:00
Sebastian Malton 41d4daded7 Fix crash when using an inline svg Icon (#5450) 2022-05-26 09:46:50 -04:00
Sebastian Malton d09816aacf Cherry Pick bug fixes from v5.5.0-beta.2 (#5429) 2022-05-25 09:00:37 -04:00
Sebastian Malton a61a455fad Fix Catalog displaying wrong number of items per category (#5427)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-05-24 09:28:17 -07:00
Sebastian Malton acb119af94 Fix error in legacyRegisterApi on main (#5426) 2022-05-20 08:27:47 -04:00
Sebastian Malton d23f4018c8 Fix splash window having window control buttons (#5418)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-05-19 10:11:41 -04:00
Sebastian Malton 649ca09d70 Switch to always using latest minikube in CI (#5408) 2022-05-18 14:11:56 -04:00
Sebastian Malton b57d48e39e Increase version to v5.6.0-alpha.0 for master (#5404) 2022-05-17 10:14:43 -04:00
Sebastian Malton dfcb7c3330 Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195)
* Turn on strict mode in tsconfig.json

- Add route, clusterRoute, and payloadValidatedClusterRoute helper
  functions to improve types with backend routes

- Turn on the following new lints:
  - react/jsx-first-prop-new-line
  - react/jsx-wrap-multilines
  - react/jsx-one-expression-per-line
  - react/jsx-max-props-per-line
  - react/jsx-indent
  - react/jsx-indent-props

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

* fix build

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

* Replace KubeObject scope strings with enum

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

* Revert package.json version changes

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

* revert move hostedCluster(Id)

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

* change some type param names to be not single letters

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

* remove copy-extension-themes

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

* add new make clean action

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

* fix build to not use webpack for generating types

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

* fix kube-object-menu.test.tsx

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

* fix select.test.tsx

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

* fix catalog.test.tsx

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

* revert move fileNameMigration to index

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

* fix ref logic error

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

* fix log-resource-selector.test.tsx tests

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

* fix dock-store.test.ts test by overriding createStorage to not touch file system

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

* fix cluster.test.ts tests

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

* fix kube=api.test.ts

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

* fixed hotbar-store.test.ts

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

* fix kubeconfig-manager.test.ts

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

* fix cluster-role-bindings/__tests__/dialog.test.tsx

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

* fix role-bindings/__tests__/dialog.test.tsx

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

* fix pods.test.ts

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

* fix delete-cluster-dialog.test.tsx

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

* fix daemonset.store.test.ts

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

* fix replicaset.store.test.ts

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

* fix statefulsets/dialog/dialog.test.tsx

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

* fix replicasets/scale-dialog/dialog.test.tsx

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

* fix deployments.store.test.ts

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

* fix deployments/scale/dialog.test.tsx

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

* fix cronjob.store.test.ts

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

* fix stateful-set.api.test.ts

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

* fix deployment.api.test.ts

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

* fix api-manager.test.ts

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

* fix statefulset.store.test.ts

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

* fix job.store.test.ts

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

* fix pods.store.test.ts

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

* fix scroll-spy.test.tsx

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

* fix hotbar-remove-command.test.tsx

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

* fix catalog-entity-registry.test.ts

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

* fix welcome.test.tsx

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

* fix verify-that-all-routes-have-route-component.test.ts

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

* fix pod-tolerations.test.tsx

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

* better fix for previous 3 fixes, plus also select.test.tsx

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

* fix kube-object-menu.test.tsx

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

* fix app-paths.test.ts

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

* fix dock-tabs.test.tsx

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

* fix isReactNode typing

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

* fix sub-title.tsx

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

* fix drawer.tsx

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

* fix list-layout.tsx and header.tsx

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

* fix error-boundary.tsx

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

* fix upgrade-chart/store.ts and dock-tab.store.ts

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

* fix install-chart/store.ts

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

* fix edit-resource/store.ts

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

* fix create-resource/store.ts

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

* fix namespace-select.tsx

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

* fix namespace-select-filter.tsx

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

* fix crd-list.tsx

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

* fix wrong types for extensions

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

* fix circular dependency

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

* fix circular dependency on catalogCategoryRegistry

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

* fix api-kube

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

* fix type errors, most <Select /> errors

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

* fixing more type errors

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

* some more fixing type errors

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

* convert all KubeApis to injectable with legacy global backups

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

* factor out into a common file all the exports

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

* convert all KubeObjectStores to injectable with legacy global backups

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

* fix lint

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

* remove unused legacy KubeApi globals

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

* fix bad previous commit

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

* more crash fixing

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

* try and fix behavioural tests

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

* fix sidebar-and-tab-navigation-for-core.test.tsx

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

* fix sidebar-and-tab-navigation-for-extensions.test.tsx

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

* fix navigation-using-application-menu.test.ts

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

* fix catalog.test.tsx

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

* Make ThemeStore non-singleton and fix navigation-to-terminal-preferences.test.ts

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

* extensions.test.tsx

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

* fix catalog-entity-registry.test.ts

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

* fix navigation-using-application-menu.test.ts

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

* fix log-resource-selector.test.tsx

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

* fix dock-tabs.test.tsx

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

* fix delete-cluster-dialog.test.tsx

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

* fix navigation-to-kubernetes-preferences.test.ts

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

* fix navigation-to-editor-preferences.test.ts

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

* fix navigation-to-proxy-preferences.test.ts

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

* fix navigation-using-application-menu.test.ts

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

* fix navigation-to-application-preferences.test.ts

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

* fix dock-store.test.ts

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

* fix select.test.tsx

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

* fix role-bindings/__tests__/dialog.test.tsx

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

* fix hotbar-remove-command.test.tsx

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

* fix cluster-role-bindings/__tests__/dialog.test.tsx

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

* fix navigation-to-extension-specific-preferences.test.tsx

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

* fix navigation-to-telemetry-preferences.test.tsx

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

* fix closing-preferences.test.tsx

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

* fix navigation-to-editor-preferences.test.ts

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

* fix navigation-to-proxy-preferences.test.ts

- Fix other type errors too

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

* final tweaks

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

* Add more tsconfig files, fix bug in <Catalog>

- Make all of history, navigation injectable

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

* fix type errors

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

* Convert all of kube-details-params/ and navigate/ to injectable

- This fixes a runtime error that was encountered during testing

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

* Fix runtime errors on renderer

- remove all static uses of `createPageParam` (and then removed the
  legacy global)
- Made LensRendererExtension and LensMainExtension just used
  dependencies and not the getLegacyDi
- Fixed circular dep in extension-loader

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

* Move registerStore calls to after injectMany

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

* replace all the rest of the legacy uses of apiManager

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

* fix stack overflow and cycles in DI

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

* fix NamespaceSelectFilter not opening

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

* fix WizardStep and AddNamespaceDialog

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

* fix KubeApi's not being registered

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

* cleanup WindowManager

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

* Proper fix for Wizard, fix NamespaceStore.subscribe

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

* Rewrite withTooltip to be more type correct

- Fixes mobx related "too many recursive actions" error

- Change all the uses of withTooltips to be functional components

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

* Add e2e test to cover kube api registration

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

* cleanup internal-commands

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

* remove cast in <Animate>

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

* Fix command-palette e2e test

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

* Fix type error after rebase

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

* Fix test name

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

* fix lint

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

* fix code to help CodeQL scanner

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

* update intree extension lock files

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

* Fix build-extensions picking wrong @types/react

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

* fix tests from rebase

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

* fix type error

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

* Make KubeconfigSyncManager more injectable

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

* fix crash in test mode for Dialog

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

* make Select snapshots deterministic

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

* fix new type error

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

* fix kube-object.store.test.ts typing

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

* fix merge build issues

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

* fix snapshots after merge

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

* fix lint after merge

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

* reexport BaseKubeJsonApiObjectMetadata

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

* fix typo in terminalSpawningPool

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

* remove duplicate license header

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

* fix typo to waitUntilDefined

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

* remove iter use from getLegacyGlobalDiForExtensionApi

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

* remove complex createStorage override

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

* override logger with mocks only when needed for tests

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

* remove specialized overrideStore flags for getDiForUnitTesting

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

* remove unnecessary | undefined types from the exactOptionalFieldTypes experiment

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

* use more descriptive name for local test mocks

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

* remove unnecessary addition to 'make clean' target

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

* remove oddity of KubeObjectStore.getById(undefined) being allowed

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

* rename KubeObject.getDescriptor in favour of name without fundemental JS meaning

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

* Simplify legacyRegisterApi when working in behaviour unit tests

- Don't emit within main environment as there should be no auto
  registering there

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

* change confusing variable name in ReactiveDuration

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

* make visitor pattern more explicit for Entity contextMenuOpen

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

* toggleDetails -> toggleKubeDetailsPane is more specific

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

* remove outdated comment

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

* fix bug where LensExtension dependencies are not set

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

* Fix tests from the revert of react 18

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

* fix more tests from merge

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

* fix typings with new is-compatible-extension tests

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

* more type fixing

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

* Revert in-tree extension versions

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

* Improve name of guarding injectable for stores and apis

- New name better implies that it is just a guard state and does not do
  anything

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

* Add helper for <Select>.isMulti for storing in a Set<Value>

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

* fix is-compatible-extension.test.ts types

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-05-16 07:17:57 -04:00
Sebastian Malton e0df7e9d20 Change update default to update on quit (#5390) 2022-05-13 14:18:50 -04:00
Sebastian Malton c376b848c9 Remove @types/react-select from npm/extensions/package.json (#5386) 2022-05-12 15:13:30 -04:00
Sebastian Malton d66c70280e Remove outdated @types/react-select (#5384) 2022-05-12 14:33:27 -04:00
Sebastian Malton b1df407715 Create a script to help create release PRs (#5339) 2022-05-12 10:08:50 -04:00
Sebastian Malton d92233d58e Add defensive code around Cluster.broadcastConnectUpdate (#5297) 2022-05-12 08:27:33 -04:00
Sebastian Malton 19c77eefaf Fix CustomResourceDetails merging arrays of values (#5349)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-05-11 21:57:40 -04:00
Sebastian Malton 6d7609b364 Fix crash with NamespaceSelectFilter (#5367) 2022-05-11 15:05:21 -04:00
Sebastian Malton d99cc5a015 Bundle tray icons in repo (#5362) 2022-05-11 10:26:43 -04:00
Sebastian Malton 42e7daf057 Fix crash when changing os theme kind (#5354) 2022-05-11 09:07:51 -04:00
Sebastian Malton 9f25212f45 Stop using sharp at runtime (#5346) 2022-05-10 08:44:22 -04:00
Sebastian Malton 6b097e086b Add docs concerning webpack external configs (#5351) 2022-05-10 08:43:40 -04:00
Sebastian Malton a7607ce7e1 Revert upgrade to react 18 (#5352) 2022-05-09 15:44:13 -04:00
Sebastian Malton fc45f06fc8 Add some debug logging to help debug LED issue (#5288) 2022-05-06 09:18:47 -04:00
Sebastian Malton 756b5bd7ec release v5.5.0-beta.0 (#5326) 2022-05-05 09:50:08 -04:00
Sebastian Malton 05be7f6296 Fix subclasses of BaseStore<T> not be able to overrride cwd() (#5307)
- The cwd field was being overridden unconditionally by the new getConfigurationFileModelInjectable

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-05-05 05:02:47 -07:00
Sebastian Malton dbdde19222 Add ability to hide KubeObjectMenu Edit and Remove buttons in extensions (#5107) 2022-05-04 12:44:31 -04:00
Sebastian Malton 2d7f89ab48 Fix check for making sure dependency upgrades don't break dev mode (#5318) 2022-05-03 15:46:24 -04:00
Sebastian Malton 432fc534c6 Fix last item not being removed on initial loadAll (#5309) 2022-05-03 11:13:43 -04:00
Sebastian Malton 5263738c04 Cancel in progress npm master publishes if multuple in flight (#5306) 2022-05-02 11:36:05 -04:00
Sebastian Malton 8ada3c7505 Compute Tray Icon on the fly instead of at build (#5157) 2022-04-28 12:31:57 -04:00
Sebastian Malton e4b1fa2f40 Fix make dev on master (#5282)
- Add CI action to validate that future bump PRs don't break dev mode

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-04-26 20:18:18 -07:00
Sebastian Malton 753fa225ed Fix crash in CRD display (#5256) 2022-04-25 17:10:39 -04:00
Sebastian Malton e977890677 Remove webpack.*.ts importing values from src/ (#4992) 2022-04-13 10:39:35 -04:00
Sebastian Malton 423ffd44dc Fix slackLink in catalog becoming out of date (#5108) 2022-04-08 11:12:06 -04:00
Sebastian Malton 7c34ba36a6 Add B to bytesToUnits to make clear that they are bytes (#5170) 2022-04-06 11:48:42 -04:00
Sebastian Malton 85f2ce7504 Reset ClusterStatus state when switching clusters (#5149) 2022-04-01 12:02:04 -04:00
Sebastian Malton 7fffa3643c Bump all @sentry related packages (#5155) 2022-04-01 08:55:34 -04:00
Sebastian Malton 3a26ea7b7f fix license-header workflow (#5158) 2022-03-31 14:20:39 -04:00
Sebastian Malton 086604630a Add links for ingresses (#4630)
* Add links for ingresses

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

* Add back the arrow service

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

* Only display link if host is defined

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

* Resolve PR comments

- Fix crash in IngressDetails

- Make ingress routes scrollable

- Don't display link if the URL contains "*"

- Consolidate rendering of rules to all use the same transform function

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

* Fix http(s) formatting and add some tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-31 07:58:35 -04:00
Sebastian Malton 63fb94589a Fix CatalogEntity.status sorting in Catalog (#5147)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-31 07:58:01 -04:00
Sebastian Malton 69f1ecb0b9 Fix exception in KubeStore.watch event buffer handling (#5120)
* Fix exception in KubeStore.watch event buffer handling

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

* Fix type error

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-30 07:04:59 -04:00
Sebastian Malton 4c92f3f251 Fully support displaying all supported PodVolume types (#4131) 2022-03-28 09:04:15 -04:00
Sebastian Malton 9203367c60 Fix KubeJsonApi.forCluster throwing on renderer (#5034) 2022-03-24 09:28:04 -04:00
Sebastian Malton 4ca66fceee Bump package version to 5.5.0-alpha.0 (#5083)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-24 08:07:21 -04:00
Sebastian Malton b08daa811d Fix all Age, LastSeen, and FirstSeen displays (#4990) 2022-03-17 15:17:03 -04:00
Sebastian Malton 4d1c69094b Fix spacing and layout of registered TopBar items (#4991) 2022-03-15 08:36:14 -04:00
Sebastian Malton 8b6f8e5dc3 Fix HelmChart validator requiring digest field (#4920)
* Fix HelmChart validator requiring digest field

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

* fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-10 07:06:47 -05:00
Sebastian Malton a19f094a0d Consolidate downloading binaries into one script (#4942)
* Consolidate downloading binaries into one script

- Upgrade lens-k8s-proxy to 0.1.5 which allows us to remove the trailing
  slash in KubeAuthProxy

- Consolidate nromalizing arch and os strings

- Remove LensBinary as HelmCli is not just a raw object since it is
  always bundled

- Introduce OnceCell and use it for the binary paths

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

* Fully remove helmCli, move associated variable to vars

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

* Fix helm downloading on windows

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

* Don't download binaries for unsupported windows

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

* Arch specific paths

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

* Fix downloading helm on windows

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

* rename once-cell file to lazy-initialized

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-09 17:51:51 -05:00
Sebastian Malton d72ebac5f3 Bump lens-k8s-proxy to v0.1.5 (#4946)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-02 17:21:32 -05:00
Sebastian Malton 1077a949ec Cherry Pick from master to release/v5.4 (#4945) (#4955) 2022-03-02 08:58:52 -05:00
Sebastian Malton 0b32775d40 Enforce some naming conventions (#4813) 2022-03-01 13:06:53 -05:00
Sebastian Malton dc6615f98f Cherry Pick commits from master to release/5.4 (#4943) 2022-03-01 11:11:39 -05:00
Sebastian Malton ff14603be6 Fix formatDuration test to be stable (#4944) 2022-03-01 11:05:32 -05:00
Sebastian Malton 5196ffa55d Fix Editor's Font Family preference not being editable (#4938) 2022-03-01 10:53:44 -05:00
Sebastian Malton f5a7d64551 Reduce cluster logging on quit (#4935) 2022-02-28 08:34:45 -05:00
Sebastian Malton 9c604dcfa1 Fix UnhandledPromiseRejectionWarning in KubeApi.watch (#4919)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-22 13:34:49 -05:00
Sebastian Malton 8088d3b5c2 Remove ExtenedMap, ToggleSet, and observable versions (#3310)
- Switch to helper functions instead. They don't impact the prototype
  tree and it means that we don't need to introduce versions that are
  both observable and "normal"

- Tidy <ItemListLayout> and hiddenTableColumns to not need
  pre-initialization

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-16 18:20:22 -05:00
Sebastian Malton ed91ef2d03 Cleanup HelmRepoManager and <HelmCharts> (#4564) 2022-02-16 14:43:26 -05:00
Sebastian Malton dd819bb534 Refine UserStore from/to usage (#3292) 2022-02-16 14:43:19 -05:00
Sebastian Malton 600bd659f6 Enforce member-delimiter-style using eslint (#4870) 2022-02-16 14:43:03 -05:00
Sebastian Malton 46585ee9d8 Rename KubernetesCluster MenuItem from Delete to Remove (#4854) 2022-02-14 09:24:38 -05:00
Sebastian Malton 81e6dc5d8e Allow better typings for extending type of KubernetesCluster (#4843) 2022-02-10 15:55:03 -05:00
Sebastian MaltonandAlex Andreev 8480b2a1e5 Fix StatusBar extension API (#4838)
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-02-10 09:08:59 -05:00
Sebastian Malton 15c867745f Restrict title name to be only string (#4839)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-09 07:41:12 -05:00
Sebastian Malton d4d2da1d28 Fix extension sidebar items sometimes being expandable (#4835)
* Fix extension sidebar items sometimes being expandable

- Change <TabRoutesSidebarItems> to be just a helper function

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

* Actual fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-08 20:21:54 +02:00
Sebastian Malton f53892cb46 Fix custom-resource navigation (#4831)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-08 15:43:50 +02:00
Sebastian Malton 0745f9c063 Fix Cluster.refresh sometimes taking upwards of 20s (#4826)
- Only read and parse the proxy config once

- Reuse the AuthorizationV1Api instance for the entire refresh instead
  of recreating it between 32 and 302 times, this should allow for
  reusing sockets

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-08 15:37:46 +02:00
Sebastian Malton 4abe0d6c20 Only group delete visible items (#4798) 2022-02-07 10:40:20 -05:00
Sebastian Malton 06ec1b39a4 Fix not being able to install extensions sometimes (#4794) 2022-02-07 09:07:09 -05:00
Sebastian Malton 0017f515ab Fix 'mkdocs deploy master' workflow (#4810) 2022-02-03 09:56:45 -05:00
Sebastian Malton 2b952e193e Fix electronegativity workflow config (#4809) 2022-02-03 09:36:45 -05:00
76f48df56b Fix rerendering of KubeObject views every 30s (#4801)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2022-02-03 09:11:28 -05:00
Sebastian Malton dd4aa30b8d Update Node.getRoleLabels() to work with kube 1.16's defaults (#4771)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-01 07:33:39 -05:00
Sebastian Malton 0b1696fe16 Fix build due to removal of old extended collections (#4779) 2022-01-31 10:46:40 -05:00
0ce4e3d793 Full dependency inversion of <Dock> and all current tab kinds (#4757)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-31 09:49:36 -05:00