Allow expanded DNS configuration

Signed-off-by: Gunju Kim <gjkim042@gmail.com>
This commit is contained in:
Gunju Kim
2021-08-13 10:34:18 +09:00
parent d0be7b90f1
commit 1224060f89
3 changed files with 8 additions and 9 deletions

View File

@@ -275,10 +275,6 @@ func (c *criService) setupSandboxFiles(id string, config *runtime.PodSandboxConf
func parseDNSOptions(servers, searches, options []string) (string, error) {
resolvContent := ""
if len(searches) > maxDNSSearches {
return "", errors.Errorf("DNSOption.Searches has more than %d domains", maxDNSSearches)
}
if len(searches) > 0 {
resolvContent += fmt.Sprintf("search %s\n", strings.Join(searches, " "))
}