Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// MetricsAddress is the TCP address for exposing HTTP Prometheus metrics
// which will be served on the HTTP path '/metrics'. The value "0" will
// disable exposing metrics.
MetricsAddress string
// LeaderElectionNamespace is the Namespace to lease the controller replica
// leadership election.
LeaderElectionNamespace string
// ReadyzAddress is the TCP address for exposing the HTTP readiness probe
// which will be served on the HTTP path '/readyz'.
ReadyzAddress string
// RestConfig is the shared base rest config to connect to the Kubernetes
// API.
RestConfig *rest.Config
// Webhook are options specific to the Kubernetes Webhook.
Webhook
// Logr is the shared base logger.
Logr logr.Logger
// contains filtered or unexported fields
}
Options are the main options for the approver-policy. Populated via processing command line flags.
type Webhook ¶
type Webhook struct {
// Host is the host that the Webhook will be served on.
Host string
// Port is the TCP port that the Webhook will be served on.
Port int
// ServiceName is the service that exposes the Webhook server.
ServiceName string
// CASecretName is the namespace that the approver-policy
// webhook CA certificate Secret is stored.
CASecretNamespace string
// CASecretName is the name of the Secret use to store
// the approver-policy webhook CA certificate.
CASecretName string
// CADuration for webhook server DynamicSource CA.
// DynamicSource is upstream cert-manager's CA Provider.
// Defaults to 1 year.
CADuration time.Duration
// LeafDuration for webhook server TLS certificates.
// Defaults to 7 days.
LeafDuration time.Duration
}
Webhook holds options specific to running the approver-policy Webhook service.
Click to show internal directories.
Click to hide internal directories.