1
0
mirror of https://github.com/rancher/types.git synced 2025-09-25 04:12:02 +00:00

Update generated code

This commit is contained in:
Darren Shepherd
2018-02-15 16:12:01 -07:00
parent 7f49e582af
commit 90349929fd
3 changed files with 7 additions and 8 deletions

View File

@@ -120,10 +120,10 @@ type CustomConfig struct {
}
type CommonNodeSpec struct {
Etcd bool `json:"etcd" norman:"noupdate"`
ControlPlane bool `json:"controlPlane" norman:"noupdate"`
Worker bool `json:"worker" norman:"noupdate"`
NodeTemplateName string `json:"nodeTemplateName,omitempty" norman:"type=reference[nodeTemplate],noupdate"`
Etcd bool `json:"etcd"`
ControlPlane bool `json:"controlPlane"`
Worker bool `json:"worker"`
NodeTemplateName string `json:"nodeTemplateName,omitempty" norman:"type=reference[nodeTemplate]"`
}
type NodeSpec struct {

View File

@@ -177,8 +177,9 @@ func nodeTypes(schemas *types.Schemas) *types.Schemas {
Output: "nodeDriver",
}
}).
MustImport(&Version, v3.NodeTemplate{})
MustImportAndCustomize(&Version, v3.NodeTemplate{}, func(schema *types.Schema) {
delete(schema.ResourceFields, "namespaceId")
})
}
func tokens(schemas *types.Schemas) *types.Schemas {