File tree Expand file tree Collapse file tree 6 files changed +22
-0
lines changed
Expand file tree Collapse file tree 6 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,12 @@ spec:
364364 env;
365365 {{- end }}
366366 bin/pulsar-metadata-tool cleanup
367+ {{- if .Values.bookkeeper.initContainerSecurityContext }}
368+ securityContext: {{- toYaml .Values.bookkeeper.initContainerSecurityContext | nindent 16 }}
369+ {{- end }}
370+ {{- if .Values.bookkeeper.resources }}
371+ resources: {{- toYaml .Values.bookkeeper.resources | nindent 16 }}
372+ {{- end }}
367373 env:
368374 - name: METADATA_TOOL_CONF
369375 value: "/pulsar-metadata-tool/conf/pulsar-metadata-tool/pulsar-metadata-tool.properties"
Original file line number Diff line number Diff line change 7171 - name : " {{ template " pulsar.fullname" . }}-{{ .Values.zookeeper.component }}-{{ .Values.zookeeper.customTools.restore.component }}"
7272 image : " {{ .Values.images.zookeeper.customTools.restore.repository }}:{{ .Values.images.zookeeper.customTools.restore.tag }}"
7373 imagePullPolicy : {{ .Values.zookeeper.customTools.restore.pullPolicy }}
74+ {{- if .Values.zookeeper.initContainerSecurityContext }}
75+ securityContext : {{- toYaml .Values.zookeeper.initContainerSecurityContext | nindent 10 }}
76+ {{- end }}
7477 command : ["sh", "-c"]
7578 args :
7679 - >
Original file line number Diff line number Diff line change @@ -639,6 +639,7 @@ zookeeper:
639639 advanced : {}
640640 securityContext :
641641 runAsNonRoot : true
642+ initContainerSecurityContext : {}
642643 tolerations : []
643644 gracePeriod : 30
644645 # Resources requests/limits for both init containers and app containers
@@ -888,6 +889,7 @@ bookkeeper:
888889 annotations : {}
889890 securityContext :
890891 runAsNonRoot : true
892+ initContainerSecurityContext : {}
891893 tolerations : []
892894 gracePeriod : 30
893895 # The minimum number of seconds for new pods to be ready.
Original file line number Diff line number Diff line change @@ -364,6 +364,12 @@ spec:
364364 env;
365365 {{- end }}
366366 bin/pulsar-metadata-tool cleanup
367+ {{- if .Values.bookkeeper.initContainerSecurityContext }}
368+ securityContext: {{- toYaml .Values.bookkeeper.initContainerSecurityContext | nindent 16 }}
369+ {{- end }}
370+ {{- if .Values.bookkeeper.resources }}
371+ resources: {{- toYaml .Values.bookkeeper.resources | nindent 16 }}
372+ {{- end }}
367373 env:
368374 - name: METADATA_TOOL_CONF
369375 value: "/pulsar-metadata-tool/conf/pulsar-metadata-tool/pulsar-metadata-tool.properties"
Original file line number Diff line number Diff line change 7171 - name : " {{ template " pulsar.fullname" . }}-{{ .Values.zookeeper.component }}-{{ .Values.zookeeper.customTools.restore.component }}"
7272 image : " {{ .Values.images.zookeeper.customTools.restore.repository }}:{{ .Values.images.zookeeper.customTools.restore.tag }}"
7373 imagePullPolicy : {{ .Values.zookeeper.customTools.restore.pullPolicy }}
74+ {{- if .Values.zookeeper.initContainerSecurityContext }}
75+ securityContext : {{- toYaml .Values.zookeeper.initContainerSecurityContext | nindent 10 }}
76+ {{- end }}
7477 command : ["sh", "-c"]
7578 args :
7679 - >
Original file line number Diff line number Diff line change @@ -714,6 +714,7 @@ zookeeper:
714714 advanced : {}
715715 securityContext :
716716 runAsNonRoot : true
717+ initContainerSecurityContext : {}
717718 tolerations : []
718719 gracePeriod : 30
719720 # Resources requests/limits for both init containers and app containers
@@ -963,6 +964,7 @@ bookkeeper:
963964 annotations : {}
964965 securityContext :
965966 runAsNonRoot : true
967+ initContainerSecurityContext : {}
966968 tolerations : []
967969 gracePeriod : 30
968970 # The minimum number of seconds for new pods to be ready.
You can’t perform that action at this time.
0 commit comments