mirror of
https://github.com/rancher/types.git
synced 2025-09-16 14:59:16 +00:00
Add description to things
This commit is contained in:
@@ -55,6 +55,7 @@ func NodeTypes(version *types.APIVersion, schemas *types.Schemas) *types.Schemas
|
||||
"unschedulable": "ru",
|
||||
}}).
|
||||
AddMapperForType(version, v1.Node{},
|
||||
&m.AnnotationField{Field: "description"},
|
||||
&m.Embed{Field: "status"},
|
||||
).
|
||||
MustImport(version, v1.NodeStatus{}, struct {
|
||||
@@ -62,7 +63,9 @@ func NodeTypes(version *types.APIVersion, schemas *types.Schemas) *types.Schemas
|
||||
Hostname string
|
||||
Info NodeInfo
|
||||
}{}).
|
||||
MustImport(version, v1.Node{})
|
||||
MustImport(version, v1.Node{}, struct {
|
||||
Description string `json:"description"`
|
||||
}{})
|
||||
}
|
||||
|
||||
func volumeTypes(schemas *types.Schemas) *types.Schemas {
|
||||
|
Reference in New Issue
Block a user