From 50e59ed5439ef525981fb148705485fb0de27a07 Mon Sep 17 00:00:00 2001 From: Yuri Pastushenko Date: Fri, 28 Dec 2018 14:01:04 +0300 Subject: [PATCH] fixed configmap attaching. --- .helm/slack-duty-bot/templates/deployment.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.helm/slack-duty-bot/templates/deployment.yaml b/.helm/slack-duty-bot/templates/deployment.yaml index ad7369c..3f992d1 100644 --- a/.helm/slack-duty-bot/templates/deployment.yaml +++ b/.helm/slack-duty-bot/templates/deployment.yaml @@ -28,16 +28,16 @@ spec: - name: SDB_SLACK_TOKEN valueFrom: secretKeyRef: - name: "{{ include "slack-duty-bot.name" . }}-secret" + name: "{{ include "slack-duty-bot.fullname" . }}" key: token volumeMounts: - - name: "{{ include "slack-duty-bot.name" . }}-config-volume" + - name: "config-volume" mountPath: /etc/slack-duty-bot resources: {{ toYaml .Values.resources | indent 12 }} volumes: - - name: "{{ include "slack-duty-bot.name" . }}-config-volume" + - name: "config-volume" configMap: - name: "{{ include "slack-duty-bot.name" . }}" + name: "{{ include "slack-duty-bot.fullname" . }}" restartPolicy: Always terminationGracePeriodSeconds: 30