Skip to content

Commit

Permalink
fix deploy helm chart ceph-csi-rbd-provisioner dup affinities bug
Browse files Browse the repository at this point in the history
Signed-off-by: DashJay <45532257+dashjay@users.noreply.github.com>
  • Loading branch information
dashjay committed Apr 17, 2023
1 parent cd2e25c commit 824e483
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions charts/ceph-csi-rbd/templates/provisioner-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ spec:
values:
- {{ .Values.provisioner.name }}
topologyKey: "kubernetes.io/hostname"
{{- end }}
{{- if .Values.provisioner.affinity }}
{{ toYaml .Values.provisioner.affinity | indent 8 -}}
{{- end -}}
{{- else -}}
{{- if .Values.provisioner.affinity }}
affinity:
{{ toYaml .Values.provisioner.affinity | indent 8 -}}
{{- end -}}
{{- end}}
serviceAccountName: {{ include "ceph-csi-rbd.serviceAccountName.provisioner" . }}
hostNetwork: {{ .Values.provisioner.enableHostNetwork }}
{{- if .Values.provisioner.priorityClassName }}
Expand Down Expand Up @@ -309,10 +317,6 @@ spec:
path: oidc-token
expirationSeconds: 3600
audience: ceph-csi-kms
{{- if .Values.provisioner.affinity }}
affinity:
{{ toYaml .Values.provisioner.affinity | indent 8 -}}
{{- end -}}
{{- if .Values.provisioner.nodeSelector }}
nodeSelector:
{{ toYaml .Values.provisioner.nodeSelector | indent 8 -}}
Expand Down

0 comments on commit 824e483

Please sign in to comment.