Documentation
¶
Overview ¶
Package operator is the KNXVault Kubernetes operator runtime.
Entry point: Run() in manager.go (cmd/operator). Controllers reconcile KNXVaultCA, Issuer/ClusterIssuer, Certificate, CertificateRequest, and optional Ingress annotations so clusters can use vault PKI without cert-manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
VaultAddr string
VaultToken string
K8sRole string
SATokenPath string
MetricsAddr string
ProbeAddr string
IngressShim bool
GatewayShim bool
// ACMEHTTP01Addr when set serves /.well-known/acme-challenge/ for HTTP-01.
ACMEHTTP01Addr string
LeaderElect bool
LeaderElectID string
LeaderElectNS string
// ACMEEnabled when false rejects ACME issuer types (M-DTP-2 / W90-22).
// Env: KNXVAULT_OPERATOR_ACME_ENABLED (default false — private-only).
ACMEEnabled bool
}
Config holds operator runtime configuration.
func ConfigFromEnv ¶
func ConfigFromEnv() Config
ConfigFromEnv loads configuration from environment.
Directories
¶
| Path | Synopsis |
|---|---|
|
apis
|
|
|
v1alpha1
Package v1alpha1 defines KNXVault operator CRD API types.
|
Package v1alpha1 defines KNXVault operator CRD API types. |
|
Package certlogic holds pure certificate decision helpers (no k8s client).
|
Package certlogic holds pure certificate decision helpers (no k8s client). |
|
Package cmcompat maps cert-manager-shaped Certificate/Issuer fields onto KNXVault CRDs for migration (drop-in YAML conversion without running cert-manager).
|
Package cmcompat maps cert-manager-shaped Certificate/Issuer fields onto KNXVault CRDs for migration (drop-in YAML conversion without running cert-manager). |
|
Package metrics exports Prometheus metrics for the operator.
|
Package metrics exports Prometheus metrics for the operator. |
|
Package reconcileutil provides reconcile result helpers (backoff + conditions taxonomy).
|
Package reconcileutil provides reconcile result helpers (backoff + conditions taxonomy). |
|
Package renew computes certificate renewal timing for the operator.
|
Package renew computes certificate renewal timing for the operator. |
|
Package secretutil builds kubernetes.io/tls Secrets for the operator.
|
Package secretutil builds kubernetes.io/tls Secrets for the operator. |
|
Package statusutil helps set Ready/Issuing conditions.
|
Package statusutil helps set Ready/Issuing conditions. |
|
Package vaultiface abstracts KNXVault API calls used by the operator.
|
Package vaultiface abstracts KNXVault API calls used by the operator. |
Click to show internal directories.
Click to hide internal directories.