Skip to content

Commit eb4dacb

Browse files
committed
Rename dag_bundles to dagBundleConfigList for consistency
1 parent a4ffaa9 commit eb4dacb

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

chart/templates/_helpers.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,19 +1204,19 @@ Usage:
12041204
{{- end -}}
12051205

12061206
{{/*
1207-
Convert dag_bundles YAML list to JSON string for dag_bundle_config_list.
1207+
Convert dagBundleConfigList YAML list to JSON string for dag_bundle_config_list.
12081208
This helper function converts the structured YAML format to the JSON string
12091209
format required by Airflow's dag_bundle_config_list configuration.
12101210

12111211
Usage:
12121212
config:
12131213
dag_processor:
1214-
dag_bundle_config_list: '{{ include "dag_bundles" . }}'
1214+
dag_bundle_config_list: '{{ include "dag_bundle_config_list" . }}'
12151215
*/}}
1216-
{{- define "dag_bundles" -}}
1217-
{{- if .Values.dagProcessor.dag_bundles -}}
1216+
{{- define "dag_bundle_config_list" -}}
1217+
{{- if .Values.dagProcessor.dagBundleConfigList -}}
12181218
{{- $bundles := list -}}
1219-
{{- range .Values.dagProcessor.dag_bundles -}}
1219+
{{- range .Values.dagProcessor.dagBundleConfigList -}}
12201220
{{- $bundle := dict "name" .name "classpath" .classpath "kwargs" (.kwargs | default dict) -}}
12211221
{{- $bundles = append $bundles $bundle -}}
12221222
{{- end -}}

chart/values.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4382,7 +4382,7 @@
43824382
],
43834383
"default": null
43844384
},
4385-
"dag_bundles": {
4385+
"dagBundleConfigList": {
43864386
"description": "Define DAG bundles in a structured YAML format. This will be automatically converted to JSON string format for config.dag_processor.dag_bundle_config_list.",
43874387
"type": "array",
43884388
"default": [

chart/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,12 +2271,12 @@ dagProcessor:
22712271
# DAG Bundle Configuration
22722272
# Define DAG bundles in a structured YAML format. This will be automatically
22732273
# converted to JSON string format for config.dag_processor.dag_bundle_config_list.
2274-
dag_bundles:
2274+
dagBundleConfigList:
22752275
- name: dags-folder
22762276
classpath: "airflow.dag_processing.bundles.local.LocalDagBundle"
22772277
kwargs: {}
22782278
# Example:
2279-
# dag_bundles:
2279+
# dagBundleConfigList:
22802280
# - name: bundle1
22812281
# classpath: "airflow.providers.git.bundles.git.GitDagBundle"
22822282
# kwargs:
@@ -3298,10 +3298,10 @@ config:
32983298
run_duration: 41460
32993299
dag_processor:
33003300
# DAG bundle configuration list in JSON string format.
3301-
# This is automatically generated from .Values.dagProcessor.dag_bundles using the dag_bundles helper function.
3301+
# This is automatically generated from .Values.dagProcessor.dagBundleConfigList using the dag_bundle_config_list helper function.
33023302
# Deprecated: Direct override via config.dag_processor.dag_bundle_config_list is deprecated.
33033303
# Use dagProcessor.dagBundleConfigList instead.
3304-
dag_bundle_config_list: '{{ include "dag_bundles" . }}'
3304+
dag_bundle_config_list: '{{ include "dag_bundle_config_list" . }}'
33053305
elasticsearch:
33063306
json_format: 'True'
33073307
log_id_template: "{dag_id}_{task_id}_{execution_date}_{try_number}"

helm-tests/tests/helm_tests/airflow_aux/test_configmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,11 @@ def test_expected_celery_sync_parallelism(self, scheduler_cpu_limit, expected_sy
379379
assert f"\nsync_parallelism = {expected_sync_parallelism}\n" in config
380380

381381
def test_dag_bundle_config_list(self):
382-
"""Test dag_bundle_config_list is generated from dagProcessor.dag_bundles."""
382+
"""Test dag_bundle_config_list is generated from dagProcessor.dagBundleConfigList."""
383383
docs = render_chart(
384384
values={
385385
"dagProcessor": {
386-
"dag_bundles": [
386+
"dagBundleConfigList": [
387387
{
388388
"name": "bundle1",
389389
"classpath": "airflow.providers.git.bundles.git.GitDagBundle",

0 commit comments

Comments
 (0)