controllers

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PullRequestReconciler

type PullRequestReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

PullRequestReconciler reconciles a PullRequest object

func (*PullRequestReconciler) Reconcile

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

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

func (*PullRequestReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type RepositoryReconciler

type RepositoryReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	Parameters RepositoryReconcilerParameters
	// contains filtered or unexported fields
}

RepositoryReconciler reconciles a Repository object

func NewRepositoryReconciler

func NewRepositoryReconciler(
	client client.Client,
	scheme *runtime.Scheme,
	params RepositoryReconcilerParameters,
) (*RepositoryReconciler, error)

func (*RepositoryReconciler) Reconcile

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

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

func (*RepositoryReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type RepositoryReconcilerParameters

type RepositoryReconcilerParameters struct {
	ReconcilePeriod string `json:"reconcilePeriod"`
	DefaultToken    string `json:"defaultToken"`
}

Jump to

Keyboard shortcuts

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