Skip to content

Commit

Permalink
Fix karmada-aggregated-apiserver compile due to Kubernetes#122891
Browse files Browse the repository at this point in the history
Signed-off-by: RainbowMango <[email protected]>
  • Loading branch information
RainbowMango committed Nov 9, 2024
1 parent 646f968 commit 2c283b8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pkg/aggregatedapiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package aggregatedapiserver

import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/version"
"k8s.io/apiserver/pkg/registry/generic"
"k8s.io/apiserver/pkg/registry/rest"
genericapiserver "k8s.io/apiserver/pkg/server"
Expand Down Expand Up @@ -60,13 +59,8 @@ type CompletedConfig struct {
// Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
func (cfg *Config) Complete() CompletedConfig {
c := completedConfig{
cfg.GenericConfig.Complete(),
&cfg.ExtraConfig,
}

c.GenericConfig.Version = &version.Info{
Major: "1",
Minor: "0",
GenericConfig: cfg.GenericConfig.Complete(),
ExtraConfig: &cfg.ExtraConfig,
}

return CompletedConfig{&c}
Expand Down

0 comments on commit 2c283b8

Please sign in to comment.