File tree Expand file tree Collapse file tree 7 files changed +473
-222
lines changed
builder/resource/resourcerest
tools/apiserver-runtime-gen Expand file tree Collapse file tree 7 files changed +473
-222
lines changed Original file line number Diff line number Diff line change @@ -18,23 +18,22 @@ linters:
18
18
- dogsled
19
19
- dupl
20
20
- errcheck
21
+ - exportloopref
21
22
# - funlen # the kubernetes custom storage func signatures will always violate this rule.
22
23
# - gochecknoinits
23
24
- goconst
24
25
- gocritic
25
26
- gocyclo
26
27
- gofmt
27
28
- goimports
28
- - golint
29
29
- gosec
30
30
- gosimple
31
31
- govet
32
32
- ineffassign
33
- - interfacer
34
33
- lll
35
34
- misspell
36
35
- nakedret
37
- - scopelint
36
+ - revive
38
37
- staticcheck
39
38
- structcheck
40
39
- stylecheck
Original file line number Diff line number Diff line change @@ -21,5 +21,4 @@ limitations under the License.
21
21
// Note that this package is experimental and a work in progress. Do not rely on this project for production
22
22
// without first contacting the maintainers at [email protected] .
23
23
//
24
- // nolint:stylecheck,golint
25
- package apiserver_runtime
24
+ package apiserver_runtime // nolint:stylecheck,revive
Original file line number Diff line number Diff line change @@ -5,20 +5,20 @@ module sigs.k8s.io/apiserver-runtime
5
5
go 1.15
6
6
7
7
require (
8
- github.com/go-openapi/spec v0.19.3
9
- github.com/golangci/golangci-lint v1.31.0
8
+ github.com/go-openapi/spec v0.19.5
9
+ github.com/golangci/golangci-lint v1.41.1
10
10
github.com/google/gofuzz v1.1.0
11
11
github.com/rancher/kine v0.4.0
12
- github.com/spf13/cobra v1.0.0
12
+ github.com/spf13/cobra v1.1.3
13
13
github.com/spf13/pflag v1.0.5
14
- github.com/stretchr/testify v1.6.1
15
- k8s.io/api v0.20.5
16
- k8s.io/apimachinery v0.20.5
17
- k8s.io/apiserver v0.20.5
18
- k8s.io/client-go v0.20.5
19
- k8s.io/code-generator v0.20.5
20
- k8s.io/component-base v0.20.5
14
+ github.com/stretchr/testify v1.7.0
15
+ k8s.io/api v0.21.2
16
+ k8s.io/apimachinery v0.21.2
17
+ k8s.io/apiserver v0.21.2
18
+ k8s.io/client-go v0.21.2
19
+ k8s.io/code-generator v0.21.2
20
+ k8s.io/component-base v0.21.2
21
21
k8s.io/klog v1.0.0
22
- k8s.io/klog/v2 v2.4 .0
23
- k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd
22
+ k8s.io/klog/v2 v2.8 .0
23
+ k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7
24
24
)
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -43,11 +43,6 @@ type Connecter = rest.Connecter
43
43
// Go prevents embedded interfaces that implement the same method.
44
44
type CreaterUpdater = rest.CreaterUpdater
45
45
46
- // Exporter is an object that knows how to strip a RESTful resource for export. A store should implement this interface
47
- // if export is generally supported for that type. Errors can still be returned during the actual Export when certain
48
- // instances of the type are not exportable.
49
- type Exporter = rest.Exporter
50
-
51
46
// Getter if implemented will expose GET endpoints for the resource and publish them in the Kubernetes
52
47
// discovery service and OpenAPI.
53
48
//
Original file line number Diff line number Diff line change 8
8
9
9
type parentStorageContextKeyType string
10
10
11
- var parentStorageContextKey parentStorageContextKeyType = ""
11
+ var parentStorageContextKey parentStorageContextKeyType
12
12
13
13
// WithParentStorage creates a new child context w/ parent storage plumbed
14
14
func WithParentStorage (ctx context.Context , storage rest.StandardStorage ) context.Context {
Original file line number Diff line number Diff line change @@ -216,10 +216,7 @@ func run(cmd *exec.Cmd) error {
216
216
cmd .Stdout = os .Stdout
217
217
cmd .Stderr = os .Stderr
218
218
cmd .Stdin = os .Stdin
219
- if err := cmd .Run (); err != nil {
220
- return err
221
- }
222
- return nil
219
+ return cmd .Run ()
223
220
}
224
221
225
222
func getCmd (cmd string , args ... string ) * exec.Cmd {
You can’t perform that action at this time.
0 commit comments