Unify genericapiserver Config.New() and master Config.New()

This commit is contained in:
Dr. Stefan Schimanski
2016-09-27 17:54:45 +02:00
parent c0826a2e7e
commit b4c6a68036
8 changed files with 12 additions and 12 deletions

View File

@@ -194,7 +194,7 @@ type RESTStorageProvider interface {
// Certain config fields will be set to a default value if unset.
// Certain config fields must be specified, including:
// KubeletClient
func New(c *Config) (*Master, error) {
func (c *Config) New() (*Master, error) {
if c.KubeletClient == nil {
return nil, fmt.Errorf("Master.New() called with config.KubeletClient == nil")
}