diff --git a/.github/workflows/k3d.yaml b/.github/workflows/k3d.yaml index 148471f..875d67d 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 '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: | diff --git a/.github/workflows/kind.yaml b/.github/workflows/kind.yaml index 0645b54..2f6db02 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 '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: | diff --git a/.github/workflows/microk8s.yaml b/.github/workflows/microk8s.yaml index a942f2c..32c187f 100644 --- a/.github/workflows/microk8s.yaml +++ b/.github/workflows/microk8s.yaml @@ -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: |