diff --git a/docs/rebase-pvc.md b/docs/rebase-pvc.md index ca7e98c8e..721ef98e6 100644 --- a/docs/rebase-pvc.md +++ b/docs/rebase-pvc.md @@ -60,7 +60,7 @@ kind: Config rebaseRules: - path: [metadata, annotations, pv.kubernetes.io/bind-completed] type: copy - sources: [existing] + sources: [new, existing] resourceMatchers: &pvcs - apiVersionKindMatcher: apiVersion: v1 @@ -68,12 +68,12 @@ rebaseRules: - path: [metadata, annotations, pv.kubernetes.io/bound-by-controller] type: copy - sources: [existing] + sources: [new, existing] resourceMatchers: *pvcs - path: [metadata, annotations, volume.beta.kubernetes.io/storage-provisioner] type: copy - sources: [existing] + sources: [new, existing] resourceMatchers: *pvcs - path: [spec, volumeMode] diff --git a/pkg/kapp/config/default.go b/pkg/kapp/config/default.go index fdc7e199e..492d88c9e 100644 --- a/pkg/kapp/config/default.go +++ b/pkg/kapp/config/default.go @@ -75,7 +75,7 @@ rebaseRules: # PVC - path: [metadata, annotations, pv.kubernetes.io/bind-completed] type: copy - sources: [existing] + sources: [new, existing] resourceMatchers: &pvcs - apiVersionKindMatcher: apiVersion: v1 @@ -83,12 +83,12 @@ rebaseRules: - path: [metadata, annotations, pv.kubernetes.io/bound-by-controller] type: copy - sources: [existing] + sources: [new, existing] resourceMatchers: *pvcs - path: [metadata, annotations, volume.beta.kubernetes.io/storage-provisioner] type: copy - sources: [existing] + sources: [new, existing] resourceMatchers: *pvcs - path: [spec, storageClassName]