Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions tests/templates/kuttl/ca-cert/90-cleanup-executor-pods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster --all -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% if test_scenario['values']['executor'] == 'kubernetes' %}
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
{% endif %}
20 changes: 20 additions & 0 deletions tests/templates/kuttl/ldap/99-cleanup-executor-pods.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% if test_scenario['values']['executor'] == 'kubernetes' %}
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
{% endif %}
20 changes: 20 additions & 0 deletions tests/templates/kuttl/logging/90-cleanup-executor-pods.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% if test_scenario['values']['executor'] == 'kubernetes' %}
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% if test_scenario['values']['executor'] == 'kubernetes' %}
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% if test_scenario['values']['executor'] == 'kubernetes' %}
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
{% endif %}
18 changes: 18 additions & 0 deletions tests/templates/kuttl/oidc/90-cleanup-executor-pods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
18 changes: 18 additions & 0 deletions tests/templates/kuttl/opa/90-cleanup-executor-pods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
18 changes: 18 additions & 0 deletions tests/templates/kuttl/overrides/90-cleanup-executor-pods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster --all -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% if test_scenario['values']['executor'] == 'kubernetes' %}
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
{% endif %}
20 changes: 20 additions & 0 deletions tests/templates/kuttl/smoke/90-cleanup-executor-pods.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% if test_scenario['values']['executor'] == 'kubernetes' %}
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
{% endif %}
20 changes: 20 additions & 0 deletions tests/templates/kuttl/triggerer/90-cleanup-executor-pods.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% if test_scenario['values']['executor'] == 'kubernetes' %}
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
{% endif %}
18 changes: 18 additions & 0 deletions tests/templates/kuttl/versioning/90-cleanup-executor-pods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
# Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
# sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
# namespace deletion past kuttl's timeout.
# The proper fix is in operator-rs (making Vector PID 1 via exec).
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 600
commands:
- script: |
kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
- script: |
if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
exit 0
fi
kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
Loading