From 0c3e558134a3a07440dbb10eb2039c9ad6265d1e Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 27 Aug 2019 11:33:04 +0200 Subject: [PATCH] We must handle every profile field type This would have caught #1688 Signed-off-by: David Gageot --- pkg/skaffold/schema/profiles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/skaffold/schema/profiles.go b/pkg/skaffold/schema/profiles.go index d8e7e302645..55c4f171aa7 100644 --- a/pkg/skaffold/schema/profiles.go +++ b/pkg/skaffold/schema/profiles.go @@ -292,7 +292,7 @@ func overlayProfileField(fieldName string, config interface{}, profile interface } return v.Interface() default: - logrus.Warnf("Type mismatch in profile overlay for field '%s' with type %s; falling back to original config values", fieldName, v.Kind()) + logrus.Fatalf("Type mismatch in profile overlay for field '%s' with type %s; falling back to original config values", fieldName, v.Kind()) return config } }