1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common
Lauri Nevala 4f74b9aabe
Ignore clusters with invalid kubeconfig (#1956)
* Ignore clusters with invalid kubeconfig

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Improve error message

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Mark cluster as dead if kubeconfig loading fails

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Fix tests

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Validate cluster object in kubeconfig when constructing cluster

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Add unit tests for validateKubeConfig

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Refactor validateKubeconfig unit tests

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Extract ValidationOpts type

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Add default value to validationOpts param

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Change isDead to property

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Fix lint issues

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Add missing new line

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Update validateKubeConfig in-code documentation

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Remove isDead property

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Display warning notification if invalid kubeconfig detected (#2233)

* Display warning notification if invalid kubeconfig detected

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2021-03-01 17:30:22 +02:00
..
__tests__ Ignore clusters with invalid kubeconfig (#1956) 2021-03-01 17:30:22 +02:00
ipc Ignore clusters with invalid kubeconfig (#1956) 2021-03-01 17:30:22 +02:00
protocol-handler Add lens:// protocol handling with a routing mechanism (#1949) 2021-02-25 09:32:40 -05:00
utils Add lens:// protocol handling with a routing mechanism (#1949) 2021-02-25 09:32:40 -05:00
.gitkeep Lens app source code (#119) 2020-03-15 09:52:02 +02:00
base-store.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
cluster-frames.ts Fix Electron 9.4 frame ipc bug (#1888) 2021-01-04 14:16:35 +02:00
cluster-ipc.ts Fix Electron 9.4 frame ipc bug (#1888) 2021-01-04 14:16:35 +02:00
cluster-store.ts Ignore clusters with invalid kubeconfig (#1956) 2021-03-01 17:30:22 +02:00
custom-errors.ts enfore unix line endings and always ending files with line endings (#1997) 2021-01-21 08:09:41 -05:00
event-bus.ts Use @typescript-eslint/semi. 2020-11-19 18:12:52 +02:00
event-emitter.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
kube-helpers.ts Ignore clusters with invalid kubeconfig (#1956) 2021-03-01 17:30:22 +02:00
prometheus-providers.ts enfore unix line endings and always ending files with line endings (#1997) 2021-01-21 08:09:41 -05:00
rbac.ts Fix(rbac): pdp should have policy group (#2132) 2021-02-26 08:39:54 +02:00
register-protocol.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
request.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
search-store.ts Generic logs view with Pod selector (#1984) 2021-01-27 17:20:02 +03:00
system-ca.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
user-store.ts Load k8s resources only for selected namespaces (#1918) 2021-01-22 13:18:46 +02:00
vars.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
workspace-store.ts Enable default workspace on first boot (#1965) 2021-01-19 06:30:05 +02:00