MCPcopy
hub / github.com/kubernetes/kops / NodeReconciler

Struct NodeReconciler

cmd/kops-controller/controllers/node_controller.go:57–69  ·  view source on GitHub ↗

NodeReconciler observes Node objects, and labels them with the correct labels for the instancegroup This used to be done by the kubelet, but is moving to a central controller for greater security in 1.16

Source from the content-addressed store, hash-verified

55// NodeReconciler observes Node objects, and labels them with the correct labels for the instancegroup
56// This used to be done by the kubelet, but is moving to a central controller for greater security in 1.16
57type NodeReconciler struct {
58 // client is the controller-runtime client
59 client client.Client
60
61 // log is a logr
62 log logr.Logger
63
64 // coreV1Client is a client-go client for patching nodes
65 coreV1Client *corev1client.CoreV1Client
66
67 // identifier is a provider that can securely map node ProviderIDs to labels
68 identifier nodeidentity.Identifier
69}
70
71// +kubebuilder:rbac:groups=,resources=nodes,verbs=get;list;watch;patch
72// Reconcile is the main reconciler function that observes node changes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected