Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin: Fix nil deref on nil metrics (#909)
The autoscaler-agent <-> scheduler plugin protocol allows the autoscaler-agent to skip the metrics field if there aren't any, which typically occurs right after the VM is created. With the changes from #750, we assumed that .Metrics will always be non-nil, meaning that it panics when .Metrics *is* actually nil.
- Loading branch information