Apply more changes

This commit is contained in:
Javier J. Salmeron Garcia
2019-09-20 11:41:41 +02:00
parent 99807e2533
commit d23cbbe404
5 changed files with 7 additions and 28 deletions
+1
View File
@@ -4,6 +4,7 @@ appVersion: 7.3.2
description: Kibana is an open source, browser based analytics and search dashboard for Elasticsearch.
version: 0.0.1
keywords:
- kibana
- analitics
- monitoring
- metrics
+3 -25
View File
@@ -41,34 +41,12 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
Return the proper Docker Image Registry Secret Names
*/}}
{{- define "kibana.imagePullSecrets" -}}
{{/*
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
Also, we can not use a single if because lazy evaluation is not an option
*/}}
{{- if .Values.global }}
{{- if .Values.global.imagePullSecrets }}
{{- $imagePullSecrets := coalesce .Values.global.imagePullSecrets .Values.image.pullSecrets .Values.volumePermissions.image.pullSecrets -}}
{{- if $imagePullSecrets }}
imagePullSecrets:
{{- range .Values.global.imagePullSecrets }}
{{- range $imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- else if or .Values.image.pullSecrets .Values.volumePermissions.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- range .Values.volumePermissions.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end -}}
{{- else if or .Values.image.pullSecrets .Values.volumePermissions.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- range .Values.volumePermissions.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end -}}
{{- end -}}
@@ -8,7 +8,7 @@ metadata:
spec:
containers:
- name: wget
image: busybox
image: bitnami/minideb
command: ['wget']
args: ['{{ include "kibana.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
+1 -1
View File
@@ -2,7 +2,7 @@
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
##
# global:
global: {}
# imageRegistry: myRegistryName
# imagePullSecrets:
# - myRegistryKeySecretName
+1 -1
View File
@@ -2,7 +2,7 @@
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
##
# global:
global: {}
# imageRegistry: myRegistryName
# imagePullSecrets:
# - myRegistryKeySecretName