Updating charts to use common resource template
[oom.git] / kubernetes / common / controller-blueprints / templates / deployment.yaml
index fc7329c..15ed32f 100644 (file)
@@ -81,6 +81,16 @@ spec:
                 secretKeyRef:
                   name: {{ template "common.fullname" . }}
                   key: db-root-password
+            - name: MS_USER
+              valueFrom:
+                secretKeyRef:
+                  name: {{ template "common.fullname" . }}
+                  key: restUser
+            - name: MS_PASSWORD
+              valueFrom:
+                secretKeyRef:
+                  name: {{ template "common.fullname" . }}
+                  key: restPassword
             - name: INIT_DATA_LOAD
               value: {{ .Values.config.initDataLoad | quote }}
             - name: STICKYSELECTORKEY
@@ -98,7 +108,7 @@ spec:
             name: {{ include "common.fullname" . }}-config
             subPath: logback.xml
           resources:
-{{ toYaml .Values.resources | indent 12 }}
+{{ include "common.resources" . | indent 12 }}
         {{- if .Values.nodeSelector }}
         nodeSelector:
 {{ toYaml .Values.nodeSelector | indent 10 }}