Documentation ¶
Index ¶
Constants ¶
View Source
const ( JobNameLabelKey = "broadcastjob-name" ControllerUIDLabelKey = "broadcastjob-controller-uid" )
Variables ¶
This section is empty.
Functions ¶
func Add ¶
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 NewMockPod ¶ added in v0.9.0
func NewMockPod(job *appsv1alpha1.BroadcastJob, nodeName string) *corev1.Pod
NewMockPod creates a new mock pod
Types ¶
type ReconcileBroadcastJob ¶
ReconcileBroadcastJob reconciles a BroadcastJob object
func (*ReconcileBroadcastJob) Reconcile ¶
func (r *ReconcileBroadcastJob) Reconcile(_ context.Context, 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
Click to show internal directories.
Click to hide internal directories.