Validate cluster object in kubeconfig when constructing cluster

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2021-01-14 17:10:21 +02:00
1 parent 6dd7374899
commit 1cbac447b6
3 files changed
+36 -11

No files matched your search

@@ -147,7 +147,7 @@ export class AddCluster extends React.Component {
try {
const kubeConfig = this.kubeContexts.get(context);
validateKubeConfig(kubeConfig);
validateKubeConfig(kubeConfig, context);
return true;
} catch (err) {