mirror of
https://github.com/rancher/types.git
synced 2025-08-31 12:48:45 +00:00
UserAttribute backend
This commit is contained in:
committed by
Alena Prokharchyk
parent
aa4b48988f
commit
cd18165f8d
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user