mirror of
https://github.com/helm/charts.git
synced 2026-08-20 04:47:32 +00:00
[stable/drone] add gitea oauth2 support (#19223)
Signed-off-by: Christian Groschupp <christian@groschupp.org>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
75a0908397
commit
497296fb4a
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
name: drone
|
||||
home: https://drone.io/
|
||||
icon: https://drone.io/apple-touch-icon.png
|
||||
version: 2.3.2
|
||||
version: 2.4.0
|
||||
appVersion: 1.6.1
|
||||
description: Drone is a Continuous Delivery system built on container technology
|
||||
keywords:
|
||||
|
||||
@@ -22,8 +22,15 @@
|
||||
key: {{ .Values.sourceControl.gitlab.clientSecretKey }}
|
||||
{{- end -}}
|
||||
{{- if eq .Values.sourceControl.provider "gitea" -}}
|
||||
- name: DRONE_GITEA_CLIENT_ID
|
||||
value: {{ .Values.sourceControl.gitea.clientID }}
|
||||
- name: DRONE_GITEA_SERVER
|
||||
value: {{ .Values.sourceControl.gitea.server }}
|
||||
- name: DRONE_GITEA_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ template "drone.sourceControlSecret" . }}
|
||||
key: {{ .Values.sourceControl.gitea.clientSecretKey }}
|
||||
{{- end -}}
|
||||
{{- if eq .Values.sourceControl.provider "gogs" -}}
|
||||
- name: DRONE_GOGS_SERVER
|
||||
|
||||
@@ -32,6 +32,8 @@ data:
|
||||
{{ .Values.sourceControl.github.clientSecretKey }}: {{ .Values.sourceControl.github.clientSecretValue | b64enc | quote }}
|
||||
{{- else if eq .Values.sourceControl.provider "gitlab" -}}
|
||||
{{ .Values.sourceControl.gitlab.clientSecretKey }}: {{ .Values.sourceControl.gitlab.clientSecretValue | b64enc | quote }}
|
||||
{{- else if eq .Values.sourceControl.provider "gitea" -}}
|
||||
{{ .Values.sourceControl.gitea.clientSecretKey }}: {{ .Values.sourceControl.gitea.clientSecretValue | b64enc | quote }}
|
||||
{{- else if eq .Values.sourceControl.provider "bitbucketCloud" -}}
|
||||
{{ .Values.sourceControl.bitbucketCloud.clientSecretKey }}: {{ .Values.sourceControl.bitbucketCloud.clientSecretValue | b64enc | quote }}
|
||||
{{ end }}
|
||||
|
||||
@@ -58,12 +58,10 @@ ingress:
|
||||
# annotations:
|
||||
# kubernetes.io/ingress.class: nginx
|
||||
# kubernetes.io/tls-acme: 'true'
|
||||
|
||||
## Drone hostnames must be provided if Ingress is enabled
|
||||
##
|
||||
# hosts:
|
||||
# - drone.domain.io
|
||||
|
||||
## Drone Ingress TLS configuration secrets
|
||||
## Must be manually created in the namespace
|
||||
##
|
||||
@@ -94,6 +92,9 @@ sourceControl:
|
||||
clientSecretValue:
|
||||
server:
|
||||
gitea:
|
||||
clientID:
|
||||
clientSecretKey: clientSecret
|
||||
clientSecretValue:
|
||||
server:
|
||||
gogs:
|
||||
server:
|
||||
@@ -138,7 +139,6 @@ server:
|
||||
## you can run pipeline jobs in another namespace, if you choose to do this
|
||||
## you'll need to create that namespace manually.
|
||||
# namespace:
|
||||
|
||||
## alternative service account to create to create drone pipelines. this account
|
||||
## will be given cluster-admin rights.
|
||||
## if not set the rights will be given to the default drone service account name.
|
||||
|
||||
Reference in New Issue
Block a user