diff --git a/controllers/nginx/pkg/cmd/controller/nginx.go b/controllers/nginx/pkg/cmd/controller/nginx.go index 9d12f3b089..3f02756522 100644 --- a/controllers/nginx/pkg/cmd/controller/nginx.go +++ b/controllers/nginx/pkg/cmd/controller/nginx.go @@ -223,6 +223,7 @@ func (n NGINXController) isReloadRequired(data []byte) bool { glog.Infof("NGINX configuration diff\n") glog.Infof("%v", string(diffOutput)) } + os.Remove(tmpfile.Name()) return len(diffOutput) > 0 } return false