Help us shape the future of Go! Take the 2026 Go Developer Survey

haptic

command
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 94 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)
  • Webhook HTTPS port: WEBHOOK_PORT env var (default 9443)
  • Debug HTTP port: --debug-port flag or DEBUG_PORT env var (default 0 = disabled)
  • Metrics HTTP port: METRICS_PORT env var (default 9090; 0 disables)
  • 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