controller

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg *Config) error

Types

type Config

type Config struct {
	AccountID        string
	TunnelID         string
	APIToken         string
	ClusterDomain    string
	GatewayClassName string
	ControllerName   string
	MetricsAddr      string
	HealthAddr       string

	// Cloudflared Helm deployment config
	TunnelToken       string
	CloudflaredNS     string
	CloudflaredProto  string
	AWGSecretName     string
	AWGInterfaceName  string
	ManageCloudflared bool
}

type GatewayReconciler

type GatewayReconciler struct {
	client.Client

	Scheme           *runtime.Scheme
	GatewayClassName string
	ControllerName   string
	TunnelID         string

	// Helm management
	HelmManager      *helm.Manager
	TunnelToken      string
	CloudflaredNS    string
	Protocol         string
	AWGSecretName    string
	AWGInterfaceName string
}

func (*GatewayReconciler) Reconcile

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

func (*GatewayReconciler) SetupWithManager

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

type HTTPRouteReconciler

type HTTPRouteReconciler struct {
	client.Client

	Scheme           *runtime.Scheme
	CFClient         *cloudflare.Client
	AccountID        string
	TunnelID         string
	ClusterDomain    string
	GatewayClassName string
	ControllerName   string
}

func (*HTTPRouteReconciler) Reconcile

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

func (*HTTPRouteReconciler) SetupWithManager

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

func (*HTTPRouteReconciler) Start

func (r *HTTPRouteReconciler) Start(ctx context.Context) error

Start implements manager.Runnable for startup sync.

Jump to

Keyboard shortcuts

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