mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #105032 from Pingan2017/remove-swagger-0915
Remove --enable-swagger-ui since no effect from 1.14
This commit is contained in:
commit
3d802ff725
@ -46,9 +46,6 @@ func (o *FeatureOptions) AddFlags(fs *pflag.FlagSet) {
|
|||||||
"Enable profiling via web interface host:port/debug/pprof/")
|
"Enable profiling via web interface host:port/debug/pprof/")
|
||||||
fs.BoolVar(&o.EnableContentionProfiling, "contention-profiling", o.EnableContentionProfiling,
|
fs.BoolVar(&o.EnableContentionProfiling, "contention-profiling", o.EnableContentionProfiling,
|
||||||
"Enable lock contention profiling, if profiling is enabled")
|
"Enable lock contention profiling, if profiling is enabled")
|
||||||
dummy := false
|
|
||||||
fs.BoolVar(&dummy, "enable-swagger-ui", dummy, "Enables swagger ui on the apiserver at /swagger-ui")
|
|
||||||
fs.MarkDeprecated("enable-swagger-ui", "swagger 1.2 support has been removed")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *FeatureOptions) ApplyTo(c *server.Config) error {
|
func (o *FeatureOptions) ApplyTo(c *server.Config) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user