瀏覽代碼

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

DevOps Team 2 月之前
父節點
當前提交
bbd70e6feb
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      charts/base/templates/configmap.yaml
  2. 2 0
      charts/base/templates/deployment.yaml

+ 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 }}