in pkg/selector/comparators.go [111:127]
func isSupportedVirtualizationType(instanceTypeValue []ec2types.VirtualizationType, target *ec2types.VirtualizationType) bool {
if target == nil {
return true
}
if instanceTypeValue == nil {
return false
}
if reflect.ValueOf(*target).IsZero() {
return true
}
for _, potentialType := range instanceTypeValue {
if strings.EqualFold(string(potentialType), string(*target)) {
return true
}
}
return false
}