1
0
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:
kinarashah
2018-05-29 13:37:48 -07:00
committed by Alena Prokharchyk
parent c073f3795d
commit 74d1d9ed8f

View File

@@ -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"`
}{}).