controllers

package
v0.0.0-...-e493922 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParentObject

func GetParentObject(ctx context.Context, c client.Client, kind, group string, source, parent client.Object) error

GetParentObject returns the first find in the owner references of a given object. T denotes the type that the user wants returned.

func OwnedByKrok

func OwnedByKrok(annotations map[string]string) bool

Types

type KrokEventReconciler

type KrokEventReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	CommandTimeout    int
	PlatformProviders map[string]providers.Platform
	SourceController  *sourceController.Server
}

KrokEventReconciler reconciles a KrokEvent object

func (*KrokEventReconciler) ConditionReason

func (r *KrokEventReconciler) ConditionReason(job *batchv1.Job, jobConditionType batchv1.JobConditionType) string

ConditionReason returns the reason the condition had if any.

func (*KrokEventReconciler) HasCondition

func (r *KrokEventReconciler) HasCondition(job *batchv1.Job, jobConditionType batchv1.JobConditionType) bool

HasCondition verifies if a Job has a given condition in its list of conditions.

func (*KrokEventReconciler) Reconcile

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

func (r *KrokEventReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type KrokRepositoryReconciler

type KrokRepositoryReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	HookBase          string
	HookProtocol      string
	PlatformProviders map[string]providers.Platform
}

KrokRepositoryReconciler reconciles a KrokRepository object

func (*KrokRepositoryReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*KrokRepositoryReconciler) SetupWithManager

func (r *KrokRepositoryReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PodDeletePredicate

type PodDeletePredicate struct {
	predicate.Funcs
}

PodDeletePredicate triggers an update event when a Pod is deleted.

func (PodDeletePredicate) Update

type PodReconciler

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

PodReconciler reconciles Pod objects

func (*PodReconciler) Reconcile

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

func (*PodReconciler) SetupWithManager

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