mirror of
https://github.com/zalando-incubator/kube-metrics-adapter.git
synced 2024-12-22 11:06:04 +00:00
rename function
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
This commit is contained in:
parent
6b0afe5180
commit
a08860d06c
@ -106,7 +106,7 @@ func getAnnotationWeight(backendWeights string, backend string) (float64, error)
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func getWeights(ingressAnnotations map[string]string, backendAnnotations []string, backend string) (float64, error) {
|
||||
func getIngressWeight(ingressAnnotations map[string]string, backendAnnotations []string, backend string) (float64, error) {
|
||||
maxWeight := 0.0
|
||||
annotationsPresent := false
|
||||
|
||||
@ -163,7 +163,7 @@ func (c *SkipperCollector) getCollector(ctx context.Context) (Collector, error)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
backendWeight, err = getWeights(ingress.Annotations, c.backendAnnotations, c.backend)
|
||||
backendWeight, err = getIngressWeight(ingress.Annotations, c.backendAnnotations, c.backend)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user