Module constants

Module constants 

Source
Expand description

Global constants for the Bindy operator.

This module contains all numeric and string constants used throughout the codebase. Constants are organized by category for easy maintenance.

Constantsยง

ANNOTATION_RNDC_CREATED_AT
Annotation key for RNDC key creation timestamp (ISO 8601 format)
ANNOTATION_RNDC_ROTATED_AT
Annotation key for tracking pod restarts after RNDC rotation
ANNOTATION_RNDC_ROTATE_AT
Annotation key for RNDC key rotation timestamp (ISO 8601 format)
ANNOTATION_RNDC_ROTATION_COUNT
Annotation key for RNDC key rotation count
ANNOTATION_ZONE_OWNER
Annotation key for marking which zone owns a DNS record
ANNOTATION_ZONE_PREVIOUS_OWNER
Annotation key for marking which zone previously owned a record
API_GROUP
API group for all Bindy DNS CRDs
API_GROUP_VERSION
Fully qualified API version (group/version)
API_VERSION
API version for all Bindy DNS CRDs
BIND9_MALLOC_CONF
MALLOC_CONF environment variable value for BIND9 containers
BIND9_NONROOT_UID
UID for running BIND9 and bindcar containers as non-root
BIND9_SERVICE_ACCOUNT
ServiceAccount name for BIND9 pods
BINDCAR_API_PORT
Default bindcar HTTP API container port
BINDCAR_SERVICE_PORT
Default bindcar HTTP API service port (exposed via Kubernetes Service)
CONTAINER_NAME_BIND9
Name of the BIND9 container in the pod
CONTAINER_NAME_BINDCAR
Name of the bindcar API sidecar container in the pod
DEFAULT_BIND9_VERSION
Default BIND9 version tag
DEFAULT_BINDCAR_IMAGE
Default bindcar sidecar container image
DEFAULT_DNS_RECORD_TTL_SECS
Default TTL for DNS records (5 minutes)
DEFAULT_LEASE_DURATION_SECS
Default leader election lease duration (15 seconds)
DEFAULT_LEASE_RENEW_DEADLINE_SECS
Default leader election renew deadline (10 seconds)
DEFAULT_LEASE_RETRY_PERIOD_SECS
Default leader election retry period (2 seconds)
DEFAULT_ROTATION_INTERVAL
Default rotation interval (720 hours = 30 days)
DEFAULT_SOA_EXPIRE_SECS
Default SOA expire time (7 days)
DEFAULT_SOA_NEGATIVE_TTL_SECS
Default SOA negative TTL (1 day)
DEFAULT_SOA_REFRESH_SECS
Default SOA refresh interval (1 hour)
DEFAULT_SOA_RETRY_SECS
Default SOA retry interval (10 minutes)
DEFAULT_ZONE_TTL_SECS
Default TTL for zone files (1 hour)
DNS_CONTAINER_PORT
DNS container port (non-privileged port for non-root execution)
DNS_PORT
Standard DNS service port exposed externally
ERROR_REQUEUE_DURATION_SECS
Requeue duration for controller errors (30 seconds)
KIND_AAAA_RECORD
Kind name for AAAARecord resource
KIND_A_RECORD
Kind name for ARecord resource
KIND_BIND9_CLUSTER
Kind name for Bind9Cluster resource
KIND_BIND9_INSTANCE
Kind name for Bind9Instance resource
KIND_CAA_RECORD
Kind name for CAARecord resource
KIND_CLUSTER_BIND9_PROVIDER
Kind name for ClusterBind9Provider resource
KIND_CNAME_RECORD
Kind name for CNAMERecord resource
KIND_DNS_ZONE
Kind name for DNSZone resource
KIND_MX_RECORD
Kind name for MXRecord resource
KIND_NS_RECORD
Kind name for NSRecord resource
KIND_SRV_RECORD
Kind name for SRVRecord resource
KIND_TXT_RECORD
Kind name for TXTRecord resource
KUBE_CLIENT_BURST
Kubernetes API client burst size (max concurrent requests)
KUBE_CLIENT_QPS
Kubernetes API client queries per second (sustained rate)
KUBE_LIST_PAGE_SIZE
Page size for Kubernetes API list operations
LIVENESS_FAILURE_THRESHOLD
Liveness probe failure threshold
LIVENESS_INITIAL_DELAY_SECS
Liveness probe initial delay (wait for BIND9 to start)
LIVENESS_PERIOD_SECS
Liveness probe period (how often to check)
LIVENESS_TIMEOUT_SECS
Liveness probe timeout
MAX_ROTATION_INTERVAL_HOURS
Maximum rotation interval in hours (8760 hours = 365 days = 1 year)
MAX_TEST_REPLICAS
Maximum reasonable number of replicas for testing
METRICS_SERVER_BIND_ADDRESS
Bind address for metrics HTTP server
METRICS_SERVER_PATH
Path for Prometheus metrics endpoint
METRICS_SERVER_PORT
Port for Prometheus metrics HTTP server
MIN_ROTATION_INTERVAL_HOURS
Minimum rotation interval in hours (1 hour)
MIN_TEST_REPLICAS
Minimum number of replicas for testing
MIN_TIME_BETWEEN_ROTATIONS_HOURS
Minimum time between rotations in hours (1 hour)
READINESS_FAILURE_THRESHOLD
Readiness probe failure threshold
READINESS_INITIAL_DELAY_SECS
Readiness probe initial delay
READINESS_PERIOD_SECS
Readiness probe period
READINESS_TIMEOUT_SECS
Readiness probe timeout
RNDC_PORT
Standard RNDC control port (non-privileged)
TOKIO_WORKER_THREADS
Number of worker threads for Tokio runtime
TSIG_FUDGE_TIME_SECS
TSIG fudge time in seconds (allows for clock skew)