Reset the PVC binding information in pvc_action.go when it has referenced PVB.

Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
This commit is contained in:
Xun Jiang
2026-09-21 10:54:59 +08:00
parent 54d5243923
commit a71bc4befc
5 changed files with 234 additions and 33 deletions
+2 -3
View File
@@ -346,15 +346,14 @@ func newClusterRoleBindingItemAction(logger logrus.FieldLogger) (any, error) {
func newPVCRestoreItemAction(f client.Factory) plugincommon.HandlerInitializer {
return func(logger logrus.FieldLogger) (any, error) {
client, err := f.KubeClient()
crClient, err := f.KubebuilderClient()
if err != nil {
return nil, err
}
return ria.NewPVCAction(
logger,
client.CoreV1().ConfigMaps(f.Namespace()),
client.CoreV1().Nodes(),
crClient,
), nil
}
}