controllers

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: AGPL-3.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeploymentReconciler

func NewDeploymentReconciler(client client.Client, updater IngressUpdater) *deploymentReconciler

NewDeploymentReconciler creates a new deployment reconciler.

func NewEcosystemCertificateReconciler

func NewEcosystemCertificateReconciler(certSync certificateSynchronizer) *ecosystemCertificateReconciler

NewEcosystemCertificateReconciler creates a new reconciler for the ecosystem-certificate secret.

func NewMaintenanceModeUpdater

func NewMaintenanceModeUpdater(client k8sClient, namespace string, ingressUpdater IngressUpdater, recorder eventRecorder, globalConfigRepo GlobalConfigRepository) (*maintenanceModeUpdater, error)

NewMaintenanceModeUpdater creates a new maintenance mode updater.

func NewSelfsignedCertificateUpdater

func NewSelfsignedCertificateUpdater(namespace string, globalConfigRepo GlobalConfigRepository, secretClient secretClient) *selfsignedCertificateUpdater

NewSelfsignedCertificateUpdater creates a new updater.

func NewServiceReconciler

func NewServiceReconciler(client client.Client, ingressUpdater IngressUpdater, exposedPortUpdater ExposedPortUpdater, networkPolicyUpdater NetworkPolicyUpdater, networkPoliciesEnabled bool) *serviceReconciler

NewServiceReconciler creates a new service reconciler.

func NewWarpMenuCreator

func NewWarpMenuCreator(client client.Client, doguVersionRegistry warp.DoguVersionRegistry, localDoguRepo warp.LocalDoguRepo, namespace string, recorder eventRecorder, globalConfig warp.GlobalConfigRepository) *warpMenuCreator

NewWarpMenuCreator initialises a creator object to start the warp menu creation

Types

type AlternativeFQDNRedirector added in v2.2.0

type AlternativeFQDNRedirector interface {
	RedirectAlternativeFQDN(ctx context.Context, namespace string, redirectObjectName string, fqdn string, altFQDNList []types.AlternativeFQDN, setOwner func(targetObject metav1.Object) error) error
}

type ExposedPortUpdater

type ExposedPortUpdater interface {
	UpsertCesLoadbalancerService(ctx context.Context, service *corev1.Service) error
	RemoveExposedPorts(ctx context.Context, serviceName string) error
}

type IngressController added in v2.2.0

type IngressController interface {
	GetName() string
	GetControllerSpec() string
	GetRewriteAnnotationKey() string
	GetAdditionalConfigurationKey() string
	GetUseRegexKey() string
	GetProxyBodySizeKey() string

	AlternativeFQDNRedirector
	// contains filtered or unexported methods
}

type IngressUpdater

type IngressUpdater interface {
	// UpsertIngressForService creates or updates the ingress object of the given service.
	UpsertIngressForService(ctx context.Context, service *corev1.Service) error
}

IngressUpdater is responsible to create and update the actual ingress objects in the cluster.

type NetworkPolicyUpdater

type NetworkPolicyUpdater interface {
	UpsertNetworkPoliciesForService(ctx context.Context, service *corev1.Service) error
	RemoveExposedPorts(ctx context.Context, serviceName string) error
	RemoveNetworkPolicy(ctx context.Context) error
}

type RedirectReconciler added in v2.2.0

type RedirectReconciler struct {
	Client             client.Client
	GlobalConfigGetter GlobalConfigRepository
	Redirector         AlternativeFQDNRedirector
}

RedirectReconciler is responsible for reconciling the global configmap and to create a corresponding ingress object for redirecting alternative FQDNs to the primary FQDN.

func (*RedirectReconciler) Reconcile added in v2.2.0

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

Reconcile reconciles the global configmap and triggers the AlternativeFQDNRedirector to redirect the alternative FQDNs.

func (*RedirectReconciler) SetupWithManager added in v2.2.0

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

SetupWithManager sets up the global configmap controller with the Manager. The controller watches for changes to the global configmap and also reconciles when the redirect ingress object changes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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