 Documentation
      ¶
      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
	// CertDir is the directory where the Webhook's TLS certificate and key are
	// stored with the names `tls.crt` and `tls.key` respectively.
	CertDir 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.