Skip to content

Commit

Permalink
fix: dependencies sync waves
Browse files Browse the repository at this point in the history
  • Loading branch information
chliddle committed Dec 17, 2024
1 parent e28ad59 commit d33620f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions charts/namada-indexer/templates/dependencies-job.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (and .Values.postgresOperator.install.enabled .Values.postgresOperator.enabled) (and .Values.redis.install.enabled .Values.redis.enabled) }}
{{- if or (.Values.postgresOperator.enabled) (and .Values.redis.install.enabled .Values.redis.enabled) }}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down Expand Up @@ -34,13 +34,7 @@ spec:
kubectl scale deployment -n {{ .Release.Namespace }} {{ include "namada-indexer.fullname" . }} --replicas=0
fi
{{- if and .Values.postgresOperator.install.enabled .Values.postgresOperator.enabled }}
# Wait for PostgreSQL Operator to be ready
until kubectl get deployment -n {{ .Release.Namespace }} {{ include "namada-indexer.fullname" . }}-postgres-operator; do
echo "Waiting for PostgreSQL Operator deployment..."
sleep 5
done
{{- if .Values.postgresOperator.enabled }}
# Wait for PostgreSQL StatefulSet to be created
until kubectl get statefulset -n {{ .Release.Namespace }} {{ include "namada-indexer.fullname" . }}-db; do
echo "Waiting for PostgreSQL StatefulSet..."
Expand Down

0 comments on commit d33620f

Please sign in to comment.