Skip to content

Commit

Permalink
api-gateway: configure acl-auth-method appropriately for controller i…
Browse files Browse the repository at this point in the history
…n secondary dc

Co-Authored-By: Thomas Eckert <thomas.james.eckert@gmail.com>
  • Loading branch information
nathancoleman and t-eckert committed Aug 29, 2022
1 parent f4db28c commit cd5da45
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,12 @@ spec:
- |
consul-k8s-control-plane acl-init \
-component-name=api-gateway-controller \
{{- if and .Values.global.federation.enabled .Values.global.federation.primaryDatacenter }}
-acl-auth-method={{ template "consul.fullname" . }}-k8s-component-auth-method-{{ .Values.global.datacenter }} \
-primary-datacenter={{ .Values.global.federation.primaryDatacenter }} \
{{- else }}
-acl-auth-method={{ template "consul.fullname" . }}-k8s-component-auth-method \
{{- end }}
{{- if .Values.global.adminPartitions.enabled }}
-partition={{ .Values.global.adminPartitions.name }} \
{{- end }}
Expand Down

0 comments on commit cd5da45

Please sign in to comment.