Skip to content

Commit

Permalink
updated comments
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Lawrence <[email protected]>
  • Loading branch information
jklaw90 committed Sep 25, 2024
1 parent 106eb02 commit b0c0c73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/resourceinterpreter/default/native/dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0c0c73

Please sign in to comment.