Skip to content

Commit c0d8e1b

Browse files
committed
stabilise test
1 parent c64e53d commit c0d8e1b

3 files changed

Lines changed: 3 additions & 12 deletions

File tree

tests/templates/kuttl/ca-cert/25-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ commands:
77
# this is to avoid excessive looping while the git-sync pod starts
88
sleep 10
99
10-
POD="airflow-dagprocessor-default-0"
10+
POD="airflow-wrong-cert-dagprocessor-default-0"
1111
CONTAINER="git-sync-0"
1212
1313
kubectl logs -n "$NAMESPACE" "$POD" -c "$CONTAINER" 2>/dev/null \

tests/templates/kuttl/ca-cert/25_airflow-wrong-cert.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: airflow.stackable.tech/v1alpha2
33
kind: AirflowCluster
44
metadata:
5-
name: airflow
5+
name: airflow-wrong-cert
66
spec:
77
image:
88
{% if test_scenario['values']['airflow-latest'].find(",") > 0 %}

tests/templates/kuttl/ca-cert/30-install-airflow-cluster.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,5 @@ metadata:
66
timeout: 480
77
commands:
88
- script: |
9+
kubectl delete airflowcluster airflow-wrong-cert -n $NAMESPACE --wait=false
910
envsubst < 30_airflow-cluster.yaml | kubectl apply -n $NAMESPACE -f -
10-
11-
# Wait for all StatefulSet volumes to reference the correct git-ca-cert.
12-
for STS in airflow-dagprocessor-default airflow-scheduler-default airflow-webserver-default; do
13-
until kubectl get statefulset "$STS" \
14-
-n $NAMESPACE \
15-
-o jsonpath='{.spec.template.spec.volumes[*].secret.secretName}' \
16-
2>/dev/null | grep -q "git-ca-cert"; do
17-
sleep 2
18-
done
19-
done

0 commit comments

Comments
 (0)