get labels for pvc
@@ -259,6 +259,8 @@ func (r *KalmPVReconciler) reconcileOrphanPV(orphanPV *corev1.PersistentVolume)
Namespace: NamespaceKalmSystem,
Labels: map[string]string{
KalmLabelManaged: "true",
+ KalmLabelComponentKey: orphanPV.Labels[KalmLabelComponentKey],
+ KalmLabelComponentNSKey: orphanPV.Labels[KalmLabelComponentNSKey],
},
},
Spec: corev1.PersistentVolumeClaimSpec{
