1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

UserAttribute backend

This commit is contained in:
Craig Jellick
2018-06-19 09:46:45 -07:00
committed by Alena Prokharchyk
parent aa4b48988f
commit cd18165f8d
4 changed files with 25 additions and 6 deletions

View File

@@ -53,14 +53,14 @@ func contains(list []string, needle string) bool {
return false
}
func Generate(schemas *types.Schemas) {
func Generate(schemas *types.Schemas, backendTypes map[string]bool) {
version := getVersion(schemas)
group := strings.Split(version.Group, ".")[0]
cattleOutputPackage := path.Join(basePackage, baseCattle, group, version.Version)
k8sOutputPackage := path.Join(basePackage, baseK8s, version.Group, version.Version)
if err := generator.Generate(schemas, cattleOutputPackage, k8sOutputPackage); err != nil {
if err := generator.Generate(schemas, backendTypes, cattleOutputPackage, k8sOutputPackage); err != nil {
panic(err)
}
}