From 653c30c2c7e2cc24e9554b1cd3ee6990a6a06e11 Mon Sep 17 00:00:00 2001 From: Elena Grahovac Date: Tue, 30 May 2017 19:55:15 +0700 Subject: [PATCH] Add database parameters --- github-integration/templates/deployment.yaml | 10 ++++++++++ k8s-community/templates/deployment.yaml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/github-integration/templates/deployment.yaml b/github-integration/templates/deployment.yaml index 4876ae8..aaf6fd1 100644 --- a/github-integration/templates/deployment.yaml +++ b/github-integration/templates/deployment.yaml @@ -48,6 +48,16 @@ spec: secretKeyRef: name: github-integration key: integration-private-key + - name: COCKROACHDB_USER + valueFrom: + secretKeyRef: + name: github-int-db + key: user + - name: COCKROACHDB_PASSWORD + valueFrom: + secretKeyRef: + name: github-int-db + key: password {{- range .Values.externalServices }} - name: {{ printf "%s_SERVICE_HOST" .name | upper }} value: {{ .host }} diff --git a/k8s-community/templates/deployment.yaml b/k8s-community/templates/deployment.yaml index ff486b8..327984a 100644 --- a/k8s-community/templates/deployment.yaml +++ b/k8s-community/templates/deployment.yaml @@ -46,12 +46,12 @@ spec: - name: COCKROACHDB_USER valueFrom: secretKeyRef: - name: cockroachdb + name: k8s-community-db key: user - name: COCKROACHDB_PASSWORD valueFrom: secretKeyRef: - name: cockroachdb + name: k8s-community-db key: password - name: K8S_GUEST_TOKEN valueFrom: