From 809a90ee27a4af3aa87e8b631912df2f742b28df Mon Sep 17 00:00:00 2001 From: Anil Keshav Date: Fri, 11 Mar 2022 09:25:46 +0100 Subject: [PATCH] adding vault references for username and password (#3624) Co-authored-by: anilkeshav27 Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com> --- cmd/gitopsUpdateDeployment_generated.go | 12 ++++++++++++ resources/metadata/gitopsUpdateDeployment.yaml | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/cmd/gitopsUpdateDeployment_generated.go b/cmd/gitopsUpdateDeployment_generated.go index e85970ff6..ffcf0f814 100644 --- a/cmd/gitopsUpdateDeployment_generated.go +++ b/cmd/gitopsUpdateDeployment_generated.go @@ -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", diff --git a/resources/metadata/gitopsUpdateDeployment.yaml b/resources/metadata/gitopsUpdateDeployment.yaml index 6dd8438b5..0e204f64a 100644 --- a/resources/metadata/gitopsUpdateDeployment.yaml +++ b/resources/metadata/gitopsUpdateDeployment.yaml @@ -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: