diff --git a/pkg/aggregatedapiserver/apiserver.go b/pkg/aggregatedapiserver/apiserver.go index 2e31bb8d2ee8..64fd9d97c804 100644 --- a/pkg/aggregatedapiserver/apiserver.go +++ b/pkg/aggregatedapiserver/apiserver.go @@ -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" @@ -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}