Skip to content

Commit d22fca8

Browse files
Merge pull request #2297 from JoelSpeed/migrate-kube-sigs-kal
Move from JoelSpeed/kal to kubernetes-sigs/kube-api-linter
2 parents fb1b1c7 + 42c5367 commit d22fca8

File tree

1,675 files changed

+412297
-32095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,675 files changed

+412297
-32095
lines changed

.golangci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
linters-settings:
22
custom:
3-
kal:
3+
kubeapilinter:
44
type: "module"
5-
description: KAL is the Kube-API-Linter and lints Kube like APIs based on API conventions and best practices.
5+
description: kubeapilinter is the Kube-API-Linter and lints Kube like APIs based on API conventions and best practices.
66
settings:
77
linters:
88
enable:
99
- "maxlength"
1010
- "nobools"
11+
- "nomaps"
1112
- "statussubresource"
1213
lintersConfig:
1314
conditions:
@@ -17,7 +18,7 @@ linters-settings:
1718
linters:
1819
disable-all: true
1920
enable:
20-
- kal
21+
- kubeapilinter
2122
issues:
2223
# We have a lot of existing issues.
2324
# Want to make sure that those adding new fields have an

hack/golangci-lint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
44

55
# Build codegen-crds when it's not present and not overriden for a specific file.
66
if [ -z "${GOLANGCI_LINT:-}" ];then
7-
${TOOLS_MAKE} golangci-kal
8-
GOLANGCI_LINT="${TOOLS_OUTPUT}/golangci-kal"
7+
${TOOLS_MAKE} golangci-kube-api-linter
8+
GOLANGCI_LINT="${TOOLS_OUTPUT}/golangci-kube-api-linter"
99
fi
1010

1111
# In CI, HOME is set to / and is not writable.

tools/.custom-gcl.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
version: v1.63.4
2-
name: golangci-kal
1+
version: v1.64.8
2+
name: golangci-kube-api-linter
33
destination: ./bin
44
plugins:
5-
- module: 'github.com/JoelSpeed/kal'
6-
version: v0.0.0-20250305092907-abd233a9fed8
5+
- module: 'sigs.k8s.io/kube-api-linter'
6+
version: v0.0.0-20250424114031-64417f625b7d

tools/Makefile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,8 @@ deepcopy-gen: $(OUTPUT_DIR)/deepcopy-gen
5757
.PHONY:go-to-protobuf
5858
go-to-protobuf: $(OUTPUT_DIR)/go-to-protobuf
5959

60-
.PHONY:golangci-kal
61-
golangci-kal: $(OUTPUT_DIR)/golangci-kal
62-
63-
.PHONY:kal
64-
kal: $(OUTPUT_DIR)/kal
60+
.PHONY:golangci-kube-api-linter
61+
golangci-kube-api-linter: $(OUTPUT_DIR)/golangci-kube-api-linter
6562

6663
.PHONY:openapi-gen
6764
openapi-gen: $(OUTPUT_DIR)/openapi-gen
@@ -111,14 +108,11 @@ $(OUTPUT_DIR)/golangci-lint: $(OUTPUT_DIR)/vendor-version
111108
go build -mod=vendor -o $(OUTPUT_DIR)/golangci-lint ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint
112109

113110
# The golangci-lint custom command relies on finding a module, this uses a workaround to init the go.mod in the kal directory.
114-
$(OUTPUT_DIR)/golangci-kal: $(OUTPUT_DIR)/vendor-version $(OUTPUT_DIR)/golangci-lint
111+
$(OUTPUT_DIR)/golangci-kube-api-linter: $(OUTPUT_DIR)/vendor-version $(OUTPUT_DIR)/golangci-lint
115112
GOFLAGS=-mod=readonly $(OUTPUT_DIR)/golangci-lint custom
116-
@ mv bin/golangci-kal $(OUTPUT_DIR)/golangci-kal
113+
@ mv bin/golangci-kube-api-linter $(OUTPUT_DIR)/golangci-kube-api-linter
117114
@ rmdir bin
118115

119-
$(OUTPUT_DIR)/kal: $(OUTPUT_DIR)/vendor-version
120-
go build -mod=vendor -o $(OUTPUT_DIR)/kal ./vendor/github.com/JoelSpeed/kal/cmd/kal
121-
122116
$(OUTPUT_DIR)/openapi-gen: $(OUTPUT_DIR)/vendor-version
123117
go build -mod=vendor -o $(OUTPUT_DIR)/openapi-gen ./vendor/k8s.io/code-generator/cmd/openapi-gen
124118

tools/go.mod

Lines changed: 98 additions & 88 deletions
Large diffs are not rendered by default.

tools/go.sum

Lines changed: 210 additions & 190 deletions
Large diffs are not rendered by default.

tools/tools.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
package tools
55

66
import (
7-
_ "github.com/JoelSpeed/kal"
8-
_ "github.com/JoelSpeed/kal/cmd/kal"
97
_ "github.com/gogo/protobuf/gogoproto"
108
_ "github.com/gogo/protobuf/proto"
119
_ "github.com/gogo/protobuf/sortkeys"
@@ -17,4 +15,5 @@ import (
1715
_ "k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo"
1816
_ "k8s.io/code-generator/cmd/prerelease-lifecycle-gen"
1917
_ "sigs.k8s.io/controller-tools/cmd/controller-gen"
18+
_ "sigs.k8s.io/kube-api-linter"
2019
)

tools/vendor/4d63.com/gocheckcompilerdirectives/checkcompilerdirectives/checkcompilerdirectives.go

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/vendor/4d63.com/gochecknoglobals/checknoglobals/check_no_globals.go

Lines changed: 0 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/vendor/cloud.google.com/go/auth/CHANGES.md

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/vendor/cloud.google.com/go/auth/README.md

Lines changed: 39 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)