allErrors=append(allErrors,fmt.Errorf("--etcd-servers must be specified"))
}
if!storageTypes.Has(s.StorageConfig.Type){
allErrors=append(allErrors,fmt.Errorf("--storage-backend invalid, must be 'etcd3' or 'etcd2'. If not specified, it will default to 'etcd3'"))
}
for_,override:=ranges.EtcdServersOverrides{
tokens:=strings.Split(override,"#")
iflen(tokens)!=2{
allErrors=append(allErrors,fmt.Errorf("--etcd-servers-overrides invalid, must be of format: group/resource#servers, where servers are URLs, semicolon separated"))
continue
}
apiresource:=strings.Split(tokens[0],"/")
iflen(apiresource)!=2{
allErrors=append(allErrors,fmt.Errorf("--etcd-servers-overrides invalid, must be of format: group/resource#servers, where servers are URLs, semicolon separated"))
continue
}
}
returnallErrors
}
}
// AddEtcdFlags adds flags related to etcd storage for a specific APIServer to the specified FlagSet
// AddEtcdFlags adds flags related to etcd storage for a specific APIServer to the specified FlagSet