Skip to content

Commit 6fc84cf

Browse files
committed
Fix DisableCoreDNSLog sed
1 parent ec65f6b commit 6fc84cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/minikube/node/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ func addCoreDNSEntry(runner command.Runner, name, ip string, cc config.ClusterCo
957957
}
958958

959959
if cc.DisableCoreDNSLog {
960-
sed = fmt.Sprintf("%s -e '/^ log$/d'", sed)
960+
sed = fmt.Sprintf("%s -e '/^ log *$/d'", sed)
961961
} else {
962962
// check if logging is already enabled (via log plugin) in coredns configmap, so not to duplicate it
963963
regex := regexp.MustCompile(`(?smU)^ *log *$`)

0 commit comments

Comments
 (0)