Skip to content

Commit

Permalink
Merge pull request #137 from sergey-aerokube/add_custom_annotations_t…
Browse files Browse the repository at this point in the history
…o_ingress

Add custom annotations to ingress
  • Loading branch information
vania-pooh authored Apr 27, 2022
2 parents b61a36d + da9c74f commit 95de82e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions moon2/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ metadata:
{{- if .Values.ingress.proxyBodySize }}
nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.ingress.proxyBodySize | quote }}
{{- end }}
{{- range $key, $value := .Values.ingress.customAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- if $enableTLS }}
tls:
Expand Down Expand Up @@ -213,6 +216,9 @@ metadata:
{{- if .Values.ingress.proxyBodySize }}
nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.ingress.proxyBodySize | quote }}
{{- end }}
{{- range $key, $value := .Values.ingress.customAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
ingressClassName: nginx
{{- if $enableTLS }}
Expand Down
8 changes: 7 additions & 1 deletion moon2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ingress:
host: moon.aerokube.local

##
## TLS settings. When provided Ingress switches to HTTPS-only mode.
## Files with TLS certificate and TLS key. When provided Ingress switches to HTTPS-only mode.
## Set to empty files if you need HTTPS, but do not need to provide key and cert manually(i.g. use cert-manager)
##
tlsCert:
tlsKey:
Expand All @@ -56,6 +57,11 @@ ingress:
##
openshift:

##
## Add custom annotations to ingress
##
customAnnotations: {}

##
## Moon service account annotations.
##
Expand Down

0 comments on commit 95de82e

Please sign in to comment.