mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 16:42:51 +00:00
8 lines
355 B
Plaintext
8 lines
355 B
Plaintext
def run(r, fc):
|
|
for resource in r:
|
|
resource["metadata"]["annotations"]["a-string-value"] = fc["data"]["stringValue"]
|
|
resource["metadata"]["annotations"]["a-int-value"] = fc["data"]["intValue"]
|
|
resource["metadata"]["annotations"]["a-bool-value"] = fc["data"]["boolValue"]
|
|
|
|
run(ctx.resource_list["items"], ctx.resource_list["functionConfig"])
|