Skip to content

Commit 54cc58f

Browse files
committed
removed todo in title: 'Check auxiliary pods are ready'
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent e060218 commit 54cc58f

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/commands/network.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -816,17 +816,19 @@ export class NetworkCommand extends BaseCommand {
816816
// minio
817817
subTasks.push({
818818
title: 'Check MinIO',
819-
// TODO: @Lenin, needs to run for each cluster
820-
task: async ctx =>
821-
await self.k8Factory
822-
.default()
823-
.pods()
824-
.waitForReadyStatus(
825-
ctx.config.namespace,
826-
['v1.min.io/tenant=minio'],
827-
constants.PODS_RUNNING_MAX_ATTEMPTS,
828-
constants.PODS_RUNNING_DELAY,
829-
),
819+
task: async ctx => {
820+
for (const context of ctx.config.contexts) {
821+
await self.k8Factory
822+
.getK8(context)
823+
.pods()
824+
.waitForReadyStatus(
825+
ctx.config.namespace,
826+
['v1.min.io/tenant=minio'],
827+
constants.PODS_RUNNING_MAX_ATTEMPTS,
828+
constants.PODS_RUNNING_DELAY,
829+
);
830+
}
831+
},
830832
// skip if only cloud storage is/are used
831833
skip: ctx =>
832834
ctx.config.storageType === constants.StorageType.GCS_ONLY ||

0 commit comments

Comments
 (0)