diff --git a/charts/cups-airprint/templates/deployment.yaml b/charts/cups-airprint/templates/deployment.yaml index f5ad8ff..8607201 100644 --- a/charts/cups-airprint/templates/deployment.yaml +++ b/charts/cups-airprint/templates/deployment.yaml @@ -54,21 +54,6 @@ spec: mountPath: /var/spool/cups-pdf - name: avahi mountPath: /services - {{- if .Values.hostNetwork }} - hostNetwork: {{ .Values.hostNetwork }} - {{- end }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} volumes: - name: config {{- if .Values.persistence.enabled }} @@ -92,3 +77,18 @@ spec: {{- else }} emptyDir: {} {{- end -}} + {{- if .Values.hostNetwork }} + hostNetwork: {{ .Values.hostNetwork }} + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }}