From b0c0c73e2a053ef00628d6dca425bfdfc3153be2 Mon Sep 17 00:00:00 2001 From: Julian Lawrence Date: Wed, 25 Sep 2024 10:23:26 -0700 Subject: [PATCH] updated comments Signed-off-by: Julian Lawrence --- pkg/resourceinterpreter/default/native/dependencies.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/resourceinterpreter/default/native/dependencies.go b/pkg/resourceinterpreter/default/native/dependencies.go index 0c5d14199e7b..1586a880a2ae 100644 --- a/pkg/resourceinterpreter/default/native/dependencies.go +++ b/pkg/resourceinterpreter/default/native/dependencies.go @@ -139,8 +139,9 @@ func getStatefulSetDependencies(object *unstructured.Unstructured) ([]configv1al } // ignore the PersistentVolumeClaim dependency if it was created by the StatefulSet VolumeClaimTemplates + // the PVC dependency is not needed because the StatefulSet will manage the pvcs in the member cluster, if it exists here it was just a placeholder not a real PVC for _, dep := range deps { - if dep.Kind != "PersistentVolumeClaim" || + if dep.Kind != util.PersistentVolumeClaimKind || len(statefulSetObj.Spec.VolumeClaimTemplates) == 0 { validDeps = append(validDeps, dep) continue