Adds Windows build information as a label on the node

This commit is contained in:
gab-satchi
2019-10-24 18:05:25 +01:00
parent 7d13dfe3c3
commit b4ba8cf188
6 changed files with 111 additions and 86 deletions

View File

@@ -230,6 +230,10 @@ func (kl *Kubelet) initialNode(ctx context.Context) (*v1.Node, error) {
Unschedulable: !kl.registerSchedulable,
},
}
if err := addOSSpecificLabels(node); err != nil {
return nil, err
}
nodeTaints := make([]v1.Taint, 0)
if len(kl.registerWithTaints) > 0 {
taints := make([]v1.Taint, len(kl.registerWithTaints))