Update Minio installation to wait for pod readiness instead of tenant initialization

This commit is contained in:
cedricve
2025-11-26 16:28:52 +01:00
parent 25172b8cb0
commit d78e4adcf4

View File

@@ -51,7 +51,7 @@ jobs:
run: |
git clone --depth 1 --branch v6.0.1 https://github.com/minio/operator.git && kubectl apply -k operator/
kubectl apply -f ./base/minio/minio-tenant-base.yaml
kubectl wait --for=condition=TenantInitialized tenant/myminio -n minio-tenant --timeout=300s
kubectl wait --for=condition=ready pod/myminio-pool-0-0 -n minio-tenant --timeout=300s
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)
- name: Install MongoDB