fix openapi build

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-08-11 07:11:11 +00:00
parent 3bfae73318
commit c23c1adcd1
10 changed files with 5801 additions and 1959 deletions

View File

@@ -73,7 +73,7 @@ func RenderOpenAPISpec(cfg Config) (string, error) {
&metav1.APIResourceList{},
)
recommendedOptions := genericoptions.NewRecommendedOptions("/registry/foo.com", cfg.Codecs.LegacyCodec(), nil)
recommendedOptions := genericoptions.NewRecommendedOptions("/registry/foo.com", cfg.Codecs.LegacyCodec())
recommendedOptions.SecureServing.BindPort = 8443
recommendedOptions.Etcd = nil
recommendedOptions.Authentication = nil