Currently, inside UpdateNvmeController, AllowMissing is not used.
// fetch object from the database
ctrlr, ok := s.Nvme.Controllers[in.NvmeController.Name]
if !ok {
if in.AllowMissing {
log.Printf("TODO: in case of AllowMissing, create a new resource, don't return error")
}
err := status.Errorf(codes.NotFound, "unable to find key %s", in.NvmeController.Name)
return nil, err
}
If AllowMissing is set and if the NvmeController doesn't exist, it should make a new NvmeController.
I'm working on this issue.