Skip to content

Commit

Permalink
fix helm and add support for affinity (#460)
Browse files Browse the repository at this point in the history
* fix helm and add support for affinity
  • Loading branch information
I065450 authored Aug 26, 2024
1 parent c2d3f55 commit fa4770a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sapbtp-operator-charts/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,14 @@ spec:
defaultMode: 420
secretName: webhook-server-cert
{{- if .Values.manager.nodeSelector }}
nodeSelector: {{ toYaml .Values.deployment.nodeSelector | nindent 8 }}
nodeSelector: {{ toYaml .Values.manager.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.manager.tolerations }}
tolerations: {{ toYaml .Values.deployment.tolerations | nindent 8 }}
tolerations: {{ toYaml .Values.manager.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.manager.affinity }}
affinity: {{ toYaml .Values.manager.affinity | nindent 8 }}
{{- end }}
{ { - if .Values.manager.topologySpreadConstraints } }
topologySpreadConstraints: { { toYaml .Values.manager.topologySpreadConstraints | nindent 8 } }
{ { - end } }

0 comments on commit fa4770a

Please sign in to comment.