Skip to content

re-enable HAC for components other than DB (#1810) #21

re-enable HAC for components other than DB (#1810)

re-enable HAC for components other than DB (#1810) #21

name: Run CNPG Deployment Test
on: [push, pull_request, workflow_dispatch]
description: "Basic sanity test noobaa deployment using a CNPG cluster"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GO111MODULE: "on"
GOPROXY: "https://proxy.golang.org"
NAMESPACE: "test"
jobs:
cnpg-deployment-test:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Start Minikube
id: minikube
uses: medyagh/setup-minikube@latest
with:
cpus: 'max'
memory: 'max'
- name: Run Build CLI
id: run-build-cli
run: make cli || exit 1
- name: Run Build Image
id: run-build-image
run: eval $(minikube docker-env) && make image || exit 1
- name: Install noobaa
run: ./build/_output/bin/noobaa-operator-local -n ${NAMESPACE} --mini install
- name: Check Statuses
run: |
kubectl get pods -n ${NAMESPACE}
noobaa_status=$(kubectl get noobaa noobaa -n ${NAMESPACE} -o json | jq -r '.status.phase')
if [ "$noobaa_status" != "Ready" ]; then
kubectl -n ${NAMESPACE} describe noobaa
kubectl -n ${NAMESPACE} describe deployment
kubectl -n ${NAMESPACE} describe pod
kubectl -n ${NAMESPACE} describe cluster
echo "FAILED: Noobaa is not Ready. Check resources descriptions above"
exit 1
fi