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
| 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 |
| 57 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected