Skip to content

Commit 0354fa4

Browse files
committed
hack/tools: use mainstream conversion-gen
1 parent 620524f commit 0354fa4

File tree

8 files changed

+6
-1581
lines changed

8 files changed

+6
-1581
lines changed

docs/triage-party/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ FROM gcr.io/distroless/base:latest
2828
WORKDIR /app
2929
COPY --chown=nobody:nobody --from=builder /go/bin/server /app/triage-party
3030
COPY --chown=nobody:nobody --from=builder /git/triage-party/site /app/site
31-
COPY --chown=nobody:nobody --from=builder /git/triage-party/third_party /app/third_party
3231
COPY --chown=nobody:nobody config/config.yaml /app/config/config.yaml
3332
COPY --chown=nobody:nobody --from=builder /.cache /app/.cache
3433
ENV HOME /app

hack/boilerplate/boilerplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def file_passes(filename, refs, regexs):
149149
def file_extension(filename):
150150
return os.path.splitext(filename)[1].split(".")[-1].lower()
151151

152-
skipped_dirs = ['Godeps', 'third_party', '_gopath', '_output', '.git', 'cluster/env.sh',
152+
skipped_dirs = ['Godeps', '_gopath', '_output', '.git', 'cluster/env.sh',
153153
"vendor", "test/e2e/generated/bindata.go", "hack/boilerplate/test",
154154
"pkg/kubectl/generated/bindata.go"]
155155

hack/tools/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ $(CONTROLLER_GEN): $(BIN_DIR) go.mod go.sum # Build controller-gen from tools fo
7575
go build -tags=tools -o $@ sigs.k8s.io/controller-tools/cmd/controller-gen
7676

7777
CONVERSION_GEN := $(BIN_DIR)/conversion-gen
78-
$(CONVERSION_GEN): $(BIN_DIR) go.mod go.sum $(call rwildcard,.,third_party/conversion-gen/*.*)
79-
go build -tags=tools -o $@ ./third_party/conversion-gen
78+
$(CONVERSION_GEN): $(BIN_DIR) go.mod go.sum
79+
go build -tags=tools -o $@ k8s.io/code-generator/cmd/conversion-gen
8080

8181
CONVERSION_VERIFIER := $(BIN_DIR)/conversion-verifier
8282
$(CONVERSION_VERIFIER): $(BIN_DIR) go.mod go.sum

hack/tools/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ require (
1010
github.com/itchyny/gojq v0.12.17
1111
github.com/joelanford/go-apidiff v0.8.3
1212
github.com/mikefarah/yq/v4 v4.44.6
13-
github.com/spf13/pflag v1.0.6
1413
k8s.io/apimachinery v0.32.3
1514
k8s.io/code-generator v0.32.3
16-
k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9
17-
k8s.io/klog/v2 v2.130.1
1815
sigs.k8s.io/cluster-api/hack/tools v0.0.0-20250520093716-525566440a77
1916
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240923090159-236e448db12c
2017
sigs.k8s.io/controller-tools v0.17.3
@@ -296,6 +293,7 @@ require (
296293
github.com/spf13/afero v1.12.0 // indirect
297294
github.com/spf13/cast v1.7.1 // indirect
298295
github.com/spf13/cobra v1.9.1 // indirect
296+
github.com/spf13/pflag v1.0.6 // indirect
299297
github.com/spf13/viper v1.20.1 // indirect
300298
github.com/subosito/gotenv v1.6.0 // indirect
301299
github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 // indirect
@@ -360,7 +358,9 @@ require (
360358
k8s.io/api v0.32.3 // indirect
361359
k8s.io/apiextensions-apiserver v0.32.3 // indirect
362360
k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01 // indirect
361+
k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9 // indirect
363362
k8s.io/klog v0.2.0 // indirect
363+
k8s.io/klog/v2 v2.130.1 // indirect
364364
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
365365
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
366366
lukechampine.com/blake3 v1.2.1 // indirect

hack/tools/third_party/conversion-gen/LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

hack/tools/third_party/conversion-gen/README.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)