Skip to content

Commit caa65f2

Browse files
committed
Resolve linter and vet errors in tests
Signed-off-by: GautamBytes <manchandanigautam@gmail.com>
1 parent a0d1d39 commit caa65f2

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

config/crd/bases/rollouts.kruise.io_rollouts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ spec:
383383
properties:
384384
classType:
385385
description: ClassType refers to the type of `Ingress`.
386-
current support nginx, aliyun-alb. default is
387-
nginx.
386+
current support nginx, aliyun-alb, aws-alb. default
387+
is nginx.
388388
type: string
389389
name:
390390
description: Name refers to the name of an `Ingress`

config/crd/bases/rollouts.kruise.io_trafficroutings.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,9 @@ spec:
9393
properties:
9494
classType:
9595
description: ClassType refers to the type of `Ingress`.
96-
current support nginx, aliyun-alb, aws-alb. default is nginx.
96+
current support nginx, aliyun-alb, aws-alb. default is
97+
nginx.
9798
type: string
98-
enum:
99-
- nginx
100-
- aliyun-alb
101-
- aws-alb
10299
name:
103100
description: Name refers to the name of an `Ingress` resource
104101
in the same namespace as the `Rollout`

pkg/trafficrouting/network/ingress/ingress_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ func TestEnsureRoutes(t *testing.T) {
733733
getRoutes: func() *v1beta1.CanaryStep {
734734
return &v1beta1.CanaryStep{
735735
TrafficRoutingStrategy: v1beta1.TrafficRoutingStrategy{
736-
Weight: utilpointer.Int32Ptr(0),
736+
Traffic: utilpointer.String("0"),
737737
Matches: []v1beta1.HttpRouteMatch{{
738738
Headers: []gatewayv1beta1.HTTPHeaderMatch{{
739739
Name: "user_id",

0 commit comments

Comments
 (0)