From ee22cd728f8a1325db1d9ecf03440bbb736a6f46 Mon Sep 17 00:00:00 2001 From: jx2lee Date: Thu, 19 Dec 2024 07:35:24 +0900 Subject: [PATCH] rename container name --- chart/templates/triggerer/triggerer-kedaautoscaler.yaml | 2 +- chart/templates/workers/worker-kedaautoscaler.yaml | 2 +- helm_tests/other/test_keda.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chart/templates/triggerer/triggerer-kedaautoscaler.yaml b/chart/templates/triggerer/triggerer-kedaautoscaler.yaml index d4254d01fe00a..4eda2858f0272 100644 --- a/chart/templates/triggerer/triggerer-kedaautoscaler.yaml +++ b/chart/templates/triggerer/triggerer-kedaautoscaler.yaml @@ -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 }} diff --git a/chart/templates/workers/worker-kedaautoscaler.yaml b/chart/templates/workers/worker-kedaautoscaler.yaml index ddf1e33b4262a..ab794c899636b 100644 --- a/chart/templates/workers/worker-kedaautoscaler.yaml +++ b/chart/templates/workers/worker-kedaautoscaler.yaml @@ -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 }} diff --git a/helm_tests/other/test_keda.py b/helm_tests/other/test_keda.py index 6fb0d4b884b7f..c1263082ad9e9 100644 --- a/helm_tests/other/test_keda.py +++ b/helm_tests/other/test_keda.py @@ -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):