controller

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(cfg *rest.Config, options ...option) (manager.Manager, gocron.Scheduler, error)

Types

type GitOpsProjectController

type GitOpsProjectController struct {
	Log logr.Logger

	// Client connects to a Kubernetes cluster
	// to create, read, update and delete standard Kubernetes manifests/objects.
	Client client.Client

	Reconciler project.Reconciler

	ReconciliationHistogram *prometheus.HistogramVec
}

GitOpsProjectController reconciles a GitOpsProject object

func (*GitOpsProjectController) Reconcile

func (controller *GitOpsProjectController) 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 (*GitOpsProjectController) SetupWithManager

func (reconciler *GitOpsProjectController) SetupWithManager(
	mgr ctrl.Manager,
	controllerName string,
) error

SetupWithManager sets up the controller with the Manager.

type InsecureSkipTLSverify

type InsecureSkipTLSverify bool

type LogLevel

type LogLevel int

type MetricsAddr

type MetricsAddr string

type NamePodinfoPath

type NamePodinfoPath string

type NamespacePodinfoPath

type NamespacePodinfoPath string

type PlainHTTP

type PlainHTTP bool

type ProbeAddr

type ProbeAddr string

type ShardPodinfoPath

type ShardPodinfoPath string

Jump to

Keyboard shortcuts

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