Skip to content

Commit 2a44d18

Browse files
authored
Merge pull request #41 from schradert/fix/removeLabels
fix: removeLabels with explicit metadata.labels = null in manifest
2 parents acceb72 + beae06f commit 2a44d18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/kube.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
in
108108
lib.attrsets.updateManyAttrsByPath (
109109
# If metadata.labels is present, it should be filtered
110-
(lib.optional (manifest.metadata ? labels) {
110+
(lib.optional (hasLabelPath ["metadata" "labels"] manifest) {
111111
path = ["metadata" "labels"];
112112
update = updateFunc;
113113
})

0 commit comments

Comments
 (0)