//mandatoryGVSatisfied Check if the mandatory GVs for a controller are not missing.
mandatoryGVSatisfied Check if the mandatory GVs for a controller are not missing.
// mandatoryGVSatisfied Check if the mandatory GVs for a controller are not missing .
func mandatoryGVSatisfied(a addToManager, missingGVS []schema.GroupVersion) bool {
	if a.MandatoryGroupVersions == nil ||
		len(a.MandatoryGroupVersions) == 0 {
		return true
	}
	for _, mandatoryGV := range a.MandatoryGroupVersions {
		for _, missingGV := range missingGVS {
			if reflect.DeepEqual(mandatoryGV, missingGV) {
				return false
			}
		}
	}
	return true
}
func mandatoryGVSatisfied ( a addToManager , missingGVS [ ] schema . GroupVersion ) bool { if a . MandatoryGroupVersions == nil || len ( a . MandatoryGroupVersions ) == 0 { return true } for _ , mandatoryGV := range a . MandatoryGroupVersions { for _ , missingGV := range missingGVS { if reflect . DeepEqual ( mandatoryGV , missingGV ) { return false } } } return true }
mandatoryGVSatisfied Check if the mandatory GVs for a controller are not missing.
mandatoryGVSatisfied Check if the mandatory GVs for a controller are not missing .