Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev (unknown)"
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
CertsDir string `envconfig:"CERTS_DIR" required:"true" desc:"Directory where the webhook TLS certificate is stored"`
RequireAdGroups bool `envconfig:"REQUIRE_AD_GROUPS" default:"false" desc:"Require AD groups for authentication"`
RequireConfigurationItem bool `envconfig:"REQUIRE_CONFIGURATION_ITEM" default:"false" desc:"Require configuration item for authentication"`
LogLevel string `envconfig:"LOG_LEVEL" default:"info" desc:"Log level for the application. Possible values: debug, info, warn, error, fatal"`
LogPrettyPrint bool `` /* 143-byte string literal not displayed */
Port int `envconfig:"PORT" default:"9443" desc:"The address the health endpoint binds to"`
MetricsPort int `envconfig:"METRICS_PORT" default:"9000" desc:"The address the metric endpoint binds to."`
HealthPort int `envconfig:"HEALTH_PORT" default:"9440" desc:"The address the health endpoint binds to"`
SecretName string `envconfig:"SECRET_NAME" default:"radix-webhook-certs" desc:"Name of the secret where the webhook TLS certificate is stored"`
SecretNamespace string `envconfig:"SECRET_NAMESPACE" default:"default" desc:"Namespace of the secret where the webhook TLS certificate is stored"`
DisableCertRotation bool `envconfig:"DISABLE_CERT_ROTATION" default:"false" desc:"Disable automatic certificate rotation"`
CaName string `envconfig:"CA_NAME" default:"radix-webhook-ca" desc:"Name of the CA secret"`
CaOrganization string `envconfig:"CA_ORGANIZATION" default:"Radix Webhook CA" desc:"Organization of the CA"`
DnsName string `envconfig:"DNS_NAME" default:"radix-webhook.default.svc" desc:"DNS name of the webhook service"`
ExtraDnsNames []string `envconfig:"EXTRA_DNS_NAMES" default:"" desc:"Additional DNS names for the webhook service, separated by commas"`
WebhookConfigurationName string `envconfig:"WEBHOOK_CONFIGURATION_NAME" default:"radix-webhook-configuration" desc:"Name of the webhook service"`
ReservedDNSAliases []string `` /* 152-byte string literal not displayed */
ReservedDNSAppAliases map[string]string `` /* 198-byte string literal not displayed */
}
func MustParseConfig ¶
func MustParseConfig() Config
Click to show internal directories.
Click to hide internal directories.