Skip to content
Snippets Groups Projects
Unverified Commit 38d9d2ea authored by Ian Martin's avatar Ian Martin Committed by GitHub
Browse files

Ambassador can watch multiple namespaces (#7516)

* Ambassador can watch multiple namespaces

* update variable name per PR review
parent 384d30b6
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,7 @@ ingress_publish_status_address: ""
ingress_ambassador_enabled: false
# ingress_ambassador_namespace: "ambassador"
# ingress_ambassador_version: "*"
# ingress_ambassador_multi_namespaces: false
# ALB ingress controller deployment
ingress_alb_enabled: false
......
......@@ -29,6 +29,10 @@ versions of Ambassador as they become available.
for specifying when the Operator should try to update the Ambassador API Gateway.
- `ingress_ambassador_version` (defaulkt: `*`): SemVer rule for versions allowed for
installation/updates.
- `ingress_ambassador_multi_namespaces` (default `false`): By default, Ambassador will only
watch the `ingress_ambassador_namespace` namespace for `AmbassadorInstallation` CRD resources.
When set to `true`, this value will tell the Ambassador Operator to watch **all** namespaces
for CRDs. If you want to run multiple Ambassador ingress instances, set this to `true`.
## Ingress annotations
......
......@@ -6,4 +6,5 @@ ingress_ambassador_replicas: 1
ingress_ambassador_insecure_port: 80
ingress_ambassador_secure_port: 443
ingress_ambassador_extra_args: []
ingress_ambassador_host_network: false
\ No newline at end of file
ingress_ambassador_host_network: false
ingress_ambassador_multi_namespaces: false
......@@ -32,9 +32,13 @@ spec:
imagePullPolicy: {{ k8s_image_pull_policy }}
env:
- name: WATCH_NAMESPACE
{%- if ingress_ambassador_multi_namespaces %}
value: ''
{%- else %}
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{%- end %}
- name: POD_NAME
valueFrom:
fieldRef:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment