Skip to content

Commit

Permalink
Fixing annotation bugs related to ingress changes (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcasavant authored Mar 11, 2020
1 parent a8020fb commit d389929
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions charts/pega/templates/_pega-k8s-ingress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ metadata:
name: {{ .name }}
namespace: {{ .root.Release.Namespace }}
annotations:
{{- if .node.ingress.annotations }}
{{- $ingress := .node.ingress }}
{{- if $ingress.annotations }}
# Custom annotations
{{ toYaml .node.ingress.annotations | indent 4 }}
{{ toYaml $ingress.annotations | indent 4 }}
{{- else }}
# Ingress class used is 'traefik'
kubernetes.io/ingress.class: traefik
{{- end }}
spec:
{{ if ( include "ingressTlsEnabled" . ) }}
{{- if .node.ingress.tls.secretName }}
{{- if $ingress.tls.secretName }}
{{ include "tlssecretsnippet" . }}
{{ end }}
{{ end }}
Expand Down
1 change: 1 addition & 0 deletions charts/pega/templates/_pega-service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
name: {{ .name }}
namespace: {{ .root.Release.Namespace }}
{{- if .node.service.annotations }}
annotations:
# Custom annotations
{{ toYaml .node.service.annotations | indent 4 }}
{{- else }}
Expand Down

0 comments on commit d389929

Please sign in to comment.