Skip to content

Commit

Permalink
[stable/drone] Fix DRONE_STASH_PRIVATE_KEY, correct bitbucketServer p…
Browse files Browse the repository at this point in the history
…arams (helm#12933)

Signed-off-by: Julian Schlarb <[email protected]>
  • Loading branch information
JSchlarb authored and davidkarlsen committed Jun 5, 2019
1 parent 0400b4f commit 68d5cf8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion stable/drone/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 3 additions & 6 deletions stable/drone/templates/_provider-envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

Expand Down
17 changes: 15 additions & 2 deletions stable/drone/templates/deployment-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 68d5cf8

Please sign in to comment.