controller

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitSyncReconciler

type GitSyncReconciler struct {
	ConfigManager *config.ConfigManager
	// contains filtered or unexported fields
}

GitSyncReconciler reconciles a GitSync object

func NewGitSyncReconciler

func NewGitSyncReconciler(
	client client.Client,
	s *runtime.Scheme,
	configManager *config.ConfigManager,
	syncer *sync.Syncer,
) (*GitSyncReconciler, error)

func (*GitSyncReconciler) Reconcile

func (r *GitSyncReconciler) 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. Note this method is called concurrently by multiple goroutines, whenever there is a change to the GitSync CRD

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

func (*GitSyncReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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