Debian Codegraph @

cmd/config/internal/commands/e2e/starlark/annotate.star

raw
1 def run(r, fc):
2 for resource in r:
3 resource["metadata"]["annotations"]["a-string-value"] = fc["data"]["stringValue"]
4 resource["metadata"]["annotations"]["a-int-value"] = fc["data"]["intValue"]
5 resource["metadata"]["annotations"]["a-bool-value"] = fc["data"]["boolValue"]
6
7 run(ctx.resource_list["items"], ctx.resource_list["functionConfig"])