Skip to content

Commit

Permalink
MAJOR: kubernetes-ingress: Make controller.config templatable (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
phihos authored Jan 5, 2025
1 parent 5ac41ef commit 09866e9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
controller:
kind: DaemonSet
config: |
rate-limit: "{{ .Values.controller.configVars.rateLimit | required "controller.configVars.rateLimit is required" }}"
configVars:
rateLimit: "ON"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
controller:
config: |
rate-limit: "{{ .Values.controller.configVars.rateLimit | required "controller.configVars.rateLimit is required" }}"
configVars:
rateLimit: "ON"
4 changes: 4 additions & 0 deletions kubernetes-ingress/templates/controller-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ data:
syslog-server: {{ include "kubernetes-ingress.syslogServer" . }}
{{- end }}
{{- if .Values.controller.config }}
{{- if eq "string" (printf "%T" .Values.controller.config) }}
{{ tpl .Values.controller.config . | indent 2 }}
{{- else }}
{{ toYaml .Values.controller.config | indent 2 }}
{{- end }}
{{- end }}

0 comments on commit 09866e9

Please sign in to comment.