Skip to content

Commit 9ea0ae3

Browse files
committed
readd comments
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
1 parent b0d84b8 commit 9ea0ae3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

backend/controllers/serviceexportrequest/serviceexportrequest_reconcile.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ func (r *reconciler) createOrUpdateBoundSchema(ctx context.Context, cl client.Cl
189189
return nil
190190
}
191191

192+
// If namespaced isolation is configured for cluster-scoped objects,
193+
// we need to rewrite the BoundSchema's scope accordingly. For all
194+
// other isolation strategies, as well as for namespaced schemas,
195+
// no changes are necessary.
192196
if desired.Spec.Scope == apiextensionsv1.NamespaceScoped && r.isolation == kubebindv1alpha2.IsolationNamespaced {
193197
desired.Spec.Scope = apiextensionsv1.ClusterScoped
194198
}

0 commit comments

Comments
 (0)