Documentation
¶
Index ¶
- func NoRequeue() (ctrl.Result, error)
- func Requeue() (ctrl.Result, error)
- func RequeueAfterSeconds(seconds int) (ctrl.Result, error)
- func RequeueOnError(err error) (ctrl.Result, error)
- func SetDegraded(consoleApplication *appsv1alpha1.ConsoleApplication, reason, message string)
- func SetFailed(consoleApplication *appsv1alpha1.ConsoleApplication, reason, message string)
- func SetGitServiceCondition(consoleApplication *appsv1alpha1.ConsoleApplication, ...)
- func SetProgressing(consoleApplication *appsv1alpha1.ConsoleApplication, ...)
- func SetReady(consoleApplication *appsv1alpha1.ConsoleApplication, ...)
- func SetResourceCondition(consoleApplication *appsv1alpha1.ConsoleApplication, conditionType string, ...)
- func SetStarted(consoleApplication *appsv1alpha1.ConsoleApplication)
- func SetStatusField(consoleApplication *appsv1alpha1.ConsoleApplication, fieldName string, ...) error
- func SetSucceeded(consoleApplication *appsv1alpha1.ConsoleApplication)
- type ConsoleApplicationReconciler
- type ReconcileResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequeueAfterSeconds ¶
RequeueAfterSeconds triggers a object requeue after the informed seconds.
func RequeueOnError ¶
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 ¶
func (r *ConsoleApplicationReconciler) 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 (*ConsoleApplicationReconciler) SetupWithManager ¶
func (r *ConsoleApplicationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.