From 697b747d0719326dccdd3c9578bfd29b3a4ab00c Mon Sep 17 00:00:00 2001 From: Kyryl Skobylko Date: Tue, 7 Feb 2023 15:54:10 +0200 Subject: [PATCH] Update pod-sweeper to allow multi-ns deploy (#22415) * Update pod-sweeper to allow multi-ns deploy * nit newline --- charts/airbyte-pod-sweeper/templates/configmap.yaml | 1 + charts/airbyte-pod-sweeper/templates/deployment.yaml | 1 + charts/airbyte-pod-sweeper/values.yaml | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/airbyte-pod-sweeper/templates/configmap.yaml b/charts/airbyte-pod-sweeper/templates/configmap.yaml index 084c12024ce5..f6f3d2917e40 100644 --- a/charts/airbyte-pod-sweeper/templates/configmap.yaml +++ b/charts/airbyte-pod-sweeper/templates/configmap.yaml @@ -4,6 +4,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: {{ include "common.names.fullname" . }}-sweep-pod-script + namespace: {{ .Values.namespace | default .Release.Namespace }} labels: {{- include "airbyte.labels" . | nindent 4 }} diff --git a/charts/airbyte-pod-sweeper/templates/deployment.yaml b/charts/airbyte-pod-sweeper/templates/deployment.yaml index cd6d2e4d946b..b92079b6c7d8 100644 --- a/charts/airbyte-pod-sweeper/templates/deployment.yaml +++ b/charts/airbyte-pod-sweeper/templates/deployment.yaml @@ -5,6 +5,7 @@ metadata: name: {{ include "common.names.fullname" . }}-pod-sweeper labels: {{- include "airbyte.labels" . | nindent 4 }} + namespace: {{ .Values.namespace | default .Release.Namespace }} spec: replicas: {{ .Values.replicaCount }} selector: diff --git a/charts/airbyte-pod-sweeper/values.yaml b/charts/airbyte-pod-sweeper/values.yaml index 153b5739ad46..5a7afeda5d10 100644 --- a/charts/airbyte-pod-sweeper/values.yaml +++ b/charts/airbyte-pod-sweeper/values.yaml @@ -224,4 +224,8 @@ timeToDeletePods: completed: 120 error: 1440 -replicaCount: 1 \ No newline at end of file +replicaCount: 1 + + +## namespace [string] namespace to deploy pod-sweeper at +namespace: ""