Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
add: affinity parametrisation (#17)
Browse files Browse the repository at this point in the history
* add: tolerations parametrisation

* fix: condition

* rev: format

* rev: extra options

* rm: dupe

* bump: chart version
  • Loading branch information
dihnatenkopinup authored May 7, 2024
1 parent 381bcad commit 3cdb348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/app/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: app
description: Deployment for base pinup app
version: 3.3.4
version: 3.3.5
apiVersion: v2
7 changes: 6 additions & 1 deletion charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ spec:
tolerations:
{{. | toYaml | indent 8}}
{{- end}}
affinity:
{{- with .Values.affinity }}
affinity:
{{- if eq .podAntiAffinity nil }}
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
Expand All @@ -67,6 +69,9 @@ spec:
values:
- {{ $appname }}
topologyKey: "kubernetes.io/hostname"
{{- end }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.serviceAccountName }}
serviceAccountName: {{ .Values.serviceAccountName}}
{{- else if .Values.rbac.create }}
Expand Down

0 comments on commit 3cdb348

Please sign in to comment.