mirror of
https://github.com/rancher/types.git
synced 2025-09-23 19:07:21 +00:00
adding actions cordon and uncordon to schema
This commit is contained in:
committed by
Alena Prokharchyk
parent
c073f3795d
commit
74d1d9ed8f
@@ -234,6 +234,8 @@ func nodeTypes(schemas *types.Schemas) *types.Schemas {
|
||||
clusterField := schema.ResourceFields["clusterId"]
|
||||
clusterField.Type = "reference[cluster]"
|
||||
schema.ResourceFields["clusterId"] = clusterField
|
||||
schema.ResourceActions["cordon"] = types.Action{}
|
||||
schema.ResourceActions["uncordon"] = types.Action{}
|
||||
}, struct {
|
||||
PublicEndpoints string `json:"publicEndpoints" norman:"type=array[publicEndpoint],nocreate,noupdate"`
|
||||
}{}).
|
||||
|
Reference in New Issue
Block a user