controller

command
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package main provides the CLI entrypoint for the HAProxy template ingress controller.

The controller accepts configuration via CLI flags, environment variables, or defaults:

  • HAProxyTemplateConfig CRD name: --crd-name flag, CRD_NAME env var, or "haproxy-config" default
  • Secret name: --secret-name flag, SECRET_NAME env var, or "haproxy-credentials" default
  • Webhook cert directory: --webhook-cert-dir flag or WEBHOOK_CERT_DIR env var (directory holding tls.crt/tls.key; optional, empty disables the webhook)
  • Debug HTTP port: --debug-port flag or DEBUG_PORT env var (default 0 = disabled)
  • Kubeconfig: --kubeconfig flag (for out-of-cluster development)

The controller runs until receiving SIGTERM or SIGINT, at which point it performs graceful shutdown.

Jump to

Keyboard shortcuts

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