diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-11-25 10:03:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-11-25 10:03:04 +0000 |
commit | bb94eeb16fde2effe5bad933d9638b3025c35fe1 (patch) | |
tree | 769aa8cf863091b5e076317888eba49c9ef47b04 /kubernetes/common/elasticsearch/templates/_helpers.tpl | |
parent | e3f62633f08855e77f8666bda7710f90790f8cac (diff) | |
parent | 829344b4148924c574ab282b8e01c9ac530e71e2 (diff) |
Merge "[COMMON][ELASTIC] Uses new tpls for repos / images"
Diffstat (limited to 'kubernetes/common/elasticsearch/templates/_helpers.tpl')
-rw-r--r-- | kubernetes/common/elasticsearch/templates/_helpers.tpl | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/kubernetes/common/elasticsearch/templates/_helpers.tpl b/kubernetes/common/elasticsearch/templates/_helpers.tpl index 6e745bd560..1de2599af9 100644 --- a/kubernetes/common/elasticsearch/templates/_helpers.tpl +++ b/kubernetes/common/elasticsearch/templates/_helpers.tpl @@ -71,35 +71,3 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- end -}} -{{/* -Return the proper Docker Image Registry Secret Names -*/}} -{{- define "elasticsearch.imagePullSecrets" -}} -{{- if .Values.global }} -{{- if .Values.global.imagePullSecrets }} -imagePullSecrets: -{{- range .Values.global.imagePullSecrets }} - - name: {{ . }} -{{- end }} -{{- end }} -{{- else }} -{{- $imagePullSecrets := coalesce .Values.image.pullSecrets .Values.metrics.image.pullSecrets .Values.curator.image.pullSecrets .Values.sysctlImage.pullSecrets .Values.volumePermissions.image.pullSecrets -}} -{{- if $imagePullSecrets }} -imagePullSecrets: -{{- range $imagePullSecrets }} - - name: {{ . }} -{{- end -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Create the name of the service account to use -*/}} -{{- define "elasticsearch.curator.serviceAccountName" -}} -{{- if .Values.curator.serviceAccount.create -}} - {{ default (include "common.fullname" (dict "suffix" "currator" "dot" .)) .Values.curator.serviceAccount.name }} -{{- else -}} - {{ default "default" .Values.curator.serviceAccount.name }} -{{- end -}} -{{- end -}} |