func isSupportedRootDeviceType()

in pkg/selector/comparators.go [142:158]


func isSupportedRootDeviceType(instanceTypeValue []ec2types.RootDeviceType, target *ec2types.RootDeviceType) 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
}