Documentation ¶
Index ¶
Constants ¶
This section is empty.
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 NewPod ¶
func NewPod(job *appsv1alpha1.BroadcastJob, nodeName string) *corev1.Pod
NewPod creates a new pod
Types ¶
type ReconcileBroadcastJob ¶
ReconcileBroadcastJob reconciles a BroadcastJob object
func (*ReconcileBroadcastJob) Reconcile ¶
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 Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=nodes,verbs=get;list;watch +kubebuilder:rbac:groups=core,resources=pods/status,verbs=get;update;patch +kubebuilder:rbac:groups=apps.kruise.io,resources=broadcastjobs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=apps.kruise.io,resources=broadcastjobs/status,verbs=get;update;patch