1
0
mirror of https://github.com/rancher/types.git synced 2025-09-16 14:59:16 +00:00

Fix namespace attribute on native types

This commit is contained in:
Darren Shepherd
2017-12-19 21:47:20 -07:00
parent fe47f6246e
commit bb9f169d59
5 changed files with 36 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ func Generate(schemas *types.Schemas) {
}
}
func GenerateNativeTypes(gv schema.GroupVersion, objs ...interface{}) {
func GenerateNativeTypes(gv schema.GroupVersion, nsObjs []interface{}, objs []interface{}) {
version := gv.Version
group := gv.Group
groupPath := group
@@ -43,7 +43,7 @@ func GenerateNativeTypes(gv schema.GroupVersion, objs ...interface{}) {
Version: version,
Group: group,
Path: fmt.Sprintf("/k8s/%s-%s", groupPath, version),
}, k8sOutputPackage, objs...); err != nil {
}, k8sOutputPackage, nsObjs, objs); err != nil {
panic(err)
}
}