rename function

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
This commit is contained in:
Mikkel Oscar Lyderik Larsen 2021-08-20 09:22:06 +02:00
parent 6b0afe5180
commit a08860d06c
No known key found for this signature in database
GPG Key ID: 50AD98B2A0D8D4EF

View File

@ -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
}