From 7605f847a05a129df85038a0a3dec6474de11fdf Mon Sep 17 00:00:00 2001 From: Dmitriy Kalinin Date: Wed, 26 Feb 2020 15:21:29 -0500 Subject: [PATCH] remove requirement for templates to have at least one associated rule --- pkg/kapp/diff/template_resource.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/kapp/diff/template_resource.go b/pkg/kapp/diff/template_resource.go index 4ca042d74..370891ca0 100644 --- a/pkg/kapp/diff/template_resource.go +++ b/pkg/kapp/diff/template_resource.go @@ -150,9 +150,5 @@ func (d TemplateResource) matchingRules() ([]ctlconf.TemplateRule, error) { } } - if len(result) == 0 { - return nil, fmt.Errorf("Expected to find at least one template rule") - } - return result, nil }