controller

package
v0.0.0-...-71653c3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PhaseLabel string = "devbot.kfirs.com/deployment-phase"
	PhaseClone Phase  = "clone"
	PhaseBake  Phase  = "bake"
	PhaseApply Phase  = "apply"
)

Variables

View Source
var (
	ApplicationFinalizer  = "applications.finalizers." + apiv1.GroupVersion.Group
	ApplicationMeter      = otel.Meter("devbot.kfirs.com/controller/Application")
	ApplicationReconciles metric.Int64Counter
)
View Source
var (
	DeploymentFinalizer = "deployments.finalizers." + apiv1.GroupVersion.Group
	ApplyJobImage       = ""
	BakeJobImage        = ""
	CloneJobImage       = ""
)
View Source
var (
	EnvironmentFinalizer = "environments.finalizers." + apiv1.GroupVersion.Group
)
View Source
var (
	RepositoryFinalizer = "repository.finalizers." + v1.GroupVersion.Group
)

Functions

This section is empty.

Types

type ApplicationReconciler

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

ApplicationReconciler reconciles an Application object

func (*ApplicationReconciler) Reconcile

func (r *ApplicationReconciler) 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 (*ApplicationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type DeploymentReconciler

type DeploymentReconciler struct {
	client.Client
	Scheme             *runtime.Scheme
	DisableJSONLogging bool
	LogLevel           string
}

func (*DeploymentReconciler) Reconcile

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

func (*DeploymentReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type EnvironmentReconciler

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

func (*EnvironmentReconciler) Reconcile

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

func (*EnvironmentReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Phase

type Phase string

type RepositoryReconciler

type RepositoryReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	GitHubWebhookURL string
}

func (*RepositoryReconciler) Reconcile

func (r *RepositoryReconciler) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)

func (*RepositoryReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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