Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
Signed-off-by: instamenta <[email protected]>
  • Loading branch information
instamenta committed Jan 17, 2025
1 parent 1e9346e commit 4282698
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/commands/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export class DeploymentCommand extends BaseCommand {
{
title: 'Create remoteConfig in clusters',
task: async (ctx, task) => {
const subTasks = [];
const subTasks: SoloListrTask<Context>[] = [];

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));
Expand Down
2 changes: 1 addition & 1 deletion src/core/k8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 1212 in src/core/k8.ts

View check run for this annotation

Codecov / codecov/patch

src/core/k8.ts#L1212

Added line #L1212 was not covered by tests
.catch(() => false);
}

Expand Down

0 comments on commit 4282698

Please sign in to comment.