Skip to content

Commit 9cc3c3a

Browse files
authored
add kubernetes.io/metadata.name annotation (#1057)
Signed-off-by: Divya Jain <[email protected]>
1 parent a262b0f commit 9cc3c3a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/kapp/config/default.go

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ rebaseRules:
6767
resourceMatchers:
6868
- apiVersionKindMatcher: {apiVersion: v1, kind: Namespace}
6969
70+
# Kubernetes adds a label to namespaces
71+
- paths:
72+
- [metadata, annotations, kubernetes.io/metadata.name]
73+
type: copy
74+
sources: [new, existing]
75+
resourceMatchers:
76+
- apiVersionKindMatcher: {apiVersion: v1, kind: Namespace}
77+
7078
# PVC
7179
- paths:
7280
- [metadata, annotations, pv.kubernetes.io/bind-completed]

0 commit comments

Comments
 (0)