Skip to content

Wrong order with values-shared.yaml #45

@ThomasMichael1811

Description

@ThomasMichael1811

if values-shared.yaml exists, it ha to be set on first position, because values-{'*stage}.yaml have to override those values.

if (script.fileExists("${script.env.WORKSPACE}/${sourcePath}/values-shared.yaml")) {

Quickfix:
Use
valueFiles.add(0, "${script.env.WORKSPACE}/${sourcePath}/values-shared.yaml")

instead

valueFiles.add("${script.env.WORKSPACE}/${sourcePath}/values-shared.yaml")

How to test:
create values-tst1.yaml
create values-shared.yaml

both should reference to same property and value from tst1 should win.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions