controllers

package
v0.0.0-...-3d806af Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPod

func NewPod(dj *daemonv1alpha1.DaemonJob, nodeName string) *v1.Pod

NewPod creates a new pod

Types

type DaemonJobReconciler

type DaemonJobReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

DaemonJobReconciler reconciles a DaemonJob object

func (*DaemonJobReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*DaemonJobReconciler) SetupWithManager

func (r *DaemonJobReconciler) SetupWithManager(mgr ctrl.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