Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding WATCH_NAMESPACE option to the HTTP Addon operator #225

Merged
merged 2 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions http-add-on/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
2 changes: 2 additions & 0 deletions http-add-on/templates/deployment-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions http-add-on/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down