From 4d2211b92b900435be1e7cae7c21efd995c1ea95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Verstraeten?= Date: Tue, 20 May 2025 12:35:41 +0200 Subject: [PATCH] Update Minio pod status check to reflect expected readiness state --- .github/workflows/k3d.yaml | 2 +- .github/workflows/kind.yaml | 2 +- .github/workflows/microk8s.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/k3d.yaml b/.github/workflows/k3d.yaml index 875d67d..148471f 100644 --- a/.github/workflows/k3d.yaml +++ b/.github/workflows/k3d.yaml @@ -50,7 +50,7 @@ jobs: kubectl apply -f ./base/minio/minio-tenant-base.yaml echo "Sleeping for 60 seconds, give time for the operator/tenant to create the CRDs" && sleep 60 kubectl get po -A -o wide - kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '2/2' && echo "myminio-pool-0-0 pod is running with status 2/2" || (echo "myminio-pool-0-0 pod is not running with status 2/2" && exit 1) + kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '1/2' && echo "myminio-pool-0-0 pod is running with status 1/2" || (echo "myminio-pool-0-0 pod is not running with status 1/2" && exit 1) - name: Install MongoDB id: install-mongodb run: | diff --git a/.github/workflows/kind.yaml b/.github/workflows/kind.yaml index 2f6db02..0645b54 100644 --- a/.github/workflows/kind.yaml +++ b/.github/workflows/kind.yaml @@ -48,7 +48,7 @@ jobs: kubectl apply -f ./base/minio/minio-tenant-base.yaml echo "Sleeping for 60 seconds, give time for the operator/tenant to create the CRDs" && sleep 60 kubectl get po -A -o wide - kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '2/2' && echo "myminio-pool-0-0 pod is running with status 2/2" || (echo "myminio-pool-0-0 pod is not running with status 2/2" && exit 1) + kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '1/2' && echo "myminio-pool-0-0 pod is running with status 1/2" || (echo "myminio-pool-0-0 pod is not running with status 1/2" && exit 1) - name: Install MongoDB id: install-mongodb run: | diff --git a/.github/workflows/microk8s.yaml b/.github/workflows/microk8s.yaml index c7443fc..a942f2c 100644 --- a/.github/workflows/microk8s.yaml +++ b/.github/workflows/microk8s.yaml @@ -46,7 +46,7 @@ jobs: kubectl apply -f ./base/minio/minio-tenant-base.yaml echo "Sleeping for 60 seconds, give time for the operator/tenant to create the CRDs" && sleep 60 kubectl get po -A -o wide - kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '2/2' && echo "myminio-pool-0-0 pod is running with status 2/2" || (echo "myminio-pool-0-0 pod is not running with status 2/2" && exit 1) + kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '1/2' && echo "myminio-pool-0-0 pod is running with status 1/2" || (echo "myminio-pool-0-0 pod is not running with status 1/2" && exit 1) - name: Install MongoDB id: install-mongodb run: |