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 // CASecretNamespace is the namespace that the // cert-manager-approver-policy-tls Secret is stored. CASecretNamespace string }
Webhook holds options specific to running the approver-policy Webhook service.
Click to show internal directories.
Click to hide internal directories.