about summary refs log tree commit diff
path: root/templater/templater.go
diff options
context:
space:
mode:
Diffstat (limited to 'templater/templater.go')
-rw-r--r--templater/templater.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/templater/templater.go b/templater/templater.go
index 9054ebac4089..4d9a04eb2d16 100644
--- a/templater/templater.go
+++ b/templater/templater.go
@@ -163,6 +163,7 @@ func applyLimits(rs *[]context.ResourceSet, include *[]string, exclude *[]string
 // Check whether an include/exclude string slice matches a resource set
 func matchesResourceSet(s *[]string, rs *context.ResourceSet) bool {
 	for _, r := range *s {
+		r = strings.TrimSuffix(r, "/")
 		if r == rs.Name || r == rs.Parent {
 			return true
 		}