reconciler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 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 = "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
	K8sInstaller   IK8sInstaller
}

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

type IK8sInstaller added in v0.1.1

type IK8sInstaller interface {
	Install(string, string, string) error
	Uninstall(string, string, string) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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