controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const RestartsKey string = "jobset.sigs.k8s.io/restart-attempt"

Variables

This section is empty.

Functions

func GenSubdomain

func GenSubdomain(js *jobset.JobSet, rjob *jobset.ReplicatedJob) string

func SetupIndexes

func SetupIndexes(indexer client.FieldIndexer) error

Types

type JobSetReconciler

type JobSetReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Record record.EventRecorder
}

JobSetReconciler reconciles a JobSet object

func NewJobSetReconciler

func NewJobSetReconciler(client client.Client, scheme *runtime.Scheme, record record.EventRecorder) *JobSetReconciler

func (*JobSetReconciler) Reconcile

func (r *JobSetReconciler) 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 (*JobSetReconciler) SetupWithManager

func (r *JobSetReconciler) 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