diff --git a/pkg/ocm/placementbinding.go b/pkg/ocm/placementbinding.go index eef2f309f..db98f3cf5 100644 --- a/pkg/ocm/placementbinding.go +++ b/pkg/ocm/placementbinding.go @@ -160,6 +160,9 @@ func (builder *PlacementBindingBuilder) Get() (*policiesv1.PlacementBinding, err }, placementBinding) if err != nil { + glog.V(100).Infof("Failed to get placementBinding %s in namespace %s: %v", + builder.Definition.Name, builder.Definition.Namespace, err) + return nil, err } diff --git a/pkg/ocm/placementrule.go b/pkg/ocm/placementrule.go index 2980259d7..75fea155b 100644 --- a/pkg/ocm/placementrule.go +++ b/pkg/ocm/placementrule.go @@ -150,6 +150,9 @@ func (builder *PlacementRuleBuilder) Get() (*placementrulev1.PlacementRule, erro }, placementRule) if err != nil { + glog.V(100).Infof("Failed to get placementrule %s in namespace %s: %v", + builder.Definition.Name, builder.Definition.Namespace, err) + return nil, err } diff --git a/pkg/ocm/policy.go b/pkg/ocm/policy.go index dc7e45978..784d886f0 100644 --- a/pkg/ocm/policy.go +++ b/pkg/ocm/policy.go @@ -163,6 +163,9 @@ func (builder *PolicyBuilder) Get() (*policiesv1.Policy, error) { }, policy) if err != nil { + glog.V(100).Infof("Failed to get policy %s in namespace %s: %v", + builder.Definition.Name, builder.Definition.Namespace, err) + return nil, err } diff --git a/pkg/ocm/policyset.go b/pkg/ocm/policyset.go index 9dbb8d68f..87f6b1139 100644 --- a/pkg/ocm/policyset.go +++ b/pkg/ocm/policyset.go @@ -160,6 +160,9 @@ func (builder *PolicySetBuilder) Get() (*policiesv1beta1.PolicySet, error) { }, policySet) if err != nil { + glog.V(100).Infof("Failed to get policySet %s in namespace %s: %v", + builder.Definition.Name, builder.Definition.Namespace, err) + return nil, err }