1
0
mirror of https://github.com/rancher/types.git synced 2025-07-15 14:11:36 +00:00

add currentNodeLabels and currentNodeAnnotations to Node Spec

Fields to store current node status labels and annotations when calculating desiredNode values
This commit is contained in:
kinarashah 2018-11-19 11:03:37 -08:00 committed by Alena Prokharchyk
parent 77f5b45724
commit 639b6ba634
2 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,8 @@ type NodeSpec struct {
InternalNodeSpec v1.NodeSpec `json:"internalNodeSpec"`
DesiredNodeLabels map[string]string `json:"desiredNodeLabels,omitempty"`
DesiredNodeAnnotations map[string]string `json:"desiredNodeAnnotations,omitempty"`
CurrentNodeLabels map[string]string `json:"currentNodeLabels,omitempty"`
CurrentNodeAnnotations map[string]string `json:"currentNodeAnnotations,omitempty"`
DesiredNodeUnschedulable string `json:"desiredNodeUnschedulable,omitempty"`
NodeDrainInput *NodeDrainInput `json:"nodeDrainInput,omitempty"`
}

View File

@ -229,6 +229,8 @@ func nodeTypes(schemas *types.Schemas) *types.Schemas {
&m.Move{From: "nodeAnnotations", To: "annotations"},
&m.Drop{Field: "desiredNodeLabels"},
&m.Drop{Field: "desiredNodeAnnotations"},
&m.Drop{Field: "currentNodeLabels"},
&m.Drop{Field: "currentNodeAnnotations"},
&m.Drop{Field: "desiredNodeUnschedulable"},
&m.Drop{Field: "nodeDrainInput"},
&m.AnnotationField{Field: "publicEndpoints", List: true},