1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-07 13:42:23 +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"), Default: os.Getenv("PIPER_appTemplate"),
}, },
{ {
Name: "chartPath", Name: "chartPath",
ResourceRef: []config.ResourceReference{}, ResourceRef: []config.ResourceReference{
Scope: []string{"PARAMETERS", "STAGES", "STEPS"}, {
Type: "string", Name: "commonPipelineEnvironment",
Mandatory: false, Param: "custom/localHelmChartPath",
Aliases: []config.Alias{{Name: "helmChartPath"}}, },
Default: os.Getenv("PIPER_chartPath"), },
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "string",
Mandatory: false,
Aliases: []config.Alias{{Name: "helmChartPath"}},
Default: os.Getenv("PIPER_chartPath"),
}, },
{ {
Name: "containerRegistryPassword", Name: "containerRegistryPassword",

View File

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