in pkg/selector/comparators.go [73:90]
func isSupportedUsageClassType(instanceTypeValue []ec2types.UsageClassType, target *ec2types.UsageClassType) 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
}