Add some utilities.

This commit is contained in:
jregan
2019-06-12 18:56:58 -07:00
parent ba49fd4c18
commit 755dd3d024
5 changed files with 96 additions and 49 deletions

View File

@@ -80,6 +80,10 @@ func (r *Resource) copyRefVarNames() []string {
return s
}
func (r *Resource) InSameFuzzyNamespace(o *Resource) bool {
return r.GetNamespace() == o.GetNamespace()
}
func (r *Resource) KunstructEqual(o *Resource) bool {
return reflect.DeepEqual(r.Kunstructured, o.Kunstructured)
}