mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
0ed21dcb87
commit
8f41747ace
@@ -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:
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user