controllers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const RequeueTime = 5 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type CappReconciler

type CappReconciler struct {
	Log logr.Logger
	client.Client
	Scheme        *runtime.Scheme
	OnOpenshift   bool
	EventRecorder record.EventRecorder
}

CappReconciler reconciles a Capp object

func (*CappReconciler) Reconcile

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

func (*CappReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*CappReconciler) SyncApplication

func (r *CappReconciler) SyncApplication(ctx context.Context, capp cappv1alpha1.Capp, resourceManagers map[string]rmanagers.ResourceManager, logger logr.Logger) error

SyncApplication manages the lifecycle of Capp. It ensures all manifests are applied according to the specification and synchronizes the status accordingly.

Jump to

Keyboard shortcuts

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