controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFailedStatus

func FilterFailedStatus(p corev1.PodStatus, labels map[string]string) (failed bool, status kubeproberv1.ProbeCheckerStatus)

func IsContain added in v0.1.0

func IsContain(items []string, item string) (int, bool)

Types

type PodPredicates

type PodPredicates struct {
	predicate.Funcs
}

filter exception pod

func (*PodPredicates) Create

func (p *PodPredicates) Create(e event.CreateEvent) bool

func (*PodPredicates) Delete

func (p *PodPredicates) Delete(e event.DeleteEvent) bool

func (*PodPredicates) Generic

func (p *PodPredicates) Generic(e event.GenericEvent) bool

func (*PodPredicates) Update

func (p *PodPredicates) Update(e event.UpdateEvent) bool

type ProbeCronJobPredicates

type ProbeCronJobPredicates struct {
	predicate.Funcs
}

func (*ProbeCronJobPredicates) Create

func (*ProbeCronJobPredicates) Delete

func (*ProbeCronJobPredicates) Generic

func (*ProbeCronJobPredicates) Update

type ProbePredicates

type ProbePredicates struct {
	predicate.Funcs
}

func (*ProbePredicates) Create

func (p *ProbePredicates) Create(e event.CreateEvent) bool

func (*ProbePredicates) Delete

func (p *ProbePredicates) Delete(e event.DeleteEvent) bool

func (*ProbePredicates) Generic

func (p *ProbePredicates) Generic(e event.GenericEvent) bool

func (*ProbePredicates) Update

func (p *ProbePredicates) Update(e event.UpdateEvent) bool

type ProbeReconciler

type ProbeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

ProbeReconciler reconciles a Probe object

func (*ProbeReconciler) CreateCronJob

func (r *ProbeReconciler) CreateCronJob(ctx context.Context, probe *kubeproberv1.Probe) error

func (*ProbeReconciler) Reconcile

func (r *ProbeReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the Probe object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*ProbeReconciler) ReconcileCronJob

func (r *ProbeReconciler) ReconcileCronJob(ctx context.Context, probe *kubeproberv1.Probe) (ctrl.Result, error)

func (*ProbeReconciler) ReconcileCronJobs

func (r *ProbeReconciler) ReconcileCronJobs(ctx context.Context, probe *kubeproberv1.Probe) (ctrl.Result, error)

func (*ProbeReconciler) ReconcileJob

func (r *ProbeReconciler) ReconcileJob(ctx context.Context, probe *kubeproberv1.Probe) (ctrl.Result, error)

func (*ProbeReconciler) ReconcileJobs

func (r *ProbeReconciler) ReconcileJobs(ctx context.Context, probe *kubeproberv1.Probe) (ctrl.Result, error)

func (*ProbeReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*ProbeReconciler) UpdateCronJob

func (r *ProbeReconciler) UpdateCronJob(ctx context.Context, probe *kubeproberv1.Probe) error

type ProbeStatusPredicates added in v0.1.0

type ProbeStatusPredicates struct {
	predicate.Funcs
}

filter probestatus

type ProbeStatusReconciler

type ProbeStatusReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

ProbeStatusReconciler reconciles a ProbeStatus object

func (*ProbeStatusReconciler) Reconcile

func (r *ProbeStatusReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the ProbeStatus object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*ProbeStatusReconciler) SetupWithManager

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