Update Minio pod status check to verify readiness state 2/2

This commit is contained in:
Cédric Verstraeten
2025-05-20 12:48:00 +02:00
parent 4d2211b92b
commit cfee18b876
3 changed files with 7 additions and 7 deletions

View File

@@ -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 '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)
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
id: install-mongodb
run: |

View File

@@ -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 '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)
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
id: install-mongodb
run: |

View File

@@ -26,12 +26,12 @@ jobs:
kubectl get pods -A -o wide
- name: Checkout repository
uses: actions/checkout@v2
- name: Install OpenEBS
- name: Create storage class
id: create-storage-class
run: |
kubectl apply -f https://openebs.github.io/charts/openebs-operator.yaml
echo "Sleeping for 60 seconds, give time for the operator to create the CRDs" && sleep 60
kubectl apply -f ./base/ssd-hostpath-storageclass.yaml
echo "Sleeping for 30 seconds, give time for the storage class to be created" && sleep 30
kubectl get sc
kubectl get po -A -o wide
- name: Install Prometheus operator
id: install-prometheus-operator
run: |
@@ -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 '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)
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
id: install-mongodb
run: |