Skip to content

Commit 4e9e7c4

Browse files
committed
add missing platform cluster initialization
1 parent 391c412 commit 4e9e7c4

File tree

1 file changed

+4
-0
lines changed
  • cmd/openmcp-operator/app/mcp

1 file changed

+4
-0
lines changed

cmd/openmcp-operator/app/mcp/init.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ func (o *InitOptions) Complete(ctx context.Context) error {
6565
}
6666

6767
func (o *InitOptions) Run(ctx context.Context) error {
68+
if err := o.PlatformCluster.InitializeClient(install.InstallOperatorAPIsPlatform(runtime.NewScheme())); err != nil {
69+
return err
70+
}
71+
6872
log := o.Log.WithName("main")
6973

7074
onboardingScheme := runtime.NewScheme()

0 commit comments

Comments
 (0)