Fix resource.Ref eq. check to properly handle wildcard paths

This commit is contained in:
Tomaž Jerman
2022-07-04 12:55:05 +02:00
committed by Denis Arh
parent 9f7e87f30e
commit 3643b7d23b
+8
View File
@@ -215,6 +215,14 @@ func (r *Ref) IsWildcard() bool {
}
func (a *Ref) equals(b *Ref) bool {
if a == nil && a == b {
return true
}
if a == nil && a != b {
return false
}
if a.ResourceType != b.ResourceType {
return false
}