Skip to content

Commit e46dfa6

Browse files
committed
Moved openshift-tests-extension to its own project directory
1 parent c93292b commit e46dfa6

File tree

9 files changed

+1034
-130
lines changed

9 files changed

+1034
-130
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ machineset:
8989

9090
.PHONY: machine-api-tests-ext
9191
machine-api-tests-ext:
92-
$(DOCKER_CMD) ./hack/go-build.sh machine-api-tests-ext
92+
pushd openshift-tests-extension/cmd && \
93+
GO111MODULE=on CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) GOPROXY=$(GOPROXY) go build \
94+
-trimpath \
95+
-ldflags="$(LDFLAGS)" \
96+
-o=../../bin/machine-api-tests-ext
9397

9498
.PHONY: test-e2e
9599
test-e2e: ## Run openshift specific e2e tests

go.mod

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,13 @@ module github.com/openshift/machine-api-operator
22

33
go 1.24.0
44

5-
// These are needed for the OTE tests. Due to how we get the kubeconfig from the command line, there doesn't seem to be
6-
// an API yet we can leverage so that I do not have to copy what openshift/kubernetes/openshift-hack/cmd/k8s-tests-ext did to initialize.
7-
replace (
8-
github.com/onsi/ginkgo/v2 => github.com/openshift/onsi-ginkgo/v2 v2.6.1-0.20241205171354-8006f302fd12
9-
k8s.io/apiserver => github.com/openshift/kubernetes/staging/src/k8s.io/apiserver v0.0.0-20250716113245-b94367cabf3e // openshift kubernetes has very old copy of k8s.io/kubernetes/pkg/kubelet/server/server.go
10-
k8s.io/kubelet => github.com/openshift/kubernetes/staging/src/k8s.io/kubelet v0.0.0-20250716113245-b94367cabf3e // openshift kubernetes has very old copy of k8s.io/kubernetes/cmd/kubelet/app/options/options.go:
11-
k8s.io/kubernetes => github.com/openshift/kubernetes v1.30.1-0.20250716113245-b94367cabf3e //v1.30.1-0.20250704150419-38c60a516ecb
12-
)
13-
145
require (
156
github.com/blang/semver v3.5.1+incompatible
167
github.com/go-logr/logr v1.4.2
178
github.com/golangci/golangci-lint v1.64.8
189
github.com/google/uuid v1.6.0
1910
github.com/onsi/ginkgo/v2 v2.23.4
2011
github.com/onsi/gomega v1.37.0
21-
github.com/openshift-eng/openshift-tests-extension v0.0.0-20250711173707-dc2a20e5a5f8
2212
github.com/openshift/api v0.0.0-20251009093019-7837a801e8c1
2313
github.com/openshift/client-go v0.0.0-20250710075018-396b36f983ee
2414
github.com/openshift/cluster-api-actuator-pkg/testutils v0.0.0-20250718085303-e712b1ebf374
@@ -46,7 +36,6 @@ require (
4636
k8s.io/kubectl v0.33.3
4737
k8s.io/kubernetes v1.33.3
4838
k8s.io/mount-utils v0.33.3 // indirect
49-
k8s.io/sample-apiserver v0.33.3 // indirect
5039
k8s.io/utils v0.0.0-20241210054802-24370beab758
5140
sigs.k8s.io/cluster-api v1.9.4
5241
sigs.k8s.io/controller-runtime v0.20.1
@@ -75,16 +64,13 @@ require (
7564
github.com/MakeNowJust/heredoc v1.0.0 // indirect
7665
github.com/Masterminds/semver/v3 v3.3.0 // indirect
7766
github.com/Microsoft/go-winio v0.6.2 // indirect
78-
github.com/Microsoft/hnslib v0.1.1 // indirect
79-
github.com/NYTimes/gziphandler v1.1.1 // indirect
8067
github.com/OpenPeeDeeP/depguard/v2 v2.2.1 // indirect
8168
github.com/alecthomas/go-check-sumtype v0.3.1 // indirect
8269
github.com/alexkohler/nakedret/v2 v2.0.5 // indirect
8370
github.com/alexkohler/prealloc v1.0.0 // indirect
8471
github.com/alingse/asasalint v0.0.11 // indirect
8572
github.com/alingse/nilnesserr v0.1.2 // indirect
8673
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
87-
github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2 // indirect
8874
github.com/ashanbrown/forbidigo v1.6.0 // indirect
8975
github.com/ashanbrown/makezero v1.2.0 // indirect
9076
github.com/beorn7/perks v1.0.1 // indirect
@@ -104,14 +90,12 @@ require (
10490
github.com/charithe/durationcheck v0.0.10 // indirect
10591
github.com/chavacava/garif v0.1.0 // indirect
10692
github.com/ckaznocha/intrange v0.3.0 // indirect
107-
github.com/container-storage-interface/spec v1.9.0 // indirect
10893
github.com/containerd/containerd/api v1.8.0 // indirect
10994
github.com/containerd/errdefs v1.0.0 // indirect
11095
github.com/containerd/errdefs/pkg v0.3.0 // indirect
11196
github.com/containerd/log v0.1.0 // indirect
11297
github.com/containerd/ttrpc v1.2.6 // indirect
11398
github.com/containerd/typeurl/v2 v2.2.2 // indirect
114-
github.com/coreos/go-semver v0.3.1 // indirect
11599
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
116100
github.com/curioswitch/go-reassign v0.3.0 // indirect
117101
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
@@ -127,7 +111,6 @@ require (
127111
github.com/evanphx/json-patch v5.9.0+incompatible // indirect
128112
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
129113
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
130-
github.com/fatih/camelcase v1.0.0 // indirect
131114
github.com/fatih/color v1.18.0 // indirect
132115
github.com/fatih/structtag v1.2.0 // indirect
133116
github.com/felixge/httpsnoop v1.0.4 // indirect
@@ -158,7 +141,6 @@ require (
158141
github.com/godbus/dbus/v5 v5.1.0 // indirect
159142
github.com/gofrs/flock v0.12.1 // indirect
160143
github.com/gogo/protobuf v1.3.2 // indirect
161-
github.com/golang/protobuf v1.5.4 // indirect
162144
github.com/golangci/dupl v0.0.0-20250308024227-f665c8d69b32 // indirect
163145
github.com/golangci/go-printf-func-name v0.1.0 // indirect
164146
github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d // indirect
@@ -171,7 +153,7 @@ require (
171153
github.com/google/cel-go v0.23.2 // indirect
172154
github.com/google/gnostic-models v0.6.9 // indirect
173155
github.com/google/go-cmp v0.7.0 // indirect
174-
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
156+
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
175157
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
176158
github.com/gordonklaus/ineffassign v0.1.0 // indirect
177159
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
@@ -180,7 +162,6 @@ require (
180162
github.com/gostaticanalysis/forcetypeassert v0.2.0 // indirect
181163
github.com/gostaticanalysis/nilerr v0.1.1 // indirect
182164
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
183-
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
184165
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect
185166
github.com/hashicorp/go-immutable-radix/v2 v2.1.0 // indirect
186167
github.com/hashicorp/go-version v1.7.0 // indirect
@@ -201,15 +182,13 @@ require (
201182
github.com/kkHAIKE/contextcheck v1.1.6 // indirect
202183
github.com/kulti/thelper v0.6.3 // indirect
203184
github.com/kunwardeep/paralleltest v1.0.10 // indirect
204-
github.com/kylelemons/godebug v1.1.0 // indirect
205185
github.com/lasiar/canonicalheader v1.1.2 // indirect
206186
github.com/ldez/exptostd v0.4.2 // indirect
207187
github.com/ldez/gomoddirectives v0.6.1 // indirect
208188
github.com/ldez/grignotin v0.9.0 // indirect
209189
github.com/ldez/tagliatelle v0.7.1 // indirect
210190
github.com/ldez/usetesting v0.4.2 // indirect
211191
github.com/leonklingele/grouper v1.1.2 // indirect
212-
github.com/libopenstorage/openstorage v1.0.0 // indirect
213192
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
214193
github.com/macabu/inamedparam v0.1.3 // indirect
215194
github.com/magiconair/properties v1.8.7 // indirect
@@ -231,7 +210,6 @@ require (
231210
github.com/moby/term v0.5.0 // indirect
232211
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
233212
github.com/modern-go/reflect2 v1.0.2 // indirect
234-
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
235213
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
236214
github.com/moricho/tparallel v0.3.2 // indirect
237215
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
@@ -244,7 +222,6 @@ require (
244222
github.com/opencontainers/cgroups v0.0.1 // indirect
245223
github.com/opencontainers/go-digest v1.0.0 // indirect
246224
github.com/opencontainers/image-spec v1.1.1 // indirect
247-
github.com/opencontainers/runc v1.2.5 // indirect
248225
github.com/opencontainers/runtime-spec v1.2.0 // indirect
249226
github.com/opencontainers/selinux v1.11.1 // indirect
250227
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
@@ -306,11 +283,7 @@ require (
306283
gitlab.com/bosi/decorder v0.4.2 // indirect
307284
go-simpler.org/musttag v0.13.0 // indirect
308285
go-simpler.org/sloglint v0.9.0 // indirect
309-
go.etcd.io/etcd/api/v3 v3.5.21 // indirect
310-
go.etcd.io/etcd/client/pkg/v3 v3.5.21 // indirect
311-
go.etcd.io/etcd/client/v3 v3.5.21 // indirect
312286
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
313-
go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful v0.42.0 // indirect
314287
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.59.0 // indirect
315288
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
316289
go.opentelemetry.io/otel v1.34.0 // indirect
@@ -320,7 +293,6 @@ require (
320293
go.opentelemetry.io/otel/sdk v1.33.0 // indirect
321294
go.opentelemetry.io/otel/trace v1.34.0 // indirect
322295
go.opentelemetry.io/proto/otlp v1.4.0 // indirect
323-
go.uber.org/atomic v1.9.0 // indirect
324296
go.uber.org/automaxprocs v1.6.0 // indirect
325297
go.uber.org/multierr v1.11.0 // indirect
326298
go.uber.org/zap v1.27.0 // indirect
@@ -330,7 +302,7 @@ require (
330302
golang.org/x/mod v0.24.0 // indirect
331303
golang.org/x/oauth2 v0.27.0 // indirect
332304
golang.org/x/sync v0.14.0 // indirect
333-
golang.org/x/sys v0.31.0 // indirect
305+
golang.org/x/sys v0.32.0 // indirect
334306
golang.org/x/term v0.30.0 // indirect
335307
golang.org/x/text v0.25.0 // indirect
336308
golang.org/x/tools v0.31.0 // indirect
@@ -340,22 +312,18 @@ require (
340312
google.golang.org/grpc v1.70.0 // indirect
341313
google.golang.org/protobuf v1.36.5 // indirect
342314
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
343-
gopkg.in/go-jose/go-jose.v2 v2.6.3 // indirect
344315
gopkg.in/inf.v0 v0.9.1 // indirect
345316
gopkg.in/ini.v1 v1.67.0 // indirect
346-
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
347317
gopkg.in/warnings.v0 v0.1.2 // indirect
348318
gopkg.in/yaml.v2 v2.4.0 // indirect
349319
gopkg.in/yaml.v3 v3.0.1 // indirect
350320
honnef.co/go/tools v0.6.1 // indirect
351321
k8s.io/apiextensions-apiserver v0.33.2 // indirect
352322
k8s.io/cli-runtime v0.33.3 // indirect
353323
k8s.io/cloud-provider v0.32.0 // indirect
354-
k8s.io/cluster-bootstrap v0.31.3 // indirect
355324
k8s.io/component-helpers v0.33.3 // indirect
356325
k8s.io/controller-manager v0.32.1 // indirect
357326
k8s.io/cri-api v0.33.3 // indirect
358-
k8s.io/kms v0.33.3 // indirect
359327
k8s.io/kube-aggregator v0.33.2 // indirect
360328
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
361329
k8s.io/kubelet v0.33.3 // indirect

0 commit comments

Comments
 (0)