mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
apiextensions: enable CoreAPI options needed for admission
This commit is contained in:
parent
60cd056cb4
commit
1c67e1dcf3
@ -51,9 +51,6 @@ func NewCustomResourceDefinitionsServerOptions(out, errOut io.Writer) *CustomRes
|
||||
StdErr: errOut,
|
||||
}
|
||||
|
||||
// the shared informer is not needed for apiextentions apiserver. Disable the kubeconfig flag and the client creation.
|
||||
o.RecommendedOptions.CoreAPI = nil
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
|
@ -47,6 +47,7 @@ func DefaultServerConfig() (*extensionsapiserver.Config, error) {
|
||||
options.RecommendedOptions.Authentication = nil // disable
|
||||
options.RecommendedOptions.Authorization = nil // disable
|
||||
options.RecommendedOptions.Admission = nil // disable
|
||||
options.RecommendedOptions.CoreAPI = nil // disable
|
||||
options.RecommendedOptions.SecureServing.BindAddress = net.ParseIP("127.0.0.1")
|
||||
options.RecommendedOptions.SecureServing.Listener = listener
|
||||
etcdURL, ok := os.LookupEnv("KUBE_INTEGRATION_ETCD_URL")
|
||||
|
Loading…
Reference in New Issue
Block a user