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

feat(helmExecute): allow reading specific credentials from cpe (#3647)

This commit is contained in:
Oliver Nocon 2022-03-21 08:41:22 +01:00 committed by GitHub
parent a1e2d8e8f3
commit a466b60aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -218,6 +218,11 @@ func helmExecuteMetadata() config.StepData {
{
Name: "targetRepositoryURL",
ResourceRef: []config.ResourceReference{
{
Name: "commonPipelineEnvironment",
Param: "custom/helmRepositoryURL",
},
{
Name: "commonPipelineEnvironment",
Param: "custom/repositoryUrl",
@ -241,6 +246,11 @@ func helmExecuteMetadata() config.StepData {
{
Name: "targetRepositoryUser",
ResourceRef: []config.ResourceReference{
{
Name: "commonPipelineEnvironment",
Param: "custom/helmRepositoryUsername",
},
{
Name: "commonPipelineEnvironment",
Param: "custom/repositoryUsername",
@ -255,6 +265,11 @@ func helmExecuteMetadata() config.StepData {
{
Name: "targetRepositoryPassword",
ResourceRef: []config.ResourceReference{
{
Name: "commonPipelineEnvironment",
Param: "custom/helmRepositoryPassword",
},
{
Name: "commonPipelineEnvironment",
Param: "custom/repositoryPassword",

View File

@ -63,6 +63,8 @@ spec:
- STAGES
- STEPS
resourceRef:
- name: commonPipelineEnvironment
param: custom/helmRepositoryURL
- name: commonPipelineEnvironment
param: custom/repositoryUrl
- name: targetRepositoryName
@ -85,6 +87,8 @@ spec:
- STEPS
secret: true
resourceRef:
- name: commonPipelineEnvironment
param: custom/helmRepositoryUsername
- name: commonPipelineEnvironment
param: custom/repositoryUsername
- name: targetRepositoryPassword
@ -96,6 +100,8 @@ spec:
- STEPS
secret: true
resourceRef:
- name: commonPipelineEnvironment
param: custom/helmRepositoryPassword
- name: commonPipelineEnvironment
param: custom/repositoryPassword
- name: helmDeployWaitSeconds