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

kubernetesDeploy: add resourceRef (custom/localHelmChartPath) (#3977)

This commit is contained in:
Vyacheslav Starostin 2022-08-25 17:12:13 +06:00 committed by GitHub
parent 5b581efc31
commit 5e305eca40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 7 deletions

View File

@ -261,13 +261,18 @@ func kubernetesDeployMetadata() config.StepData {
Default: os.Getenv("PIPER_appTemplate"),
},
{
Name: "chartPath",
ResourceRef: []config.ResourceReference{},
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "string",
Mandatory: false,
Aliases: []config.Alias{{Name: "helmChartPath"}},
Default: os.Getenv("PIPER_chartPath"),
Name: "chartPath",
ResourceRef: []config.ResourceReference{
{
Name: "commonPipelineEnvironment",
Param: "custom/localHelmChartPath",
},
},
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "string",
Mandatory: false,
Aliases: []config.Alias{{Name: "helmChartPath"}},
Default: os.Getenv("PIPER_chartPath"),
},
{
Name: "containerRegistryPassword",

View File

@ -138,6 +138,9 @@ spec:
- PARAMETERS
- STAGES
- STEPS
resourceRef:
- name: commonPipelineEnvironment
param: custom/localHelmChartPath
- name: containerRegistryPassword
description: Password for container registry access - typically provided by the CI/CD environment.
type: string