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:
parent
23fde71bf8
commit
809a90ee27
@ -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",
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user