in pkg/selector/comparators.go [92:109]
func isSupportedArchitectureType(instanceTypeValue []ec2types.ArchitectureType, target *ec2types.ArchitectureType) 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
}