Skip to content

Commit d982f5c

Browse files
authored
Merge pull request #2835 from jdn5126/main
Upgrade ginkgo version; address go fmt
2 parents dbe13b1 + aada8a5 commit d982f5c

File tree

9 files changed

+33
-33
lines changed

9 files changed

+33
-33
lines changed

controllers/ingress/eventhandlers/ingress_class_params_events.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ func (h *enqueueRequestsForIngressClassParamsEvent) Generic(e event.GenericEvent
6363
// we don't have any generic event for secrets.
6464
}
6565

66-
//
6766
func (h *enqueueRequestsForIngressClassParamsEvent) enqueueImpactedIngressClasses(ingClassParams *elbv2api.IngressClassParams) {
6867
ingClassList := &networking.IngressClassList{}
6968
if err := h.k8sClient.List(context.Background(), ingClassList,

go.mod

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ require (
77
github.com/gavv/httpexpect/v2 v2.3.1
88
github.com/go-logr/logr v0.4.0
99
github.com/golang/mock v1.6.0
10-
github.com/google/go-cmp v0.5.6
11-
github.com/onsi/ginkgo/v2 v2.1.4
12-
github.com/onsi/gomega v1.19.0
10+
github.com/google/go-cmp v0.5.8
11+
github.com/onsi/ginkgo/v2 v2.3.1
12+
github.com/onsi/gomega v1.22.0
1313
github.com/pkg/errors v0.9.1
1414
github.com/prometheus/client_golang v1.11.0
1515
github.com/spf13/pflag v1.0.5
@@ -140,17 +140,16 @@ require (
140140
go4.org/intern v0.0.0-20211027215823-ae77deb06f29 // indirect
141141
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 // indirect
142142
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
143-
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
143+
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
144144
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
145-
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
146-
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8 // indirect
145+
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
146+
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
147147
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
148148
golang.org/x/text v0.3.7 // indirect
149-
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
150149
google.golang.org/appengine v1.6.7 // indirect
151150
google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a // indirect
152151
google.golang.org/grpc v1.27.1 // indirect
153-
google.golang.org/protobuf v1.26.0 // indirect
152+
google.golang.org/protobuf v1.28.0 // indirect
154153
gopkg.in/gorp.v1 v1.7.2 // indirect
155154
gopkg.in/inf.v0 v0.9.1 // indirect
156155
gopkg.in/yaml.v2 v2.4.0 // indirect

go.sum

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
378378
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
379379
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
380380
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
381-
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
382-
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
381+
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
382+
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
383383
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
384384
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
385385
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
@@ -614,16 +614,16 @@ github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+
614614
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
615615
github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc=
616616
github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0=
617-
github.com/onsi/ginkgo/v2 v2.1.4 h1:GNapqRSid3zijZ9H77KrgVG4/8KqiyRsxcSxe+7ApXY=
618-
github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU=
617+
github.com/onsi/ginkgo/v2 v2.3.1 h1:8SbseP7qM32WcvE6VaN6vfXxv698izmsJ1UQX9ve7T8=
618+
github.com/onsi/ginkgo/v2 v2.3.1/go.mod h1:Sv4yQXwG5VmF7tm3Q5Z+RWUpPo24LF1mpnz2crUb8Ys=
619619
github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
620620
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
621621
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
622622
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
623623
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
624624
github.com/onsi/gomega v1.15.0/go.mod h1:cIuvLEne0aoVhAgh/O6ac0Op8WWw9H6eYCriF+tEHG0=
625-
github.com/onsi/gomega v1.19.0 h1:4ieX6qQjPP/BfC3mpsAtIGGlxTWPeA3Inl/7DtXw1tw=
626-
github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro=
625+
github.com/onsi/gomega v1.22.0 h1:AIg2/OntwkBiCg5Tt1ayyiF1ArFrWFoCSMtMi/wdApk=
626+
github.com/onsi/gomega v1.22.0/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc=
627627
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk=
628628
github.com/opencontainers/go-digest v0.0.0-20170106003457-a6d0ee40d420/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
629629
github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
@@ -957,8 +957,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
957957
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
958958
golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
959959
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
960-
golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3KG69V2UGQWPBxujDmc=
961-
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
960+
golang.org/x/net v0.0.0-20220722155237-a158d28d115b h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0=
961+
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
962962
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
963963
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
964964
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -973,8 +973,9 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
973973
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
974974
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
975975
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
976-
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
977976
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
977+
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw=
978+
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
978979
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 h1:JWgyZ1qgdTaF3N3oxC+MdTV7qvEEgHo3otj+HB5CM7Q=
979980
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
980981
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
@@ -1048,11 +1049,10 @@ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4f
10481049
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
10491050
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
10501051
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
1051-
golang.org/x/tools v0.1.10 h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20=
1052+
golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
10521053
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
10531054
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
10541055
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
1055-
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
10561056
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
10571057
gomodules.xyz/jsonpatch/v2 v2.2.0 h1:4pT439QV83L+G9FkcCriY6EkpcK6r6bK+A5FBUMI7qY=
10581058
gomodules.xyz/jsonpatch/v2 v2.2.0/go.mod h1:WXp+iVDkoLQqPudfQ9GBlwB2eZ5DKOnjQZCYdOS8GPY=
@@ -1125,8 +1125,9 @@ google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpAD
11251125
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
11261126
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
11271127
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
1128-
google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
11291128
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
1129+
google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=
1130+
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
11301131
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
11311132
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
11321133
gopkg.in/check.v1 v1.0.0-20141024133853-64131543e789/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

pkg/equality/ingore_left_hand_unset.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
// IgnoreLeftHandUnset is an option that ignores struct fields that are unset on the left hand side of a comparison.
1010
// Note:
11-
// 1. for map and slices, only nil value is considered to be unset, non-nil but empty is not considered as unset.
12-
// 2. for struct pointers, nil value is considered to be unset
11+
// 1. for map and slices, only nil value is considered to be unset, non-nil but empty is not considered as unset.
12+
// 2. for struct pointers, nil value is considered to be unset
1313
func IgnoreLeftHandUnset(typ interface{}, fields ...string) cmp.Option {
1414
t := reflect.TypeOf(typ)
1515
fieldsSet := sets.NewString(fields...)

pkg/ingress/group.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ type GroupID types.NamespacedName
1313

1414
// IsExplicit tests whether this is an explicit group.
1515
// Explicit groups are defined by either:
16-
// * annotation on Ingress: `group.name`
17-
// * field on associated IngressClassParams: `group.name`
16+
// - annotation on Ingress: `group.name`
17+
// - field on associated IngressClassParams: `group.name`
1818
func (groupID GroupID) IsExplicit() bool {
1919
return groupID.Namespace == ""
2020
}

pkg/ingress/model_build_tags.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ func (t *defaultModelBuildTask) buildIngressResourceTags(ing ClassifiedIngress)
4949

5050
// buildIngressBackendResourceTags builds the AWS Tags used for a single Ingress and Backend. e.g. TargetGroup.
5151
// Note: the Tags specified via IngressClass takes higher priority than tags specified via annotation on Ingress or Service.
52-
// the target group will have the merged tags specified by the annotations of both Ingress and Service
53-
// the Tags annotation of Service takes higher priority if there is conflict between the tags of Ingress and Service
52+
//
53+
// the target group will have the merged tags specified by the annotations of both Ingress and Service
54+
// the Tags annotation of Service takes higher priority if there is conflict between the tags of Ingress and Service
5455
func (t *defaultModelBuildTask) buildIngressBackendResourceTags(ing ClassifiedIngress, backend *corev1.Service) (map[string]string, error) {
5556
var backendAnnotationTags map[string]string
5657
var ingressAnnotationTags map[string]string

pkg/ingress/rule_optimizer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ var _ RuleOptimizer = &defaultRuleOptimizer{}
3636
// also, we omit additional rules after the redirect rule on the HTTP listener to reduce elbv2 rule usage.
3737
//
3838
// The semantic of this rule optimizer is intended to be generic while supports above use case.
39-
// * It will omit any redirect rules that would result in a infinite redirect loop.
40-
// * it will omit any rules that take priority by a redirect rule with a super set of conditions
41-
// (ideally this could applies to other action type as well, but we only consider redirect action for now)
39+
// - It will omit any redirect rules that would result in a infinite redirect loop.
40+
// - it will omit any rules that take priority by a redirect rule with a super set of conditions
41+
// (ideally this could applies to other action type as well, but we only consider redirect action for now)
4242
type defaultRuleOptimizer struct {
4343
logger logr.Logger
4444
}

pkg/k8s/pod_info_repo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type PodInfoRepo interface {
3030

3131
// NewDefaultPodInfoRepo constructs new defaultPodInfoRepo.
3232
// * watchNamespace is the namespace to monitor pod spec.
33-
// * if watchNamespace is "", this repo monitors pods in all namespaces
34-
// * if watchNamespace is not "", this repo monitors pods in specific namespace
33+
// - if watchNamespace is "", this repo monitors pods in all namespaces
34+
// - if watchNamespace is not "", this repo monitors pods in specific namespace
3535
func NewDefaultPodInfoRepo(getter cache.Getter, watchNamespace string, logger logr.Logger) *defaultPodInfoRepo {
3636
store := NewConversionStore(podInfoConversionFunc, podInfoKeyFunc)
3737
lw := cache.NewListWatchFromClient(getter, resourceTypePods, watchNamespace, fields.Everything())

webhooks/elbv2/targetgroupbinding_validator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (v *targetGroupBindingValidator) checkExistingTargetGroups(tgb *elbv2api.Ta
128128
return nil
129129
}
130130

131-
//checkNodeSelector ensures that NodeSelector is only set when TargetType is ip
131+
// checkNodeSelector ensures that NodeSelector is only set when TargetType is ip
132132
func (v *targetGroupBindingValidator) checkNodeSelector(tgb *elbv2api.TargetGroupBinding) error {
133133
if (*tgb.Spec.TargetType == elbv2api.TargetTypeIP) && (tgb.Spec.NodeSelector != nil) {
134134
return errors.Errorf("TargetGroupBinding cannot set NodeSelector when TargetType is ip")

0 commit comments

Comments
 (0)