[bitnami/drupal] Fix matchLabels and extraDeploy (#3115)

Signed-off-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
Andrés Bono
2020-07-14 18:33:06 +02:00
committed by GitHub
parent adcf7d98f3
commit 636af2ff69
4 changed files with 3 additions and 16 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: drupal
version: 8.0.1
version: 8.0.2
appVersion: 9.0.2
description: One of the most versatile open source content management systems.
keywords:
-13
View File
@@ -63,16 +63,3 @@ Return the appropriate apiVersion for deployment.
{{- include "common.warnings.rollingTag" .Values.image -}}
{{- include "common.warnings.rollingTag" .Values.metrics.image -}}
{{- end -}}
{{/*
Renders a value that contains template.
Usage:
{{ include "drupal.tplValue" ( dict "value" .Values.path.to.the.Value "context" $) }}
*/}}
{{- define "drupal.tplValue" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}
+1 -1
View File
@@ -18,7 +18,7 @@ spec:
replicas: {{ .Values.replicaCount }}
template:
metadata:
labels: {{- include "common.labels.matchLabels" . | nindent 8 }}
labels: {{- include "common.labels.standard" . | nindent 8 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{- if .Values.extraDeploy }}
apiVersion: v1
kind: List
items: {{- include "drupal.tplValue" (dict "value" .Values.extraDeploy "context" $) | nindent 2 }}
items: {{- include "common.tplvalues.render" (dict "value" .Values.extraDeploy "context" $) | nindent 2 }}
{{- end }}