Skip to content

Commit

Permalink
feat(chart): add contributor list to generated tags (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Becker <[email protected]>
  • Loading branch information
sbckr authored Dec 19, 2024
1 parent cb6388d commit 27366e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion charts/thymus/templates/access-control/default-policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ data:
tags := [
{
"key": "derived-from",
"value": concat(", ", {x |
some i
x := input.inputs[i].secretId
})
}, {
"key": "contributors",
"value": concat(", ", {x |
some i
x := input.inputs[i].owner
Expand All @@ -64,7 +70,7 @@ data:
provided_input if {
some i
input.tags[i].key == "derived-from"
input.tags[i].key == "contributors"
contributor := split(input.tags[i].value, ",")
trim(contributor[_], " ") == input.subject
}
Expand Down

0 comments on commit 27366e4

Please sign in to comment.