Skip to content

Commit

Permalink
fix: Enable uniq selector pattern for deploy pipeline (#137)
Browse files Browse the repository at this point in the history
We can have the same stage names within the same edp tenant,
but the CD pipeline name must always be unique, so it
is correct to define Argo CD objects using these two parameters

Change-Id: I5ec70f300883bc2f1c30659b581e61ee600f397d
  • Loading branch information
MykolaMarusenko committed Feb 29, 2024
1 parent 70c2b7d commit dfb9c6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
# quotes are important here
new_tags='$(params.APPLICATIONS_PAYLOAD)'
selector="app.edp.epam.com/stage=$(params.STAGE)"
selector="app.edp.epam.com/stage=$(params.STAGE),app.edp.epam.com/pipeline=$(params.PIPELINE)"
patch=$(kubectl get applicationset $pipeline -o json | jq --argjson updates "$new_tags" --arg stage $stage '
.spec.generators[0].list.elements |= map(
Expand Down

0 comments on commit dfb9c6b

Please sign in to comment.