Skip to content

Commit b1eff3d

Browse files
committed
Add a comment for DynRESTMapper instance in server.Server struct
On-behalf-of: @SAP robert.vasek@sap.com Signed-off-by: Robert Vasek <robert.vasek@clyso.com>
1 parent 709c44a commit b1eff3d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/server/server.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ type Server struct {
7575
Apis *controlplaneapiserver.Server
7676
MiniAggregator *miniaggregator.MiniAggregatorServer
7777
virtual *virtualrootapiserver.Server
78-
DynRESTMapper *dynamicrestmapper.DynamicRESTMapper
78+
// DynRESTMapper is a workspace-aware REST mapper, backed by a reconciler,
79+
// which dynamically loads all bound resources through every type associated
80+
// with an APIBinding in the workspace into the mapper. Another controller can
81+
// use this to resolve the Kind/Resource of the objects.
82+
DynRESTMapper *dynamicrestmapper.DynamicRESTMapper
7983

8084
syncedCh chan struct{}
8185
rootPhase1FinishedCh chan struct{}

0 commit comments

Comments
 (0)