mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Unify genericapiserver Config.New() and master Config.New()
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user