rfc2136: add config validation for batch size

This commit is contained in:
Jeffrey Egeland 2021-06-23 16:34:04 -04:00
parent 3c7813088a
commit fdbaef499a
No known key found for this signature in database
GPG Key ID: 2A854DC3623F5C36

View File

@ -96,6 +96,10 @@ func ValidateConfig(cfg *externaldns.Config) error {
return errors.New("--rfc2136-kerberos-realm, --rfc2136-kerberos-username, and --rfc2136-kerberos-password are required when specifying --rfc2136-gss-tsig option")
}
}
if cfg.RFC2136BatchChangeSize < 1 {
return errors.New("Batch Size specified for rfc2136 cannot be less than 1")
}
}
if cfg.IgnoreHostnameAnnotation && cfg.FQDNTemplate == "" {