This is an automated email from the ASF dual-hosted git repository.
Miretpl pushed a commit to branch chart/v1-2x-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/chart/v1-2x-test by this push:
new 3ae7e32eda6 [chart/v1-2x-test] Add global labels to helm chart
priorityclasses (#68759) (#69282)
3ae7e32eda6 is described below
commit 3ae7e32eda624a08206ad9f053b72320d7bfc3da
Author: Aakcht <[email protected]>
AuthorDate: Sat Jul 4 01:20:26 2026 +0500
[chart/v1-2x-test] Add global labels to helm chart priorityclasses (#68759)
(#69282)
(cherry picked from commit 0472e517494343f316dc3ddf98394406949cddeb)
---
chart/templates/priorityclasses/priority-classes.yaml | 3 +++
helm-tests/tests/helm_tests/airflow_aux/test_basic_helm_chart.py | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/chart/templates/priorityclasses/priority-classes.yaml
b/chart/templates/priorityclasses/priority-classes.yaml
index 22153f2c520..777c536c0f6 100644
--- a/chart/templates/priorityclasses/priority-classes.yaml
+++ b/chart/templates/priorityclasses/priority-classes.yaml
@@ -32,6 +32,9 @@ metadata:
release: {{ $Global.Release.Name }}
chart: "{{ $Global.Chart.Name }}-{{ $Global.Chart.Version }}"
heritage: {{ $Global.Release.Service }}
+ {{- with $Global.Values.labels }}
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
preemptionPolicy: {{ default "PreemptLowerPriority" $e.preemptionPolicy }}
value: {{ $e.value | required "value is required for priority classes" }}
description: "This priority class will not cause other pods to be preempted."
diff --git a/helm-tests/tests/helm_tests/airflow_aux/test_basic_helm_chart.py
b/helm-tests/tests/helm_tests/airflow_aux/test_basic_helm_chart.py
index 29f03569308..bf10319c209 100644
--- a/helm-tests/tests/helm_tests/airflow_aux/test_basic_helm_chart.py
+++ b/helm-tests/tests/helm_tests/airflow_aux/test_basic_helm_chart.py
@@ -400,6 +400,9 @@ class TestBaseChartTest:
"logs": {"persistence": {"enabled": True}},
"dags": {"persistence": {"enabled": True}},
"postgresql": {"enabled": False}, # We won't check the objects
created by the postgres chart
+ "priorityClasses": [
+ {"name": "class1", "value": 10000},
+ ],
}
if airflow_version != "default":
@@ -466,6 +469,7 @@ class TestBaseChartTest:
(f"{release_name}-dag-processor", "Deployment", "dag-processor"),
(f"{release_name}-logs", "PersistentVolumeClaim", "logs-pvc"),
(f"{release_name}-dags", "PersistentVolumeClaim", "dags-pvc"),
+ (f"{release_name}-class1", "PriorityClass", None),
]
if self._is_airflow_3_or_above(airflow_version):