From 0b64d00bb0ed0799e0f9301f6388ad2314b7febf Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger Date: Fri, 7 Jan 2022 17:54:23 +0000 Subject: [PATCH 1/2] adding WATCH_NAMESPACE option to the HTTP Addon operator Signed-off-by: Aaron Schlesinger --- http-add-on/templates/deployment-operator.yaml | 2 ++ http-add-on/values.yaml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/http-add-on/templates/deployment-operator.yaml b/http-add-on/templates/deployment-operator.yaml index 4f739a8a..b956ab49 100644 --- a/http-add-on/templates/deployment-operator.yaml +++ b/http-add-on/templates/deployment-operator.yaml @@ -57,6 +57,8 @@ spec: value: "{{ .Values.interceptor.proxy.port }}" - name: KEDA_HTTP_OPERATOR_NAMESPACE value: "{{ .Release.Namespace }}" + - name: KEDA_HTTP_OPERATOR_WATCH_NAMESPACE + value: "{{ .Values.operator.watchNamespace }}" ports: - containerPort: {{ .Values.operator.adminPort }} diff --git a/http-add-on/values.yaml b/http-add-on/values.yaml index 8a34d38c..bc2e1d11 100644 --- a/http-add-on/values.yaml +++ b/http-add-on/values.yaml @@ -7,6 +7,10 @@ crds: # operator-specific configuration values operator: + # the namespace to watch for new HTTPScaledObjects. + # leave this empty to tell the operator to watch in all + # namespaces + watchNamespace: "" # the image pull policy of the operator pullPolicy: Always # operator pod resource limits From bae723b486748034482121daf21042670c9db767 Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger Date: Fri, 7 Jan 2022 17:57:04 +0000 Subject: [PATCH 2/2] adding docs for watchNamespace Signed-off-by: Aaron Schlesinger --- http-add-on/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/http-add-on/README.md b/http-add-on/README.md index a05699b6..2e900250 100644 --- a/http-add-on/README.md +++ b/http-add-on/README.md @@ -90,6 +90,7 @@ their default values. | `images.kubeRbacProxy.tag` | Image tag for the Kube RBAC Proxy image component | `v0.5.0` | | `additionalLabels` | Additional labels to be applied to installed resources. Note that not all resources will receive these labels. | Nothing | | `crds.install` | Whether to install the `HTTPScaledObject` [`CustomResourceDefinition`](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) | `true` | +| `operator.watchNamespace` | The namespace to watch for new `HTTPScaledObject`s. Leave this blank (i.e. `""`) to tell the operator to watch all namespaces. | `""` | | `operator.pullPolicy` | The image pull policy for the operator component | `Always` | | `operator.resources.limits.cpu` | The CPU resource limit for the operator component | `0.5` | | `operator.resources.limits.memory` | The memory resource limit for the operator component | `64Mi` |