Parcourir la source

Fix: Add template definitions to base.configmap and base.deployment

DevOps Team il y a 2 mois
Parent
commit
bbd70e6feb

+ 2 - 0
charts/base/templates/configmap.yaml

@@ -1,3 +1,4 @@
+{{- define "base.configmap" -}}
 apiVersion: v1
 kind: ConfigMap
 metadata:
@@ -11,3 +12,4 @@ data:
     server.port={{ .Values.service.targetPort }}
   application.yml: |
     {{- .Values.config.yml | toYaml | nindent 4 }}
+{{- end }}

+ 2 - 0
charts/base/templates/deployment.yaml

@@ -1,3 +1,4 @@
+{{- define "base.deployment" -}}
 apiVersion: apps/v1
 kind: Deployment
 metadata:
@@ -75,3 +76,4 @@ spec:
       tolerations:
         {{- toYaml . | nindent 8 }}
       {{- end }}
+{{- end }}