diff --git a/generators/deepequal.go b/generators/deepequal.go index f86c0ed..4e0f8e2 100644 --- a/generators/deepequal.go +++ b/generators/deepequal.go @@ -311,17 +311,6 @@ func (g *genDeepEqual) Filter(c *generator.Context, t *types.Type) bool { return true } -func (g *genDeepEqual) copyableAndInBounds(t *types.Type) bool { - if !comparableType(t) { - return false - } - // Only packages within the restricted range can be processed. - if !isRootedUnder(t.Name.Package, g.boundingDirs) { - return false - } - return true -} - // deepEqualMethod returns the signature of a DeepEqual() method, nil or an error // if the type is wrong. DeepEqual allows more efficient deep copy // implementations to be defined by the type's author. The correct signature @@ -337,7 +326,7 @@ func deepEqualMethod(t *types.Type) (*types.Signature, error) { if len(f.Signature.Parameters) != 1 { return nil, fmt.Errorf("type %v: invalid DeepEqual signature, expected exactly one parameter", t) } - if len(f.Signature.Results) != 1 { + if len(f.Signature.Results) != 1 || f.Signature.Results[0].Name.Name != "bool" { return nil, fmt.Errorf("type %v: invalid DeepEqual signature, expected bool result type", t) } @@ -368,18 +357,6 @@ func deepEqualMethodOrDie(t *types.Type) *types.Signature { return ret } -func isRootedUnder(pkg string, roots []string) bool { - // Add trailing / to avoid false matches, e.g. foo/bar vs foo/barn. This - // assumes that bounding dirs do not have trailing slashes. - pkg = pkg + "/" - for _, root := range roots { - if strings.HasPrefix(pkg, root+"/") { - return true - } - } - return false -} - func comparableType(t *types.Type) bool { // If the type opts out of deepequal-generation, stop. ttag := extractEnabledTypeTag(t) @@ -687,6 +664,22 @@ func (g *genDeepEqual) doSlice(t *types.Type, sw *generator.SnippetWriter) { sw.Do("}\n", nil) } +func HasEqual(t *types.Type) (hasEqual, pointerParameter bool) { + method := t.Methods["Equal"] + if method == nil { + return + } + + signature := method.Signature + results := len(signature.Results) == 1 && signature.Results[0] == types.Bool + parameters := len(signature.Parameters) == 1 && signature.Parameters[0].Name == t.Name + hasEqual = results && parameters + if hasEqual { + pointerParameter = method.Signature.Parameters[0].Kind == types.Pointer + } + return +} + // IsAssignable returns whether the type is deep-assignable. For example, // slices and maps and pointers are shallow copies, but ints and strings are // complete. @@ -772,6 +765,12 @@ func (g *genDeepEqual) doStruct(t *types.Type, sw *generator.SnippetWriter) { case uft.Kind == types.Struct: if IsComparable(uft) { sw.Do("if in.$.name$ != other.$.name$ {\n", typeArgs) + } else if hasEqual, pointer := HasEqual(uft); hasEqual { + if pointer { + sw.Do("if !in.$.name$.Equal(&other.$.name$) {\n", typeArgs) + } else { + sw.Do("if !in.$.name$.Equal(other.$.name$) {\n", typeArgs) + } } else { sw.Do("if !in.$.name$.DeepEqual(&other.$.name$) {\n", typeArgs) } diff --git a/generators/deepequal_test.go b/generators/deepequal_test.go index a613e14..840a2ba 100644 --- a/generators/deepequal_test.go +++ b/generators/deepequal_test.go @@ -12,89 +12,6 @@ import ( "k8s.io/gengo/types" ) -func Test_isRootedUnder(t *testing.T) { - testCases := []struct { - path string - roots []string - expect bool - }{ - { - path: "/foo/bar", - roots: nil, - expect: false, - }, - { - path: "/foo/bar", - roots: []string{}, - expect: false, - }, - { - path: "/foo/bar", - roots: []string{ - "/bad", - }, - expect: false, - }, - { - path: "/foo/bar", - roots: []string{ - "/foo", - }, - expect: true, - }, - { - path: "/foo/bar", - roots: []string{ - "/bad", - "/foo", - }, - expect: true, - }, - { - path: "/foo/bar/qux/zorb", - roots: []string{ - "/foo/bar/qux", - }, - expect: true, - }, - { - path: "/foo/bar", - roots: []string{ - "/foo/bar", - }, - expect: true, - }, - { - path: "/foo/barn", - roots: []string{ - "/foo/bar", - }, - expect: false, - }, - { - path: "/foo/bar", - roots: []string{ - "/foo/barn", - }, - expect: false, - }, - { - path: "/foo/bar", - roots: []string{ - "", - }, - expect: true, - }, - } - - for i, tc := range testCases { - r := isRootedUnder(tc.path, tc.roots) - if r != tc.expect { - t.Errorf("case[%d]: expected %t, got %t for %q in %q", i, tc.expect, r, tc.path, tc.roots) - } - } -} - func Test_deepEqualMethod(t *testing.T) { testCases := []struct { typ types.Type @@ -105,7 +22,7 @@ func Test_deepEqualMethod(t *testing.T) { typ: types.Type{ Name: types.Name{Package: "pkgname", Name: "typename"}, Kind: types.Builtin, - // No DeepCopyInto method. + // No DeepEqual method. Methods: map[string]*types.Type{}, }, expect: false, @@ -115,7 +32,7 @@ func Test_deepEqualMethod(t *testing.T) { Name: types.Name{Package: "pkgname", Name: "typename"}, Kind: types.Builtin, Methods: map[string]*types.Type{ - // No DeepCopyInto method. + // No DeepEqual method. "method": { Name: types.Name{Package: "pkgname", Name: "func()"}, Kind: types.Func, @@ -138,7 +55,7 @@ func Test_deepEqualMethod(t *testing.T) { Kind: types.Builtin, Methods: map[string]*types.Type{ // Wrong signature (no parameter). - "DeepCopyInto": { + "DeepEqual": { Name: types.Name{Package: "pkgname", Name: "func()"}, Kind: types.Func, Signature: &types.Signature{ @@ -161,7 +78,7 @@ func Test_deepEqualMethod(t *testing.T) { Kind: types.Builtin, Methods: map[string]*types.Type{ // Wrong signature (unexpected result). - "DeepCopyInto": { + "DeepEqual": { Name: types.Name{Package: "pkgname", Name: "func(*pkgname.typename) int"}, Kind: types.Func, Signature: &types.Signature{ @@ -194,7 +111,7 @@ func Test_deepEqualMethod(t *testing.T) { Kind: types.Builtin, Methods: map[string]*types.Type{ // Wrong signature (non-pointer parameter, pointer receiver). - "DeepCopyInto": { + "DeepEqual": { Name: types.Name{Package: "pkgname", Name: "func(pkgname.typename)"}, Kind: types.Func, Signature: &types.Signature{ @@ -219,7 +136,7 @@ func Test_deepEqualMethod(t *testing.T) { Kind: types.Builtin, Methods: map[string]*types.Type{ // Wrong signature (non-pointer parameter, non-pointer receiver). - "DeepCopyInto": { + "DeepEqual": { Name: types.Name{Package: "pkgname", Name: "func(pkgname.typename)"}, Kind: types.Func, Signature: &types.Signature{ @@ -241,7 +158,7 @@ func Test_deepEqualMethod(t *testing.T) { Kind: types.Builtin, Methods: map[string]*types.Type{ // Correct signature with non-pointer receiver. - "DeepCopyInto": { + "DeepEqual": { Name: types.Name{Package: "pkgname", Name: "func(*pkgname.typename)"}, Kind: types.Func, Signature: &types.Signature{ @@ -252,7 +169,12 @@ func Test_deepEqualMethod(t *testing.T) { Elem: &types.Type{Kind: types.Struct, Name: types.Name{Package: "pkgname", Name: "typename"}}, }, }, - Results: []*types.Type{}, + Results: []*types.Type{ + { + Name: types.Name{Name: "bool"}, + Kind: types.Builtin, + }, + }, }, }, }, @@ -265,7 +187,7 @@ func Test_deepEqualMethod(t *testing.T) { Kind: types.Builtin, Methods: map[string]*types.Type{ // Correct signature with pointer receiver. - "DeepCopyInto": { + "DeepEqual": { Name: types.Name{Package: "pkgname", Name: "func(*pkgname.typename)"}, Kind: types.Func, Signature: &types.Signature{ @@ -279,7 +201,12 @@ func Test_deepEqualMethod(t *testing.T) { Elem: &types.Type{Kind: types.Struct, Name: types.Name{Package: "pkgname", Name: "typename"}}, }, }, - Results: []*types.Type{}, + Results: []*types.Type{ + { + Name: types.Name{Name: "bool"}, + Kind: types.Builtin, + }, + }, }, }, }, @@ -314,7 +241,7 @@ func Test_extractTagParams(t *testing.T) { { comments: []string{ "Human comment", - "+k8s:deepcopy-gen", + "+" + tagEnabledName, }, expect: &enabledTagValue{ value: "", @@ -324,7 +251,7 @@ func Test_extractTagParams(t *testing.T) { { comments: []string{ "Human comment", - "+k8s:deepcopy-gen=package", + "+" + tagEnabledName + "=package", }, expect: &enabledTagValue{ value: "package", @@ -334,7 +261,7 @@ func Test_extractTagParams(t *testing.T) { { comments: []string{ "Human comment", - "+k8s:deepcopy-gen=package,register", + "+" + tagEnabledName + "=package,register", }, expect: &enabledTagValue{ value: "package", @@ -344,7 +271,7 @@ func Test_extractTagParams(t *testing.T) { { comments: []string{ "Human comment", - "+k8s:deepcopy-gen=package,register=true", + "+" + tagEnabledName + "=package,register=true", }, expect: &enabledTagValue{ value: "package", @@ -354,7 +281,7 @@ func Test_extractTagParams(t *testing.T) { { comments: []string{ "Human comment", - "+k8s:deepcopy-gen=package,register=false", + "+" + tagEnabledName + "=package,register=false", }, expect: &enabledTagValue{ value: "package", @@ -376,3 +303,143 @@ func Test_extractTagParams(t *testing.T) { } } } + +func Test_HasEqual(t *testing.T) { + testCases := []struct { + typ *types.Type + name string + hasEqual bool + pointerParameter bool + }{ + { + typ: &types.Type{ + Methods: map[string]*types.Type{}, + }, + name: "no methods", + }, + { + typ: &types.Type{ + Methods: map[string]*types.Type{ + "Equal": { + Signature: &types.Signature{ + Results: []*types.Type{ + types.Byte, + }, + }, + }, + }, + }, + name: "Equal method with wrong result type", + }, + { + typ: &types.Type{ + Methods: map[string]*types.Type{ + "Equal": { + Signature: &types.Signature{ + Results: []*types.Type{ + types.Bool, types.Byte, + }, + }, + }, + }, + }, + name: "Equal method with wrong number of results", + }, + { + typ: &types.Type{ + Name: types.Name{Package: "foo", Name: "Bar"}, + Methods: map[string]*types.Type{ + "Equal": { + Signature: &types.Signature{ + Results: []*types.Type{ + types.Bool, + }, + Parameters: []*types.Type{ + { + Name: types.Name{Package: "wrong", Name: "Bar"}, + }, + }, + }, + }, + }, + }, + name: "Equal method with correct result but wrong parameter type", + }, + { + typ: &types.Type{ + Name: types.Name{Package: "foo", Name: "Bar"}, + Methods: map[string]*types.Type{ + "Equal": { + Signature: &types.Signature{ + Results: []*types.Type{ + types.Bool, + }, + Parameters: []*types.Type{ + { + Name: types.Name{Package: "foo", Name: "Bar"}, + }, + { + Name: types.Name{Package: "wrong", Name: "What"}, + }, + }, + }, + }, + }, + }, + name: "Equal method with correct result but wrong number of parameters", + }, + { + typ: &types.Type{ + Name: types.Name{Package: "foo", Name: "Bar"}, + Methods: map[string]*types.Type{ + "Equal": { + Signature: &types.Signature{ + Results: []*types.Type{ + types.Bool, + }, + Parameters: []*types.Type{ + { + Name: types.Name{Package: "foo", Name: "Bar"}, + Kind: types.Pointer, + }, + }, + }, + }, + }, + }, + name: "Equal method with correct result and pointer parameter type", + hasEqual: true, + pointerParameter: true, + }, + { + typ: &types.Type{ + Name: types.Name{Package: "foo", Name: "Bar"}, + Methods: map[string]*types.Type{ + "Equal": { + Signature: &types.Signature{ + Results: []*types.Type{ + types.Bool, + }, + Parameters: []*types.Type{ + { + Name: types.Name{Package: "foo", Name: "Bar"}, + Kind: types.Struct, + }, + }, + }, + }, + }, + }, + name: "Equal method with correct result and value parameter type", + hasEqual: true, + }, + } + + for _, tc := range testCases { + hasEqual, pointer := HasEqual(tc.typ) + if hasEqual != tc.hasEqual || pointer != tc.pointerParameter { + t.Errorf("Expected hasEqual=%t and pointer=%t, got hasEqual=%t and pointer=%t", tc.hasEqual, tc.pointerParameter, hasEqual, pointer) + } + + } +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..f3ce311 --- /dev/null +++ b/go.mod @@ -0,0 +1,20 @@ +module github.com/wind-river/deepequal-gen + +go 1.17 + +require ( + github.com/davecgh/go-spew v1.1.1 + github.com/google/gofuzz v1.1.0 + github.com/spf13/pflag v1.0.5 + k8s.io/gengo v0.0.0-20220307231824-4627b89bbf1b + k8s.io/klog v1.0.0 +) + +require ( + github.com/go-logr/logr v1.2.3 // indirect + golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect + golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886 // indirect + golang.org/x/tools v0.1.10 // indirect + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect + k8s.io/klog/v2 v2.60.1 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..add6ed1 --- /dev/null +++ b/go.sum @@ -0,0 +1,66 @@ +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= +github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= +github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= +github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= +github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886 h1:eJv7u3ksNXoLbGSKuv2s/SIO4tJVxc/A+MTpzxDgz/Q= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.1.10 h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20= +golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +k8s.io/gengo v0.0.0-20220307231824-4627b89bbf1b h1:vEhKDJESYfeRiaBNmRvO+/12RAo1cFeu6vGm1fBFY34= +k8s.io/gengo v0.0.0-20220307231824-4627b89bbf1b/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= +k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8= +k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= +k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= +k8s.io/klog/v2 v2.60.1 h1:VW25q3bZx9uE3vvdL6M8ezOX79vA2Aq1nEWLqNQclHc= +k8s.io/klog/v2 v2.60.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=