allErrors=append(allErrors,fmt.Errorf("--storage-backend invalid, allowed values: %s. If not specified, it will default to 'etcd3'",strings.Join(storageTypes.List(),", ")))
}
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