Open
Description
Describe the bug
Patching pod labels or annotations doesn't work. These labels are used as selectors to apply network policies, and because the sandbox doesn't inherit labels, we need to patch the deployment.
To Reproduce
Using the guide example, add a customization block:
name: test-sandbox-routing
spec:
description: Test Sandbox Routing
cluster: "@{cluster}"
forks:
- forkOf:
kind: Deployment
namespace: "@{namespace}"
name: "@{name}"
customizations:
patch:
type: strategic
value: |
spec:
metadata:
annotations:
test-annotation: "true"
Expected behavior
It should add test-annotation
as an annotation
(or label
, depending on if annotations
or labels
is used in the patch value)
Observed behavior
Nothing changes. My patch is not applied. Could the signadot
labels assignment run after the patch?