Corrects the --dns01-check-retry-period flag description

Signed-off-by: irbekrm <irbekrm@gmail.com>
This commit is contained in:
irbekrm 2022-06-09 12:09:39 +01:00
parent d0255b9314
commit 75b205021d

View File

@ -111,6 +111,9 @@ type ControllerOptions struct {
// EnablePprof determines whether pprof should be enabled.
EnablePprof bool
// DNSO1CheckRetryPeriod is the period of time after which to check if
// challenge URL can be reached by cert-manager controller. This is used
// for both DNS-01 and HTTP-01 challenges.
DNS01CheckRetryPeriod time.Duration
// Annotations copied Certificate -> CertificateRequest,
@ -142,6 +145,7 @@ const (
defaultPrometheusMetricsServerAddress = "0.0.0.0:9402"
// default time period to wait between checking DNS01 and HTTP01 challenge propagation
defaultDNS01CheckRetryPeriod = 10 * time.Second
)
@ -347,7 +351,7 @@ func (s *ControllerOptions) AddFlags(fs *pflag.FlagSet) {
fs.IntVar(&s.MaxConcurrentChallenges, "max-concurrent-challenges", defaultMaxConcurrentChallenges, ""+
"The maximum number of challenges that can be scheduled as 'processing' at once.")
fs.DurationVar(&s.DNS01CheckRetryPeriod, "dns01-check-retry-period", defaultDNS01CheckRetryPeriod, ""+
"The duration the controller should wait between checking if a ACME dns entry exists."+
"The duration the controller should wait between a propagation check. Despite the name, this flag is used to configure the wait period for both DNS01 and HTTP01 challenge propagation checks. For DNS01 challenges the propagation check verifies that a TXT record with the challenge token has been created. For HTTP01 challenges the propagation check verifies that the challenge token is served at the challenge URL."+
"This should be a valid duration string, for example 180s or 1h")
fs.StringVar(&s.MetricsListenAddress, "metrics-listen-address", defaultPrometheusMetricsServerAddress, ""+