File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
3+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
4+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
5+ # namespace deletion past kuttl's timeout.
6+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
7+ apiVersion : kuttl.dev/v1beta1
8+ kind : TestStep
9+ timeout : 600
10+ commands :
11+ - script : |
12+ kubectl delete airflowcluster --all -n $NAMESPACE --wait=false 2>/dev/null || true
13+ - script : |
14+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
15+ exit 0
16+ fi
17+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
18+ 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 1+ {% if test_scenario ['values' ]['executor' ] == 'kubernetes' %}
2+ ---
3+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
4+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
5+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
6+ # namespace deletion past kuttl's timeout.
7+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
8+ apiVersion: kuttl.dev/v1beta1
9+ kind: TestStep
10+ timeout: 600
11+ commands:
12+ - script: |
13+ kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
14+ - script: |
15+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
16+ exit 0
17+ fi
18+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
19+ kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
20+ {% endif %}
Original file line number Diff line number Diff line change 1+ {% if test_scenario ['values' ]['executor' ] == 'kubernetes' %}
2+ ---
3+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
4+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
5+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
6+ # namespace deletion past kuttl's timeout.
7+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
8+ apiVersion: kuttl.dev/v1beta1
9+ kind: TestStep
10+ timeout: 600
11+ commands:
12+ - script: |
13+ kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
14+ - script: |
15+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
16+ exit 0
17+ fi
18+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
19+ kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
20+ {% endif %}
Original file line number Diff line number Diff line change 1+ {% if test_scenario ['values' ]['executor' ] == 'kubernetes' %}
2+ ---
3+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
4+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
5+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
6+ # namespace deletion past kuttl's timeout.
7+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
8+ apiVersion: kuttl.dev/v1beta1
9+ kind: TestStep
10+ timeout: 600
11+ commands:
12+ - script: |
13+ kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
14+ - script: |
15+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
16+ exit 0
17+ fi
18+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
19+ kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
20+ {% endif %}
Original file line number Diff line number Diff line change 1+ {% if test_scenario ['values' ]['executor' ] == 'kubernetes' %}
2+ ---
3+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
4+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
5+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
6+ # namespace deletion past kuttl's timeout.
7+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
8+ apiVersion: kuttl.dev/v1beta1
9+ kind: TestStep
10+ timeout: 600
11+ commands:
12+ - script: |
13+ kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
14+ - script: |
15+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
16+ exit 0
17+ fi
18+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
19+ kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
20+ {% endif %}
Original file line number Diff line number Diff line change 1+ {% if test_scenario ['values' ]['executor' ] == 'kubernetes' %}
2+ ---
3+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
4+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
5+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
6+ # namespace deletion past kuttl's timeout.
7+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
8+ apiVersion: kuttl.dev/v1beta1
9+ kind: TestStep
10+ timeout: 600
11+ commands:
12+ - script: |
13+ kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
14+ - script: |
15+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
16+ exit 0
17+ fi
18+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
19+ kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
20+ {% endif %}
Original file line number Diff line number Diff line change 1+ ---
2+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
3+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
4+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
5+ # namespace deletion past kuttl's timeout.
6+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
7+ apiVersion : kuttl.dev/v1beta1
8+ kind : TestStep
9+ timeout : 600
10+ commands :
11+ - script : |
12+ kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
13+ - script : |
14+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
15+ exit 0
16+ fi
17+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
18+ 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 1+ ---
2+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
3+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
4+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
5+ # namespace deletion past kuttl's timeout.
6+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
7+ apiVersion : kuttl.dev/v1beta1
8+ kind : TestStep
9+ timeout : 600
10+ commands :
11+ - script : |
12+ kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
13+ - script : |
14+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
15+ exit 0
16+ fi
17+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
18+ 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 1+ ---
2+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
3+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
4+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
5+ # namespace deletion past kuttl's timeout.
6+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
7+ apiVersion : kuttl.dev/v1beta1
8+ kind : TestStep
9+ timeout : 600
10+ commands :
11+ - script : |
12+ kubectl delete airflowcluster --all -n $NAMESPACE --wait=false 2>/dev/null || true
13+ - script : |
14+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
15+ exit 0
16+ fi
17+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
18+ 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 1+ {% if test_scenario ['values' ]['executor' ] == 'kubernetes' %}
2+ ---
3+ # Force-delete KubernetesExecutor DAG task pods before kuttl deletes the namespace.
4+ # Their Vector sidecar does not respond to SIGTERM (it is not PID 1), so these pods
5+ # sit in Terminating for the full terminationGracePeriodSeconds (300s), blocking
6+ # namespace deletion past kuttl's timeout.
7+ # The proper fix is in operator-rs (making Vector PID 1 via exec).
8+ apiVersion: kuttl.dev/v1beta1
9+ kind: TestStep
10+ timeout: 600
11+ commands:
12+ - script: |
13+ kubectl delete airflowcluster airflow -n $NAMESPACE --wait=false 2>/dev/null || true
14+ - script: |
15+ if kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=120s 2>/dev/null; then
16+ exit 0
17+ fi
18+ kubectl delete pods -l app.kubernetes.io/name=airflow -n $NAMESPACE --grace-period=0 --force 2>/dev/null || true
19+ kubectl wait --for=delete pod -l app.kubernetes.io/name=airflow -n $NAMESPACE --timeout=300s
20+ {% endif %}
You can’t perform that action at this time.
0 commit comments