INNER CODE UNIT · Go
vpaSpec
streamnative/function-mesh · controllers/common.go:108
if vpaSpec == nil { // VPA is deleted, delete the status
delete(conditions, v1alpha1.VPA)
return nil
}
condition.Status = metav1.ConditionFalse
condition.Action = v1alpha1.Create
conditions[v1alpha1.VPA] = condition
return nil
}
return err
}
// old VPA exists while new Spec removes it, delete the old one
if vpaSpec == nil {
condition.Status = metav1.ConditionFalse
condition.Action = v1alpha1.Delete
conditions[v1alpha1.VPA] = condition
return nil