1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-30 05:59:39 +02:00

adding vault references for username and password (#3624)

Co-authored-by: anilkeshav27 <you@example.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
Anil Keshav 2022-03-11 09:25:46 +01:00 committed by GitHub
parent 23fde71bf8
commit 809a90ee27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -206,6 +206,12 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Param: "username",
Type: "secret",
},
{
Name: "gitHttpsCredentialVaultSecretName",
Type: "vaultSecret",
Default: "gitHttpsCredential",
},
},
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "string",
@ -221,6 +227,12 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Param: "password",
Type: "secret",
},
{
Name: "gitHttpsCredentialVaultSecretName",
Type: "vaultSecret",
Default: "gitHttpsCredential",
},
},
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "string",

View File

@ -65,6 +65,9 @@ spec:
- name: gitHttpsCredentialsId
type: secret
param: username
- type: vaultSecret
name: gitHttpsCredentialVaultSecretName
default: gitHttpsCredential
- name: password
type: string
description: Password/token for git authentication.
@ -78,6 +81,9 @@ spec:
- name: gitHttpsCredentialsId
type: secret
param: password
- type: vaultSecret
name: gitHttpsCredentialVaultSecretName
default: gitHttpsCredential
- name: filePath
description: |
Relative path in the git repository to the deployment descriptor file that shall be updated. For different tools this has different semantics: