Skip to content

Conversation

@andyyu2004
Copy link
Owner

No description provided.

@andyyu2004 andyyu2004 force-pushed the bug-patch-delete-directive branch from 871a48b to e55429d Compare February 1, 2026 11:22
@andyyu2004 andyyu2004 enabled auto-merge (squash) February 1, 2026 11:28
Added tests:
- volume-remove-emptydir-overlay: Tests emptyDir removal with overlay patches and configMapGenerator
- remove-emptydir-same-level: Tests removing emptyDir with multiple patches at same level
- null-values-1: Tests that null values in args field are preserved
- null-values-2: Tests that null volumes field is preserved
- name-prefix-suffix-patch: Tests patches correctly update ConfigMap references with hash suffixes (issue #2609)
- patch-different-ports: Tests ports with different merge keys are merged correctly

test: add failing test for $patch: delete directive

The $patch: delete directive should remove a resource from the output,
but currently it's being treated as a regular field in the resource.

Expected: Only rule2 should remain in output
Actual: Both rule1 and rule2 present, with '$patch: delete' as a field on rule1

Test for #3616. Ported from Go kustomize TestSmpDeleteOnResource.
@andyyu2004 andyyu2004 force-pushed the bug-patch-delete-directive branch from e7b303a to f704c53 Compare February 1, 2026 11:39
@andyyu2004 andyyu2004 merged commit 328a4f3 into master Feb 1, 2026
1 check passed
@andyyu2004 andyyu2004 deleted the bug-patch-delete-directive branch February 1, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants