Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct { // required Namespace string // required SecretName string // required ServiceName string // required CertDir string // required WebhookServerPort int DnsName string Organizations []string Hosts []string Webhooks []cert.WebhookInfo TimeoutForEnsureCertReady time.Duration TimeoutForCheckServerStarted time.Duration TimeoutForCheckServerCert time.Duration // contains filtered or unexported fields }
func (*Option) ValidateAndFillDefaultValues ¶
type WebhookHelper ¶
type WebhookHelper struct {
// contains filtered or unexported fields
}
func NewNewWebhookHelper ¶
func NewNewWebhookHelper(opt Option) (*WebhookHelper, error)
func NewNewWebhookHelperOrDie ¶
func NewNewWebhookHelperOrDie(opt Option) *WebhookHelper
func NewWebhookHelperOrDie ¶
func NewWebhookHelperOrDie(opt Option) *WebhookHelper
func (*WebhookHelper) EnsureCertReady ¶ added in v0.2.0
func (w *WebhookHelper) EnsureCertReady(ctx context.Context) error
EnsureCertReady ensure cert exist and mounted it will block util successes or failed
Click to show internal directories.
Click to hide internal directories.