Skip to content

Commit

Permalink
Update ci-helm-lint-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudymax authored Nov 10, 2023
1 parent 5e45cb7 commit 6f3a184
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci-helm-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ jobs:
name: null
certificates:
server:
enabled: false
generate: false
enabled: true
generate: true
serverTLSSecret: ""
serverCASecret: ""
client:
enabled: false
generate: false
enabled: true
generate: true
clientCASecret: ""
replicationTLSSecret: ""
user:
enabled: false
enabled: true
username: "app"
monitoring:
enablePodMonitor: false
Expand All @@ -115,17 +115,14 @@ jobs:
helm install cnpg-cluster cnpg-cluster/cnpg-cluster \
--values test-values.yaml \
--wait
#helm template . -f test-values.yaml > deploy.yaml
#kubectl apply -f deploy.yaml
ITER=0
while true; do
if [[ $ITER -ge 300 ]]; then
echo "Cluster not ready"
exit 1
fi
READY_INSTANCES=$(kubectl get cluster cluster-example -o jsonpath='{.status.readyInstances}')
READY_INSTANCES=$(kubectl get cluster cnpg -o jsonpath='{.status.readyInstances}')
if [[ "$READY_INSTANCES" == 3 ]]; then
echo "Cluster up and running"
break
Expand Down

0 comments on commit 6f3a184

Please sign in to comment.