mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	promote /metrics to genericapiserver
This commit is contained in:
		@@ -180,6 +180,7 @@ func startMasterOrDie(masterConfig *master.Config, incomingServer *httptest.Serv
 | 
			
		||||
	if masterConfig == nil {
 | 
			
		||||
		masterConfig = NewMasterConfig()
 | 
			
		||||
		masterConfig.GenericConfig.EnableProfiling = true
 | 
			
		||||
		masterConfig.GenericConfig.EnableMetrics = true
 | 
			
		||||
		masterConfig.GenericConfig.EnableSwaggerSupport = true
 | 
			
		||||
		masterConfig.GenericConfig.EnableOpenAPISupport = true
 | 
			
		||||
		masterConfig.GenericConfig.OpenAPIConfig.Info = &spec.Info{
 | 
			
		||||
@@ -451,6 +452,7 @@ func RunAMaster(masterConfig *master.Config) (*master.Master, *httptest.Server)
 | 
			
		||||
	if masterConfig == nil {
 | 
			
		||||
		masterConfig = NewMasterConfig()
 | 
			
		||||
		masterConfig.GenericConfig.EnableProfiling = true
 | 
			
		||||
		masterConfig.GenericConfig.EnableMetrics = true
 | 
			
		||||
	}
 | 
			
		||||
	return startMasterOrDie(masterConfig, nil, nil)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user