Skip to content

Commit

Permalink
Add affinity to BotKube Deployment in Helm chart #454
Browse files Browse the repository at this point in the history
##### ISSUE TYPE

 - Bug fix Pull Request

##### SUMMARY

I use `affinity` to schedule pods, I saw it's mentioned in a chart and was surprised why it was not used. `nodeSelector` & `tolerations` present, but `affinity` was missing from the template.
  • Loading branch information
igas committed Jun 3, 2022
1 parent 9cfc924 commit 7c7c533
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/botkube/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
Expand Down

0 comments on commit 7c7c533

Please sign in to comment.