Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 5892587

Browse files
committed
Document blocking behavior of restConfigForAPIExport
1 parent f5d9954 commit 5892587

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ func main() {
163163
// +kubebuilder:rbac:groups="apis.kcp.dev",resources=apiexports,verbs=get;list;watch
164164

165165
// restConfigForAPIExport returns a *rest.Config properly configured to communicate with the endpoint for the
166-
// APIExport's virtual workspace.
166+
// APIExport's virtual workspace. It blocks until the controller APIExport VirtualWorkspaceURLsReady condition
167+
// becomes truthy, which happens when the APIExport is bound for the first time.
167168
func restConfigForAPIExport(ctx context.Context, cfg *rest.Config, apiExportName string) (*rest.Config, error) {
168169
scheme := runtime.NewScheme()
169170
if err := apisv1alpha1.AddToScheme(scheme); err != nil {

0 commit comments

Comments
 (0)