Skip to content

Commit 86c525e

Browse files
committed
only skip PVC when workload is enabled
Signed-off-by: Ryan Zhang <[email protected]>
1 parent 95c4e84 commit 86c525e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/utils/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ func CheckCRDInstalled(discoveryClient discovery.DiscoveryInterface, gvk schema.
506506
}
507507

508508
// ShouldPropagateObj decides if one should propagate the object.
509-
// If enableWorkload is true, PVCs are allowed to be propagated.
509+
// PVCs are only propagated when enableWorkload is false (workloads not allowed on hub).
510510
func ShouldPropagateObj(informerManager informer.Manager, uObj *unstructured.Unstructured, enableWorkload bool) (bool, error) {
511511
// TODO: add more special handling for different resource kind
512512
switch uObj.GroupVersionKind() {

0 commit comments

Comments
 (0)