Skip to content

Commit

Permalink
Fix helm template error if docServer settings is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
totycro authored and ividito committed Jan 27, 2025
1 parent 4677275 commit 656dc20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-chart/eoapi/templates/services/nginx-doc-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
- name: doc-html-{{ .Release.Name }}
configMap:
name: nginx-root-html-{{ .Release.Name }}
{{- if .Values.docServer.settings }}
{{- with .Values.docServer.settings.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
Expand All @@ -54,6 +55,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 656dc20

Please sign in to comment.