Skip to content

Commit 036a9bf

Browse files
authored
Merge pull request #89 from embik/prow-owners-update
🌱 Update prow jobs, PR template, OWNERS and golangci-lint
2 parents a43d6e3 + e7233a1 commit 036a9bf

File tree

20 files changed

+116
-64
lines changed

20 files changed

+116
-64
lines changed

.github/pull_request_template.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,17 @@ Please copy the appropriate `:text:` or icon to the beginning of your PR title:
1919
## Related issue(s)
2020

2121
Fixes #
22+
23+
## Release Notes
24+
25+
<!--
26+
Please add a release note using the following format:
27+
28+
```release-note
29+
<description of change>
30+
```
31+
-->
32+
33+
```release-note
34+
NONE
35+
```

.golangci.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
run:
2+
timeout: 10m
3+
allow-parallel-runners: true
4+
5+
linters:
6+
disable-all: true
7+
enable:
8+
- asasalint
9+
- asciicheck
10+
- bidichk
11+
- bodyclose
12+
- containedctx
13+
- dupword
14+
- durationcheck
15+
- errcheck
16+
- errchkjson
17+
- exportloopref
18+
- gocritic
19+
- godot
20+
- gofmt
21+
- goprintffuncname
22+
- gosec
23+
- gosimple
24+
- govet
25+
- importas
26+
- ineffassign
27+
- misspell
28+
- nilerr
29+
- noctx
30+
- nolintlint
31+
- nosprintfhostport
32+
- prealloc
33+
- revive
34+
- staticcheck
35+
- unconvert
36+
- unused
37+
- usestdlibvars
38+
- whitespace

.prow.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ presubmits:
77
preset-goproxy: "true"
88
spec:
99
containers:
10-
- image: ghcr.io/kcp-dev/infra/build:1.19.9-1
10+
- image: ghcr.io/kcp-dev/infra/build:1.20.13-1
1111
command:
1212
- make
1313
- verify-codegen
@@ -21,7 +21,7 @@ presubmits:
2121
preset-goproxy: "true"
2222
spec:
2323
containers:
24-
- image: ghcr.io/kcp-dev/infra/build:1.19.9-1
24+
- image: ghcr.io/kcp-dev/infra/build:1.20.13-1
2525
command:
2626
- make
2727
- lint
@@ -34,7 +34,7 @@ presubmits:
3434
preset-goproxy: "true"
3535
spec:
3636
containers:
37-
- image: ghcr.io/kcp-dev/infra/build:1.19.9-1
37+
- image: ghcr.io/kcp-dev/infra/build:1.20.13-1
3838
command:
3939
- make
4040
- test

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CONTROLLER_GEN_BIN := controller-gen
2525
CONTROLLER_GEN := $(GOBIN_DIR)/$(CONTROLLER_GEN_BIN)-$(CONTROLLER_GEN_VER)
2626
export CONTROLLER_GEN
2727

28-
GOLANGCI_LINT_VER := v1.49.0
28+
GOLANGCI_LINT_VER := v1.54.2
2929
GOLANGCI_LINT_BIN := golangci-lint
3030
GOLANGCI_LINT := $(GOBIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER)
3131

OWNERS

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
approvers:
2-
- ncdc
3-
- stevekuznetsov
4-
- fabianvf
5-
- varshaprasad96
6-
- njhale
7-
- sttts
2+
- clubanderson
3+
- scheeles
4+
- sttts
5+
- xrstf
6+
- mjudeikis
7+
- embik

examples/pkg/apis/example/register.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ import (
2424

2525
const GroupName = "example.dev"
2626

27-
// SchemeGroupVersion is group version used to register these objects
27+
// SchemeGroupVersion is group version used to register these objects.
2828
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
2929

30-
// Kind takes an unqualified kind and returns back a Group qualified GroupKind
30+
// Kind takes an unqualified kind and returns back a Group qualified GroupKind.
3131
func Kind(kind string) schema.GroupKind {
3232
return SchemeGroupVersion.WithKind(kind).GroupKind()
3333
}
3434

35-
// Resource takes an unqualified resource and returns a Group qualified GroupResource
35+
// Resource takes an unqualified resource and returns a Group qualified GroupResource.
3636
func Resource(resource string) schema.GroupResource {
3737
return SchemeGroupVersion.WithResource(resource).GroupResource()
3838
}

examples/pkg/apis/example/v1/register.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ import (
2424
"acme.corp/pkg/apis/example"
2525
)
2626

27-
// SchemeGroupVersion is group version used to register these objects
27+
// SchemeGroupVersion is group version used to register these objects.
2828
var SchemeGroupVersion = schema.GroupVersion{Group: example.GroupName, Version: "v1"}
2929

30-
// Kind takes an unqualified kind and returns back a Group qualified GroupKind
30+
// Kind takes an unqualified kind and returns back a Group qualified GroupKind.
3131
func Kind(kind string) schema.GroupKind {
3232
return SchemeGroupVersion.WithKind(kind).GroupKind()
3333
}
3434

35-
// Resource takes an unqualified resource and returns a Group qualified GroupResource
35+
// Resource takes an unqualified resource and returns a Group qualified GroupResource.
3636
func Resource(resource string) schema.GroupResource {
3737
return SchemeGroupVersion.WithResource(resource).GroupResource()
3838
}

examples/pkg/apis/example/v1alpha1/register.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ import (
2424
"acme.corp/pkg/apis/example"
2525
)
2626

27-
// SchemeGroupVersion is group version used to register these objects
27+
// SchemeGroupVersion is group version used to register these objects.
2828
var SchemeGroupVersion = schema.GroupVersion{Group: example.GroupName, Version: "v1alpha1"}
2929

30-
// Kind takes an unqualified kind and returns back a Group qualified GroupKind
30+
// Kind takes an unqualified kind and returns back a Group qualified GroupKind.
3131
func Kind(kind string) schema.GroupKind {
3232
return SchemeGroupVersion.WithKind(kind).GroupKind()
3333
}
3434

35-
// Resource takes an unqualified resource and returns a Group qualified GroupResource
35+
// Resource takes an unqualified resource and returns a Group qualified GroupResource.
3636
func Resource(resource string) schema.GroupResource {
3737
return SchemeGroupVersion.WithResource(resource).GroupResource()
3838
}

examples/pkg/apis/example/v1beta1/register.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ import (
2424
"acme.corp/pkg/apis/example"
2525
)
2626

27-
// SchemeGroupVersion is group version used to register these objects
27+
// SchemeGroupVersion is group version used to register these objects.
2828
var SchemeGroupVersion = schema.GroupVersion{Group: example.GroupName, Version: "v1beta1"}
2929

30-
// Kind takes an unqualified kind and returns back a Group qualified GroupKind
30+
// Kind takes an unqualified kind and returns back a Group qualified GroupKind.
3131
func Kind(kind string) schema.GroupKind {
3232
return SchemeGroupVersion.WithKind(kind).GroupKind()
3333
}
3434

35-
// Resource takes an unqualified resource and returns a Group qualified GroupResource
35+
// Resource takes an unqualified resource and returns a Group qualified GroupResource.
3636
func Resource(resource string) schema.GroupResource {
3737
return SchemeGroupVersion.WithResource(resource).GroupResource()
3838
}

examples/pkg/apis/example/v2/register.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ import (
2424
"acme.corp/pkg/apis/example"
2525
)
2626

27-
// SchemeGroupVersion is group version used to register these objects
27+
// SchemeGroupVersion is group version used to register these objects.
2828
var SchemeGroupVersion = schema.GroupVersion{Group: example.GroupName, Version: "v2"}
2929

30-
// Kind takes an unqualified kind and returns back a Group qualified GroupKind
30+
// Kind takes an unqualified kind and returns back a Group qualified GroupKind.
3131
func Kind(kind string) schema.GroupKind {
3232
return SchemeGroupVersion.WithKind(kind).GroupKind()
3333
}
3434

35-
// Resource takes an unqualified resource and returns a Group qualified GroupResource
35+
// Resource takes an unqualified resource and returns a Group qualified GroupResource.
3636
func Resource(resource string) schema.GroupResource {
3737
return SchemeGroupVersion.WithResource(resource).GroupResource()
3838
}

0 commit comments

Comments
 (0)