Skip to content

Commit a0fb578

Browse files
Merge pull request #503 from mbaldessari/fix-ci4
Add a tools.go file and switch controller-gen to use it
2 parents b6f6091 + e10e070 commit a0fb578

223 files changed

Lines changed: 27285 additions & 980 deletions

File tree

Some content is hidden

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

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ endif
253253

254254
.PHONY: controller-gen
255255
controller-gen: ## Download controller-gen locally if necessary.
256-
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen,$(CONTROLLER_TOOLS_VERSION))
256+
go build -o $(LOCALBIN)/controller-gen-$(CONTROLLER_TOOLS_VERSION) sigs.k8s.io/controller-tools/cmd/controller-gen
257257

258258
.PHONY: kustomize
259259
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. If wrong version is installed, it will be removed before downloading.
@@ -262,7 +262,7 @@ $(KUSTOMIZE): $(LOCALBIN)
262262

263263
.PHONY: envtest
264264
envtest: ## Download envtest-setup locally if necessary.
265-
$(call go-install-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest,$(ENVTEST_VERSION))
265+
go build -o $(LOCALBIN)/setup-envtest-$(ENVTEST_VERSION) sigs.k8s.io/controller-runtime/tools/setup-envtest
266266

267267
.PHONY: govulncheck
268268
govulncheck: $(GOVULNCHECK) ## Download govulncheck

go.mod

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,28 @@ require (
1111
github.com/go-git/go-git/v5 v5.16.4
1212
github.com/go-logr/logr v1.4.3
1313
github.com/google/uuid v1.6.0
14-
github.com/onsi/ginkgo/v2 v2.27.3
15-
github.com/onsi/gomega v1.38.3
14+
github.com/onsi/ginkgo/v2 v2.27.4
15+
github.com/onsi/gomega v1.39.0
1616
github.com/openshift/api v3.9.1-0.20190916204813-cdbe64fb0c91+incompatible
1717
github.com/openshift/client-go v0.0.0-20240115204758-e6bf7d631d5e // release-4.16
1818
github.com/operator-framework/api v0.33.0
19-
github.com/operator-framework/operator-lifecycle-manager v0.33.0
19+
github.com/operator-framework/operator-lifecycle-manager v0.29.0
2020
github.com/segmentio/analytics-go/v3 v3.3.0
2121
go.uber.org/mock v0.6.0
22-
golang.org/x/crypto v0.46.0
22+
golang.org/x/crypto v0.47.0
2323
gopkg.in/yaml.v3 v3.0.1
2424
helm.sh/helm/v3 v3.18.6
2525
k8s.io/api v0.33.4
26-
k8s.io/apimachinery v0.33.4
26+
k8s.io/apimachinery v0.36.0-alpha.1
2727
k8s.io/client-go v12.0.0+incompatible
2828
sigs.k8s.io/controller-runtime v0.21.0
2929
)
3030

31-
require github.com/argoproj/argo-cd/v3 v3.0.19
31+
require (
32+
github.com/argoproj/argo-cd/v3 v3.0.19
33+
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20250308055145-5fe7bb3edc86
34+
sigs.k8s.io/controller-tools v0.16.4
35+
)
3236

3337
require (
3438
cloud.google.com/go/compute/metadata v0.9.0 // indirect
@@ -68,6 +72,7 @@ require (
6872
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
6973
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
7074
github.com/fatih/camelcase v1.0.0 // indirect
75+
github.com/fatih/color v1.18.0 // indirect
7176
github.com/fsnotify/fsnotify v1.9.0 // indirect
7277
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
7378
github.com/go-fed/httpsig v1.1.0 // indirect
@@ -91,6 +96,7 @@ require (
9196
github.com/go-openapi/swag/yamlutils v0.25.1 // indirect
9297
github.com/go-redis/cache/v9 v9.0.0 // indirect
9398
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
99+
github.com/gobuffalo/flect v1.0.3 // indirect
94100
github.com/gobwas/glob v0.2.3 // indirect
95101
github.com/gogo/protobuf v1.3.2 // indirect
96102
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
@@ -118,6 +124,8 @@ require (
118124
github.com/kylelemons/godebug v1.1.0 // indirect
119125
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
120126
github.com/lufia/plan9stats v0.0.0-20250827001030-24949be3fa54 // indirect
127+
github.com/mattn/go-colorable v0.1.13 // indirect
128+
github.com/mattn/go-isatty v0.0.20 // indirect
121129
github.com/mitchellh/copystructure v1.2.0 // indirect
122130
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
123131
github.com/mitchellh/reflectwalk v1.0.2 // indirect
@@ -150,6 +158,7 @@ require (
150158
github.com/shopspring/decimal v1.4.0 // indirect
151159
github.com/sirupsen/logrus v1.9.3 // indirect
152160
github.com/skeema/knownhosts v1.3.1 // indirect
161+
github.com/spf13/afero v1.12.0 // indirect
153162
github.com/spf13/cast v1.7.1 // indirect
154163
github.com/spf13/cobra v1.9.1 // indirect
155164
github.com/spf13/pflag v1.0.10 // indirect
@@ -168,19 +177,21 @@ require (
168177
go.uber.org/zap v1.27.0 // indirect
169178
go.yaml.in/yaml/v2 v2.4.3 // indirect
170179
go.yaml.in/yaml/v3 v3.0.4 // indirect
171-
golang.org/x/mod v0.30.0 // indirect
172-
golang.org/x/net v0.47.0 // indirect
180+
golang.org/x/mod v0.32.0 // indirect
181+
golang.org/x/net v0.49.0 // indirect
173182
golang.org/x/oauth2 v0.30.0 // indirect
174183
golang.org/x/sync v0.19.0 // indirect
175-
golang.org/x/sys v0.39.0 // indirect
176-
golang.org/x/term v0.38.0 // indirect
177-
golang.org/x/text v0.32.0 // indirect
184+
golang.org/x/sys v0.40.0 // indirect
185+
golang.org/x/term v0.39.0 // indirect
186+
golang.org/x/text v0.33.0 // indirect
178187
golang.org/x/time v0.12.0 // indirect
179-
golang.org/x/tools v0.39.0 // indirect
188+
golang.org/x/tools v0.40.0 // indirect
189+
golang.org/x/tools/go/expect v0.1.1-deprecated // indirect
190+
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect
180191
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
181192
google.golang.org/genproto/googleapis/rpc v0.0.0-20250929231259-57b25ae835d4 // indirect
182193
google.golang.org/grpc v1.75.1 // indirect
183-
google.golang.org/protobuf v1.36.9 // indirect
194+
google.golang.org/protobuf v1.36.11 // indirect
184195
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
185196
gopkg.in/inf.v0 v0.9.1 // indirect
186197
gopkg.in/warnings.v0 v0.1.2 // indirect

0 commit comments

Comments
 (0)