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:
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user