| {{/* |
| Formats imagePullSecrets. Input is (dict "root" . "imagePullSecrets" .{specific imagePullSecrets}) |
| */}} |
| {{- define "dubbo-admin.imagePullSecrets" -}} |
| {{- $root := .root }} |
| {{- range (concat .root.Values.global.imagePullSecrets .imagePullSecrets) }} |
| {{- if eq (typeOf .) "map[string]interface {}" }} |
| - {{ toYaml (dict "name" (tpl .name $root)) | trim }} |
| {{- else }} |
| - name: {{ tpl . $root }} |
| {{- end }} |
| {{- end }} |
| {{- end }} |
| |
| |
| {{/* |
| Return the ZooKeeper configuration ConfigMap name |
| */}} |
| {{- define "zookeeper.configmapName" -}} |
| {{- if .Values.existingConfigmap -}} |
| {{- printf "%s" (tpl .Values.existingConfigmap $) -}} |
| {{- else -}} |
| {{- printf "%s" (include "zookeeper.fullname" .) -}} |
| {{- end -}} |
| {{- end -}} |
| |
| |