mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
helm: Support setting annotations for nodePlugin and provisioner
Adding annotation support to both the CephFS and RBD charts. Support setting the DaemonSet and Pod level annotations for the nodeplugin. Support setting the Deployment and Pod level annotations for the provisioner. Signed-off-by: Mike Vollman <mike@reportallusa.com>
This commit is contained in:
committed by
mergify[bot]
parent
0c5619b2a2
commit
d1c28fa57a
@ -10,6 +10,10 @@ metadata:
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
|
||||
{{- if .Values.nodeplugin.annotations }}
|
||||
annotations:
|
||||
{{- toYaml .Values.nodeplugin.annotations | nindent 4 -}}
|
||||
{{- end }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
@ -27,6 +31,10 @@ spec:
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 8 }}{{- end }}
|
||||
{{- if .Values.nodeplugin.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml .Values.nodeplugin.podAnnotations | nindent 8 -}}
|
||||
{{- end }}
|
||||
spec:
|
||||
securityContext: {{ toYaml .Values.nodeplugin.podSecurityContext | nindent 8 }}
|
||||
serviceAccountName: {{ include "ceph-csi-rbd.serviceAccountName.nodeplugin" . }}
|
||||
|
@ -10,6 +10,10 @@ metadata:
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
|
||||
{{- if .Values.provisioner.annotations }}
|
||||
annotations:
|
||||
{{- toYaml .Values.provisioner.annotations | nindent 4 -}}
|
||||
{{- end }}
|
||||
spec:
|
||||
replicas: {{ .Values.provisioner.replicaCount }}
|
||||
strategy:
|
||||
@ -32,6 +36,10 @@ spec:
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 8 }}{{- end }}
|
||||
{{- if .Values.provisioner.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml .Values.provisioner.podAnnotations | nindent 8 -}}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if gt (int .Values.provisioner.replicaCount) 1 }}
|
||||
affinity:
|
||||
|
Reference in New Issue
Block a user