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:
parent
77f5b45724
commit
639b6ba634
@ -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"`
|
||||
}
|
||||
|
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user