Skip to content

Commit

Permalink
chore(cf-idw): add affinity/tolerations support
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmorano committed Apr 30, 2024
1 parent 18f7567 commit 6d3375c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/cf-idw/templates/cred-issuance-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ spec:
app: cred-issuance
spec:
restartPolicy: Always
{{- if .tolerations }}
tolerations:
{{ with index .tolerations }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .affinity }}
affinity:
{{ with index .affinity }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
containers:
- env:
- name: KERIA_BOOT_ENDPOINT
Expand Down
12 changes: 12 additions & 0 deletions charts/cf-idw/templates/keria-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ spec:
app: keria
spec:
restartPolicy: Always
{{- if .tolerations }}
tolerations:
{{ with index .tolerations }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .affinity }}
affinity:
{{ with index .affinity }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
initContainers:
- name: configure
image: "rcmorano/alpine-bash-jq-curl"
Expand Down
12 changes: 12 additions & 0 deletions charts/cf-idw/templates/vlei-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ spec:
labels:
app: vlei
spec:
{{- if .tolerations }}
tolerations:
{{ with index .tolerations }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .affinity }}
affinity:
{{ with index .affinity }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
containers:
- name: vlei-server
image: "{{ .image.repository }}:{{ .image.tag }}"
Expand Down

0 comments on commit 6d3375c

Please sign in to comment.