// UnstructuredTypesEqual compares two unstructured object.
UnstructuredTypesEqual compares two unstructured object.
// UnstructuredTypesEqual compares two unstructured object .
func UnstructuredTypesEqual(a, b *UnstructuredTypedObject) bool {
	if a == nil && b == nil {
		return true
	}
	if a == nil || b == nil {
		return false
	}
	if a.GetType() != b.GetType() {
		return false
	}
	rawA, err := a.GetRaw()
	if err != nil {
		return false
	}
	rawB, err := b.GetRaw()
	if err != nil {
		return false
	}
	return bytes.Equal(rawA, rawB)
}
func UnstructuredTypesEqual ( a , b * UnstructuredTypedObject ) bool { if a == nil && b == nil { return true } if a == nil || b == nil { return false } if a . GetType ( ) != b . GetType ( ) { return false } rawA , err := a . GetRaw ( ) if err != nil { return false } rawB , err := b . GetRaw ( ) if err != nil { return false } return bytes . Equal ( rawA , rawB ) }
UnstructuredTypesEqual compares two unstructured object.
UnstructuredTypesEqual compares two unstructured object .