From 2ff7134dcdd5e1a197cd37c66dde81bc73d18f39 Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Tue, 22 Oct 2024 16:30:42 +0900 Subject: [PATCH] feat(http-add-on): Add watchLabel for HTTPScaledObjects --- http-add-on/templates/operator/deployment.yaml | 4 +++- http-add-on/values.yaml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/http-add-on/templates/operator/deployment.yaml b/http-add-on/templates/operator/deployment.yaml index 51841dec..0f8075ef 100644 --- a/http-add-on/templates/operator/deployment.yaml +++ b/http-add-on/templates/operator/deployment.yaml @@ -19,7 +19,7 @@ spec: app.kubernetes.io/component: operator {{- include "keda-http-add-on.labels" . | indent 8 }} spec: - imagePullSecrets: + imagePullSecrets: {{- toYaml .Values.operator.imagePullSecrets | nindent 8 }} serviceAccountName: {{ .Chart.Name }} {{- if .Values.podSecurityContext.operator }} @@ -64,6 +64,8 @@ spec: value: "{{ .Release.Namespace }}" - name: KEDA_HTTP_OPERATOR_WATCH_NAMESPACE value: "{{ .Values.operator.watchNamespace }}" + - name: KEDA_HTTP_WATCH_LABEL + value: "{{ .Values.operator.watchLabel }}" ports: - name: metrics containerPort: 8080 diff --git a/http-add-on/values.yaml b/http-add-on/values.yaml index 0436af27..01006930 100644 --- a/http-add-on/values.yaml +++ b/http-add-on/values.yaml @@ -50,6 +50,8 @@ operator: imagePullSecrets: [] # -- The namespace to watch for new `HTTPScaledObject`s. Leave this blank (i.e. `""`) to tell the operator to watch all namespaces. watchNamespace: "" + # -- label to watch for new `HTTPScaledObject`s. Leave this blank (i.e. `""`) to watch HTTPScaledObjects in all labels. + watchLabel: "" # -- The image pull policy for the operator component pullPolicy: Always # operator pod resource limits