mirror of
https://github.com/bvanroll/environment-ff-stage-euw1-gkecluster-primary-dev.git
synced 2025-08-29 20:12:42 +00:00
25 lines
846 B
YAML
25 lines
846 B
YAML
{{- if eq .Requirements.secretStorage "vault" }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: jx-auth-config
|
|
labels:
|
|
jenkins.io/created-by: jx
|
|
jenkins.io/config-type: auth
|
|
data:
|
|
gitAuth.yaml: |
|
|
currentserver: "{{ .Requirements.cluster.gitServer }}"
|
|
defaultusername: "{{ .Parameters.pipelineUser.username }}"
|
|
pipelineserver: "{{ .Requirements.cluster.gitServer }}"
|
|
pipelineusername: "{{ .Parameters.pipelineUser.username }}"
|
|
servers:
|
|
- currentuser: "{{ .Parameters.pipelineUser.username }}"
|
|
kind: "{{ .Requirements.cluster.gitKind }}"
|
|
name: "{{ .Requirements.cluster.gitName }}"
|
|
url: "{{ .Requirements.cluster.gitServer }}"
|
|
users:
|
|
- apitoken: "{{ .Parameters.pipelineUser.token }}"
|
|
bearertoken: ""
|
|
username: "{{ .Parameters.pipelineUser.username }}"
|
|
{{- end }}
|