reconciler

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package reconciler contains the host agent controller's reconcile implementation that watches for ByoHost CRD

Index

Constants

View Source
const (

	// KubeadmResetCommand is the command to run to force reset/remove nodes' local file system of the files created by kubeadm
	KubeadmResetCommand = "kubeadm reset --force"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostReconciler

type HostReconciler struct {
	Client              client.Client
	CmdRunner           cloudinit.ICmdRunner
	FileWriter          cloudinit.IFileWriter
	TemplateParser      cloudinit.ITemplateParser
	Recorder            record.EventRecorder
	SkipK8sInstallation bool
	DownloadPath        string
}

HostReconciler encapsulates the data/logic needed to reconcile a ByoHost

func (*HostReconciler) Reconcile

func (r *HostReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile handles events for the ByoHost that is registered by this agent process

func (*HostReconciler) SetupWithManager

func (r *HostReconciler) SetupWithManager(ctx context.Context, mgr manager.Manager) error

SetupWithManager sets up the controller with the manager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL