Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make desired resources map values pointers to struct
This makes it possible to mutate struct values while iterating over the map of composed resources. I found myself naturally wanting to do this while writing a Function. e.g.: desired, _ = request.GetDesiredComposedResources(req) for _, dr := range desired { dr.Ready = resource.ReadyTrue } _ = response.SetDesiredComposedResources(desired) I haven't made the same change for observed resources, since they're supposed to be read-only to a Function. Signed-off-by: Nic Cope <nicc@rk0n.org>
- Loading branch information