[stable/drone] Fix DRONE_STASH_PRIVATE_KEY, correct bitbucketServer params (#12933)

Signed-off-by: Julian Schlarb <js@project-deadline.com>
This commit is contained in:
JSchlarb
2019-05-30 02:18:23 -07:00
committed by Kubernetes Prow Robot
parent 0ed21dcb87
commit 8f41747ace
3 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
name: drone
home: https://drone.io/
icon: https://drone.io/apple-touch-icon.png
version: 2.0.0-rc.13
version: 2.0.0-rc.14
appVersion: 1.0.0-rc.5
description: Drone is a Continuous Delivery system built on container technology
keywords:
+3 -6
View File
@@ -47,17 +47,14 @@
valueFrom:
secretKeyRef:
name: {{ template "drone.sourceControlSecret" . }}
key: {{ .Values.sourceControl.bitbucketCloud.passwordKey }}
key: {{ .Values.sourceControl.bitbucketServer.passwordKey }}
- name: DRONE_STASH_CONSUMER_KEY
valueFrom:
secretKeyRef:
name: {{ template "drone.sourceControlSecret" . }}
key: {{ .Values.sourceControl.bitbucketCloud.consumerKey }}
key: {{ .Values.sourceControl.bitbucketServer.consumerKey }}
- name: DRONE_STASH_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: {{ template "drone.sourceControlSecret" . }}
key: {{ .Values.sourceControl.bitbucketCloud.privateKey }}
value: /etc/bitbucket/key.pem
{{- end -}}
{{- end -}}
+15 -2
View File
@@ -102,12 +102,25 @@ spec:
resources:
{{ toYaml .Values.server.resources | indent 10 }}
volumeMounts:
- name: data
mountPath: /var/lib/drone
{{ if eq .Values.sourceControl.provider "bitbucketServer" -}}
- name: bitbucket-private-key
mountPath: /etc/bitbucket
readOnly: true
{{ end }}
- name: data
mountPath: /var/lib/drone
{{- with .Values.server.extraContainers }}
{{ tpl . $ | indent 6 }}
{{- end }}
volumes:
{{ if eq .Values.sourceControl.provider "bitbucketServer" -}}
- name: bitbucket-private-key
secret:
secretName: {{ template "drone.sourceControlSecret" . }}
items:
- key: {{ .Values.sourceControl.bitbucketServer.privateKey }}
path: key.pem
{{ end -}}
- name: data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim: