Skip to content

Commit a07f76d

Browse files
authored
Merge pull request #42 from tfadeyi/add-target-flag
Add support for --specification flag
2 parents 83ff4ea + 7cfc902 commit a07f76d

File tree

19 files changed

+709
-82
lines changed

19 files changed

+709
-82
lines changed

cmd/init.go

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ func specInitCmd(common *commonoptions.Options) *cobra.Command {
2121
opts := initoptions.New(common)
2222
var inputReader io.ReadCloser
2323
var targetLanguage options.Option
24+
var targetSpecParser options.Option
25+
var outputKubernetes = false
2426
cmd := &cobra.Command{
2527
Use: "init",
2628
Short: "Init generates the Sloth definition specification from source code comments.",
@@ -35,7 +37,15 @@ func specInitCmd(common *commonoptions.Options) *cobra.Command {
3537
return err
3638
}
3739

38-
switch opts.SrcLanguage {
40+
switch opts.Target {
41+
case "sloth-k8s":
42+
targetSpecParser = sloth.Parser(true)
43+
outputKubernetes = true
44+
default:
45+
targetSpecParser = sloth.Parser(false)
46+
}
47+
48+
switch opts.SourceLanguage {
3949
case lang.Rust:
4050
err := errors.New("The rust parser has not been fully implemented and shouldn't be used! It will have unexpected behaviours.")
4151
logger.Error(err, "")
@@ -61,7 +71,7 @@ func specInitCmd(common *commonoptions.Options) *cobra.Command {
6171

6272
parser, err := parser.New(
6373
targetLanguage,
64-
sloth.Parser(),
74+
targetSpecParser,
6575
options.Logger(&logger),
6676
options.SourceFile(opts.Source),
6777
options.SourceContent(inputReader),
@@ -99,7 +109,7 @@ func specInitCmd(common *commonoptions.Options) *cobra.Command {
99109
// Only print to file if the user has selected the to-file option
100110
if opts.ToFile {
101111
logger.Info("Generating specifications files in output directory.", "directory", generate.DefaultServiceDefinitionDir)
102-
if err := generate.WriteSpecifications(nil, []byte(header), selectedServices, true, ".", opts.Formats...); err != nil {
112+
if err := generate.WriteSpecifications(nil, []byte(header), selectedServices, true, ".", outputKubernetes, opts.Formats...); err != nil {
103113
logger.Error(err, "Generating specification file error")
104114
return err
105115
}
@@ -108,7 +118,7 @@ func specInitCmd(common *commonoptions.Options) *cobra.Command {
108118

109119
logger.Info("Printing result specification to stdout.")
110120
writer := cmd.OutOrStdout()
111-
if err := generate.WriteSpecifications(writer, []byte(header), selectedServices, false, "", opts.Formats...); err != nil {
121+
if err := generate.WriteSpecifications(writer, []byte(header), selectedServices, false, "", outputKubernetes, opts.Formats...); err != nil {
112122
logger.Error(err, "Writing specification to stdout error")
113123
return err
114124
}

cmd/options/init/README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,26 @@ Package spec contains the different options present under the spec generation co
1717

1818

1919
<a name="Options"></a>
20-
## type [Options](<https://github.com/tfadeyi/sloth-simple-comments/blob/main/cmd/options/init/options.go#L19-L28>)
20+
## type [Options](<https://github.com/tfadeyi/sloth-simple-comments/blob/main/cmd/options/init/options.go#L19-L29>)
2121

2222
Options is the list of options/flag available to the application, plus the clients needed by the application to function.
2323

2424
```go
2525
type Options struct {
26-
Formats []string
27-
IncludedDirs []string
28-
Source string
29-
SrcLanguage lang.Target
30-
Specification string
31-
ToFile bool
32-
Services []string
26+
Formats []string
27+
IncludedDirs []string
28+
Source string
29+
SourceLanguage lang.Target
30+
Specification string
31+
ToFile bool
32+
Services []string
33+
Target string
3334
*common.Options
3435
}
3536
```
3637

3738
<a name="New"></a>
38-
### func [New](<https://github.com/tfadeyi/sloth-simple-comments/blob/main/cmd/options/init/options.go#L32>)
39+
### func [New](<https://github.com/tfadeyi/sloth-simple-comments/blob/main/cmd/options/init/options.go#L33>)
3940

4041
```go
4142
func New(c *common.Options) *Options
@@ -44,7 +45,7 @@ func New(c *common.Options) *Options
4445
New creates a new instance of the application's options
4546

4647
<a name="Options.Complete"></a>
47-
### func \(\*Options\) [Complete](<https://github.com/tfadeyi/sloth-simple-comments/blob/main/cmd/options/init/options.go#L45>)
48+
### func \(\*Options\) [Complete](<https://github.com/tfadeyi/sloth-simple-comments/blob/main/cmd/options/init/options.go#L46>)
4849

4950
```go
5051
func (o *Options) Complete() error
@@ -53,7 +54,7 @@ func (o *Options) Complete() error
5354
Complete initialises the components needed for the application to function given the options
5455

5556
<a name="Options.Prepare"></a>
56-
### func \(\*Options\) [Prepare](<https://github.com/tfadeyi/sloth-simple-comments/blob/main/cmd/options/init/options.go#L39>)
57+
### func \(\*Options\) [Prepare](<https://github.com/tfadeyi/sloth-simple-comments/blob/main/cmd/options/init/options.go#L40>)
5758

5859
```go
5960
func (o *Options) Prepare(cmd *cobra.Command) *Options

cmd/options/init/options.go

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ type (
1717
// Options is the list of options/flag available to the application,
1818
// plus the clients needed by the application to function.
1919
Options struct {
20-
Formats []string
21-
IncludedDirs []string
22-
Source string
23-
SrcLanguage lang.Target
24-
Specification string
25-
ToFile bool
26-
Services []string
20+
Formats []string
21+
IncludedDirs []string
22+
Source string
23+
SourceLanguage lang.Target
24+
Specification string
25+
ToFile bool
26+
Services []string
27+
Target string
2728
*common.Options
2829
}
2930
)
@@ -62,9 +63,9 @@ func (o *Options) Complete() error {
6263
// @aloe summary The language passed to the --lang flag is not supported.
6364
// @aloe details The source language passed to the --lang flag is not currently supported by the tool.
6465
// The following are the supported languages: go, wasm(experimental).
65-
if ok := lang.IsSupportedLanguage(o.SrcLanguage); !ok {
66+
if ok := lang.IsSupportedLanguage(o.SourceLanguage); !ok {
6667
err = goaloe.DefaultOrDie().Error(
67-
multierr.Append(err, errors.Errorf("unsupported language %q was passed to --lang flag", o.SrcLanguage)),
68+
multierr.Append(err, errors.Errorf("unsupported language %q was passed to --lang flag", o.SourceLanguage)),
6869
"unsupported_language")
6970
}
7071
return err
@@ -92,7 +93,7 @@ func (o *Options) addAppFlags(fs *pflag.FlagSet) {
9293
"Output format (yaml,json).",
9394
)
9495
fs.StringVar(
95-
(*string)(&o.SrcLanguage),
96+
(*string)(&o.SourceLanguage),
9697
"lang",
9798
"go",
9899
"Language of the source files. (go)",
@@ -102,7 +103,7 @@ func (o *Options) addAppFlags(fs *pflag.FlagSet) {
102103
"file",
103104
"f",
104105
"",
105-
"Source file to parse.",
106+
"Target file to parse. example: ./metrics.go",
106107
)
107108
fs.BoolVar(
108109
&o.ToFile,
@@ -116,4 +117,10 @@ func (o *Options) addAppFlags(fs *pflag.FlagSet) {
116117
[]string{},
117118
"Comma separated list of service names. These will select the output service specifications returned by the tool.",
118119
)
120+
fs.StringVar(
121+
&o.Target,
122+
"specification",
123+
"sloth",
124+
"The name of the specification the tool should parse the source file for, example: sloth or sloth-k8s.",
125+
)
119126
}

go.mod

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,27 @@ require (
1414
github.com/stretchr/testify v1.8.4
1515
github.com/tfadeyi/go-aloe v0.0.2
1616
gopkg.in/yaml.v3 v3.0.1
17+
k8s.io/apimachinery v0.25.1
18+
sigs.k8s.io/yaml v1.3.0
1719
)
1820

1921
require (
2022
github.com/davecgh/go-spew v1.1.1 // indirect
23+
github.com/gogo/protobuf v1.3.2 // indirect
24+
github.com/google/gofuzz v1.2.0 // indirect
2125
github.com/hashicorp/errwrap v1.0.0 // indirect
2226
github.com/inconshreveable/mousetrap v1.1.0 // indirect
27+
github.com/json-iterator/go v1.1.12 // indirect
28+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
29+
github.com/modern-go/reflect2 v1.0.2 // indirect
2330
github.com/pelletier/go-toml/v2 v2.0.7 // indirect
2431
github.com/pmezard/go-difflib v1.0.0 // indirect
32+
golang.org/x/net v0.0.0-20220920203100-d0c6ba3f52d9 // indirect
33+
golang.org/x/text v0.3.7 // indirect
34+
gopkg.in/inf.v0 v0.9.1 // indirect
35+
gopkg.in/yaml.v2 v2.4.0 // indirect
36+
k8s.io/klog/v2 v2.80.0 // indirect
37+
k8s.io/utils v0.0.0-20220823124924-e9cbc92d1a73 // indirect
38+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
39+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
2540
)

go.sum

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,113 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t
66
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
77
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
88
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
9+
github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas=
10+
github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
911
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
1012
github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ=
1113
github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
1214
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
1315
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
16+
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
17+
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
18+
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
19+
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
20+
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
21+
github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
1422
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
1523
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
1624
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
1725
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
1826
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
1927
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
2028
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
29+
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
30+
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
2131
github.com/juju/errors v1.0.0 h1:yiq7kjCLll1BiaRuNY53MGI0+EQ3rF6GB+wvboZDefM=
2232
github.com/juju/errors v1.0.0/go.mod h1:B5x9thDqx0wIMH3+aLIMP9HjItInYWObRovoCFM5Qe8=
33+
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
34+
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
2335
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
2436
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
37+
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
38+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
39+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
40+
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
41+
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
2542
github.com/pelletier/go-toml/v2 v2.0.7 h1:muncTPStnKRos5dpVKULv2FVd4bMOhNePj9CjgDb8Us=
2643
github.com/pelletier/go-toml/v2 v2.0.7/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek=
2744
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
2845
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2946
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
3047
github.com/slok/sloth v0.11.0 h1:0N3975hhO8izJoHIiPMBKZWxk6lxamuTd45MxYsOk04=
3148
github.com/slok/sloth v0.11.0/go.mod h1:xE9zMDVvMb5ylMhkacDtC02vmRhZHNuqe5ez93OiDms=
49+
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
3250
github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
3351
github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=
3452
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
3553
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
3654
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
3755
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
3856
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
57+
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
3958
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
4059
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
4160
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
4261
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
4362
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
4463
github.com/tfadeyi/go-aloe v0.0.2 h1:3zKDn2Bg2pDL2ES8CIHL6TCV8hTUlamjoNY5aWjmQtA=
4564
github.com/tfadeyi/go-aloe v0.0.2/go.mod h1:iowd4nC94VHlcq3vebbcGX/8DMkC5oa7iGPPbBwbAf0=
65+
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
66+
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
67+
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
68+
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
69+
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
70+
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
71+
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
72+
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
73+
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
74+
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
75+
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
76+
golang.org/x/net v0.0.0-20220920203100-d0c6ba3f52d9 h1:asZqf0wXastQr+DudYagQS8uBO8bHKeYD1vbAvGmFL8=
77+
golang.org/x/net v0.0.0-20220920203100-d0c6ba3f52d9/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
78+
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
79+
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
80+
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
81+
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
82+
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
83+
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
84+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
85+
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
86+
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
87+
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
88+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
89+
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
90+
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
91+
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
92+
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
93+
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
94+
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
95+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
4696
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
4797
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
98+
gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
99+
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
100+
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
101+
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
102+
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
48103
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
49104
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
50105
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
106+
k8s.io/apimachinery v0.25.1 h1:t0XrnmCEHVgJlR2arwO8Awp9ylluDic706WePaYCBTI=
107+
k8s.io/apimachinery v0.25.1/go.mod h1:hqqA1X0bsgsxI6dXsJ4HnNTBOmJNxyPp8dw3u2fSHwA=
108+
k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE=
109+
k8s.io/klog/v2 v2.80.0 h1:lyJt0TWMPaGoODa8B8bUuxgHS3W/m/bNr2cca3brA/g=
110+
k8s.io/klog/v2 v2.80.0/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
111+
k8s.io/utils v0.0.0-20220823124924-e9cbc92d1a73 h1:H9TCJUUx+2VA0ZiD9lvtaX8fthFsMoD+Izn93E/hm8U=
112+
k8s.io/utils v0.0.0-20220823124924-e9cbc92d1a73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
113+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 h1:iXTIw73aPyC+oRdyqqvVJuloN1p0AC/kzH07hu3NE+k=
114+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
115+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kFxnAMREiWFE=
116+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ihdVs8cGKBraizNC69E=
117+
sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
118+
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=

0 commit comments

Comments
 (0)