diff --git a/src/commands/deployment.ts b/src/commands/deployment.ts index 064d87469..8ace56ebc 100644 --- a/src/commands/deployment.ts +++ b/src/commands/deployment.ts @@ -134,7 +134,8 @@ export class DeploymentCommand extends BaseCommand { { title: 'Create remoteConfig in clusters', task: async (ctx, task) => { - const subTasks = []; + const subTasks: SoloListrTask[] = []; + for (const context of Object.keys(ctx.config.contextCluster)) { const cluster = ctx.config.contextCluster[context]; subTasks.push(RemoteConfigTasks.createRemoteConfig.bind(this)(cluster, context, ctx.config.namespace)); diff --git a/src/core/k8.ts b/src/core/k8.ts index e025f1275..c19aa9650 100644 --- a/src/core/k8.ts +++ b/src/core/k8.ts @@ -1209,7 +1209,7 @@ export class K8 { const tempKubeClient = this.kubeConfig.makeApiClient(k8s.CoreV1Api); return await tempKubeClient .listNamespace() - .then(() => this.getKubeConfig().getCurrentCluster().name === cluster) + .then(() => true) .catch(() => false); }