{"modulePath":"github.com/arikkfir/devbot","version":"v0.0.0-20240714105912-71653c30be8c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\n## Constants\n\n```go\nconst (\n\tPhaseLabel string = \"devbot.kfirs.com/deployment-phase\"\n\tPhaseClone Phase  = \"clone\"\n\tPhaseBake  Phase  = \"bake\"\n\tPhaseApply Phase  = \"apply\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tApplicationFinalizer  = \"applications.finalizers.\" + apiv1.GroupVersion.Group\n\tApplicationMeter      = otel.Meter(\"devbot.kfirs.com/controller/Application\")\n\tApplicationReconciles metric.Int64Counter\n)\n```\n\n```go\nvar (\n\tDeploymentFinalizer = \"deployments.finalizers.\" + apiv1.GroupVersion.Group\n\tApplyJobImage       = \"\"\n\tBakeJobImage        = \"\"\n\tCloneJobImage       = \"\"\n)\n```\n\n```go\nvar (\n\tEnvironmentFinalizer = \"environments.finalizers.\" + apiv1.GroupVersion.Group\n)\n```\n\n```go\nvar (\n\tRepositoryFinalizer = \"repository.finalizers.\" + v1.GroupVersion.Group\n)\n```\n\n## Types\n\n```go\ntype ApplicationReconciler struct {\n\tclient.Client\n\tScheme *runtime.Scheme\n}\n```\nApplicationReconciler reconciles an Application object\n\n```go\nfunc (r *ApplicationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)\n```\nReconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.\n\n```go\nfunc (r *ApplicationReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\ntype DeploymentReconciler struct {\n\tclient.Client\n\tScheme             *runtime.Scheme\n\tDisableJSONLogging bool\n\tLogLevel           string\n}\n```\n\n```go\nfunc (r *DeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)\n```\n\n```go\nfunc (r *DeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\ntype EnvironmentReconciler struct {\n\tclient.Client\n\tScheme *runtime.Scheme\n}\n```\n\n```go\nfunc (r *EnvironmentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)\n```\n\n```go\nfunc (r *EnvironmentReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\ntype Phase string\n```\n\n```go\ntype RepositoryReconciler struct {\n\tclient.Client\n\tScheme           *runtime.Scheme\n\tGitHubWebhookURL string\n}\n```\n\n```go\nfunc (r *RepositoryReconciler) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)\n```\n\n```go\nfunc (r *RepositoryReconciler) SetupWithManager(mgr controllerruntime.Manager) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n","path":"github.com/arikkfir/devbot/internal/controller","name":"controller","synopsis":"","isRedistributable":true}
