Skip to content

Commit

Permalink
rename container name
Browse files Browse the repository at this point in the history
  • Loading branch information
jx2lee committed Dec 19, 2024
1 parent e56f93b commit 9e805ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chart/templates/triggerer/triggerer-kedaautoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
scaleTargetRef:
kind: {{ ternary "StatefulSet" "Deployment" .Values.triggerer.persistence.enabled }}
name: {{ .Release.Name }}-triggerer
envSourceContainerName: {{ include "airflow.fullname" . }}-worker
envSourceContainerName: triggerer
pollingInterval: {{ .Values.triggerer.keda.pollingInterval }}
cooldownPeriod: {{ .Values.triggerer.keda.cooldownPeriod }}
minReplicaCount: {{ .Values.triggerer.keda.minReplicaCount }}
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/workers/worker-kedaautoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
scaleTargetRef:
kind: {{ ternary "StatefulSet" "Deployment" .Values.workers.persistence.enabled }}
name: {{ include "airflow.fullname" . }}-worker
envSourceContainerName: {{ include "airflow.fullname" . }}-worker
envSourceContainerName: worker
pollingInterval: {{ .Values.workers.keda.pollingInterval }}
cooldownPeriod: {{ .Values.workers.keda.cooldownPeriod }}
minReplicaCount: {{ .Values.workers.keda.minReplicaCount }}
Expand Down
2 changes: 1 addition & 1 deletion helm_tests/other/test_keda.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_include_event_source_container_name_in_scaled_object(self, executor, is
},
show_only=["templates/workers/worker-kedaautoscaler.yaml"],
)
assert jmespath.search("spec.scaleTargetRef.envSourceContainerName", docs[0]) == "release-name-worker"
assert jmespath.search("spec.scaleTargetRef.envSourceContainerName", docs[0]) == "worker"

@pytest.mark.parametrize("executor", ["CeleryExecutor", "CeleryKubernetesExecutor"])
def test_keda_advanced(self, executor):
Expand Down

0 comments on commit 9e805ac

Please sign in to comment.