Skip to content

[bug] Patch not applied to sandbox #64

Open
@xolott

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?

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions