Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NodeFromOpts ¶
func Run ¶
func Run(ctx context.Context, c Opts, client kubernetes.Interface, p node.NodeProvider) error
Types ¶
type NodeProvider ¶ added in v0.11.0
type NodeProvider struct {
// contains filtered or unexported fields
}
NodeProvider accepts a callback from virtual-kubelet's node controller, and exposes it to our upstream resources controller, for node status updates. If we updated node status directly, without informing virtual-kubelet, virtual-kubelet would override our changes every minute (with node leases enabled; more often otherwise); which would trigger a reconcile on our end, and another override on vk's end, etc. (controllers disagreeing). When virtual-kubelet is notified of what we think the node status should be, it keeps it in memory, and call kube-apiserver on our behalf.
func (*NodeProvider) NotifyNodeStatus ¶ added in v0.11.0
func (p *NodeProvider) NotifyNodeStatus(ctx context.Context, cb func(*corev1.Node))
func (*NodeProvider) UpdateNodeStatus ¶ added in v0.11.0
func (p *NodeProvider) UpdateNodeStatus(node *corev1.Node)
Click to show internal directories.
Click to hide internal directories.