From b112d1c045dcb8657da421bf844c5305be6e4612 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Fri, 21 Feb 2020 16:41:03 -0300 Subject: [PATCH] Check there is a difference in the template besides the checksum (#5151) --- internal/ingress/controller/nginx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ingress/controller/nginx.go b/internal/ingress/controller/nginx.go index 848f82ca6..0cc1bbe34 100644 --- a/internal/ingress/controller/nginx.go +++ b/internal/ingress/controller/nginx.go @@ -696,7 +696,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error { return err } - diffOutput, err := exec.Command("diff", "-u", cfgPath, tmpfile.Name()).CombinedOutput() + diffOutput, err := exec.Command("diff", "-I", "'# Configuration.*'", "-u", cfgPath, tmpfile.Name()).CombinedOutput() if err != nil { if exitError, ok := err.(*exec.ExitError); ok { ws := exitError.Sys().(syscall.WaitStatus)