-
Bug
-
Resolution: Done
-
Critical
-
Global Hub 1.4.0
-
GH Train-24
-
Critical
-
None
Description of problem:
2025-02-12T06:26:50.483Z PANIC cmd/main.go:330 failed to run the main: failed to create manager failed to create a new manager: failed to determine if *v1alpha1.ManagedClusterAddOn is namespaced: failed to get restmapping: no matches for kind "ManagedClusterAddOn" in version "addon.open-cluster-management.io/v1alpha1"
main.main
/workspace/manager/cmd/main.go:330
runtime.main
/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.2.linux-amd64/src/runtime/proc.go:272
panic: failed to run the main: failed to create manager failed to create a new manager: failed to determine if *v1alpha1.ManagedClusterAddOn is namespaced: failed to get restmapping: no matches for kind "ManagedClusterAddOn" in version "addon.open-cluster-management.io/v1alpha1"
goroutine 1 [running]:
go.uber.org/zap/zapcore.CheckWriteAction.OnWrite(0x0?, 0x0?, {0x0?, 0x0?, 0xc0003e6560?})
/go/pkg/mod/go.uber.org/zap@v1.27.0/zapcore/entry.go:196 +0x54
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00099ef70, {0x0, 0x0, 0x0})
/go/pkg/mod/go.uber.org/zap@v1.27.0/zapcore/entry.go:262 +0x24e
go.uber.org/zap.(*SugaredLogger).log(0xc00098c218, 0x4, {0x2a46052?, 0x26c0180?}, {0xc000c35f20?, 0xc0009be200?, 0xc0009bf900?}, {0x0, 0x0, 0x0})
/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:355 +0xec
go.uber.org/zap.(*SugaredLogger).Panicf(0x2e03a48?, {0x2a46052?, 0xc0009a4488?}, {0xc000c35f20?, 0x40f9eb?, 0x0?})
/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:229 +0x3f
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
- ...