Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // Log is the logger used by the webhook tls provider. Log logr.Logger // RestConfig is the shared base rest config to connect to the Kubernetes // API. RestConfig *rest.Config // WebhookCertificatesDir is the directory that holds the certificate and key // (tls.crt, tls.key) which are used to server the Webhook server. The // TLS proivder waits for these files to become available before returning // from New(). WebhookCertificatesDir string // CASecretNamespace is the namespace that the // cert-manager-approver-policy-tls Secret is stored. CASecretNamespace string // ServiceName is the name of the service that exposes the webhook server. // This name will be used as the DNS SAN entry to the webhook's serving // certificate. ServiceName string }
Options hold options for the approver-policy Webhook TLS provider.
type TLS ¶
type TLS struct {
// contains filtered or unexported fields
}
TLS is a TLS provider which is used for populating a serving key and certificate for the webhook server.
func New ¶
New constructs a TLS provider. The provider will ensure that a certificate and key pair are available for serving the webhook.
func (*TLS) NeedLeaderElection ¶
All webhook TLS providers need to keep their respective key and certificate up-to-date, regardless of whether they are leader or not.
Click to show internal directories.
Click to hide internal directories.