From 873b74561cca66e6dbd1f4cf7a31e4694e3071dd Mon Sep 17 00:00:00 2001 From: kyanagimoto Date: Wed, 1 Sep 2021 19:17:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20trigger=20unexpected=20ca?= =?UTF-8?q?nary=20deployment.=20https://github.com/fluxcd/flagger/issues/9?= =?UTF-8?q?89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: kyanagimoto --- pkg/canary/config_tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/canary/config_tracker.go b/pkg/canary/config_tracker.go index 8a920340..ecd16a76 100644 --- a/pkg/canary/config_tracker.go +++ b/pkg/canary/config_tracker.go @@ -238,7 +238,7 @@ func (ct *ConfigTracker) GetTargetConfigs(cd *flaggerv1.Canary) (map[string]Conf func fieldIsMandatory(p *bool) bool { if p == nil { - return false + return true } return !*p }