We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b30155 commit c9ca86cCopy full SHA for c9ca86c
pkg/ingress/config_types.go
@@ -1,6 +1,7 @@
1
package ingress
2
3
import (
4
+ "github.com/aws/aws-sdk-go-v2/aws"
5
"github.com/aws/aws-sdk-go/service/elbv2"
6
"github.com/pkg/errors"
7
"k8s.io/apimachinery/pkg/util/intstr"
@@ -89,8 +90,8 @@ func (t *TargetGroupTuple) validate() error {
89
90
return errors.New("missing servicePort")
91
}
92
- if (t.Weight != nil) && (*(t.Weight) < 0 || *(t.Weight) > 999) {
93
- return errors.New("The weight for each target group must be between 0 and 999, inclusive")
+ if aws.Int64Value(t.Weight) < 0 || aws.Int64Value(t.Weight) > 999 {
94
+ return errors.New("weight value not between 0 and 999, inclusive")
95
96
return nil
97
0 commit comments