mirror of
https://github.com/zalando-incubator/kube-metrics-adapter.git
synced 2024-12-22 19:16:06 +00:00
Fix nil dereference panics
Signed-off-by: Arjun Naik <arjun.rn@gmail.com>
This commit is contained in:
parent
dfeae82cae
commit
14f13495af
@ -174,7 +174,7 @@ func ParseHPAMetrics(hpa *autoscalingv2.HorizontalPodAutoscaler) ([]*MetricConfi
|
||||
|
||||
// TODO: validate that the specified metric names are defined
|
||||
// in the HPA
|
||||
var parser annotations.AnnotationConfigMap
|
||||
parser := make(annotations.AnnotationConfigMap)
|
||||
err := parser.Parse(hpa.Annotations)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user