broadcastjob

package
v0.0.0-...-7f68784 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new BroadcastJob Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func IsJobFinished

func IsJobFinished(j *appsv1alpha1.BroadcastJob) bool

IsJobFinished returns true when finishing job

func NewPod

func NewPod(job *appsv1alpha1.BroadcastJob, nodeName string) *corev1.Pod

NewPod creates a new pod

Types

type ReconcileBroadcastJob

type ReconcileBroadcastJob struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileBroadcastJob reconciles a BroadcastJob object

func (*ReconcileBroadcastJob) Reconcile

func (r *ReconcileBroadcastJob) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a BroadcastJob object and makes changes based on the state read and what is in the BroadcastJob.Spec

Jump to

Keyboard shortcuts

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