controller

package
v0.0.0-...-031a9af Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoRequeue

func NoRequeue() (ctrl.Result, error)

NoRequeue all done, the object does not need reconciliation anymore.

func Requeue

func Requeue() (ctrl.Result, error)

Requeue triggers a object requeue.

func RequeueAfterSeconds

func RequeueAfterSeconds(seconds int) (ctrl.Result, error)

RequeueAfterSeconds triggers a object requeue after the informed seconds.

func RequeueOnError

func RequeueOnError(err error) (ctrl.Result, error)

RequeueOnError triggers requeue when error is not nil.

func SetDegraded

func SetDegraded(consoleApplication *appsv1alpha1.ConsoleApplication, reason, message string)

SetDegraded sets the Operator Degraded condition with the provided reason and message.

func SetFailed

func SetFailed(consoleApplication *appsv1alpha1.ConsoleApplication, reason, message string)

SetFailed sets the Operator Progressing and Application Ready conditions to False with the provided reason and message.

func SetGitServiceCondition

func SetGitServiceCondition(consoleApplication *appsv1alpha1.ConsoleApplication, status metav1.ConditionStatus, reason string)

SetGitServiceCondition sets the GitService condition with the provided status and reason.

func SetProgressing

func SetProgressing(consoleApplication *appsv1alpha1.ConsoleApplication, status metav1.ConditionStatus, reason, message string)

SetProgressing sets the Operator Progressing condition.

func SetReady

func SetReady(consoleApplication *appsv1alpha1.ConsoleApplication, status metav1.ConditionStatus, reason, message string)

SetReady sets the Operator Ready condition.

func SetResourceCondition

func SetResourceCondition(consoleApplication *appsv1alpha1.ConsoleApplication, conditionType string, status metav1.ConditionStatus, reason, message string)

SetResourceCondition sets a condition for a specific resource type.

func SetStarted

func SetStarted(consoleApplication *appsv1alpha1.ConsoleApplication)

SetStarted sets the Operator Progressing condition to True and Ready condition to Unknown.

func SetStatusField

func SetStatusField(consoleApplication *appsv1alpha1.ConsoleApplication, fieldName string, value interface{}) error

SetStatusField sets a status field with the provided value.

func SetSucceeded

func SetSucceeded(consoleApplication *appsv1alpha1.ConsoleApplication)

SetSucceeded sets the Operator Progressing and Application Ready conditions to True.

Types

type ConsoleApplicationReconciler

type ConsoleApplicationReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	GitServiceInterface gitservice.GitServiceInterface
}

ConsoleApplicationReconciler reconciles a ConsoleApplication object

func (*ConsoleApplicationReconciler) 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.

func (*ConsoleApplicationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ReconcileResult

type ReconcileResult struct {
	Requeue      bool
	RequeueAfter time.Duration
	Error        error
}

Define a custom result type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL