Skip to content

Commit ed7cc85

Browse files
committed
Removed third party.
1 parent 18cdfab commit ed7cc85

File tree

498 files changed

+26
-270928
lines changed

Some content is hidden

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

498 files changed

+26
-270928
lines changed

Makefile

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,9 @@ endif
2121
#
2222
# Directories.
2323
#
24-
CLUSTER_API_DIR := third_party/cluster-api
25-
EXP_DIR := ${CLUSTER_API_DIR}/exp
2624
TOOLS_DIR=$(abspath ./tools)
2725
BIN_DIR=bin
2826
TOOLS_BIN_DIR := $(TOOLS_DIR)/$(BIN_DIR)
29-
GO_INSTALL := ./scripts/go_install.sh
30-
31-
# Helper function to get dependency version from go.mod
32-
get_go_version = $(shell go list -m $1 | awk '{print $$2}')
33-
34-
#
35-
# Binaries.
36-
#
37-
# Note: Need to use abspath so we can invoke these from subdirectories
38-
CONTROLLER_GEN_VER := v0.12.0
39-
CONTROLLER_GEN_BIN := controller-gen
40-
CONTROLLER_GEN := $(abspath $(TOOLS_BIN_DIR)/$(CONTROLLER_GEN_BIN)-$(CONTROLLER_GEN_VER))
41-
CONTROLLER_GEN_PKG := sigs.k8s.io/controller-tools/cmd/controller-gen
42-
43-
YQ_VER := v4.35.2
44-
YQ_BIN := yq
45-
YQ := $(abspath $(TOOLS_BIN_DIR)/$(YQ_BIN)-$(YQ_VER))
46-
YQ_PKG := github.com/mikefarah/yq/v4
4727

4828
.PHONY: all
4929
all: check build test
@@ -100,7 +80,7 @@ machine-healthcheck:
10080
$(DOCKER_CMD) ./hack/go-build.sh machine-healthcheck
10181

10282
.PHONY: vsphere
103-
vsphere: generate-third-party-deepcopy
83+
vsphere:
10484
$(DOCKER_CMD) ./hack/go-build.sh vsphere
10585

10686
.PHONY: machineset
@@ -155,15 +135,6 @@ goimports: ## Go fmt your code
155135
vet: ## Apply go vet to all go files
156136
$(DOCKER_CMD) hack/go-vet.sh ./pkg/... ./cmd/...
157137

158-
.PHONY: generate-third-party-deepcopy
159-
generate-third-party-deepcopy: $(CONTROLLER_GEN)
160-
$(MAKE) clean-generated-yaml SRC_DIRS="${CLUSTER_API_DIR}/crd"
161-
$(CONTROLLER_GEN) object paths="./third_party/cluster-api/..."
162-
$(CONTROLLER_GEN) \
163-
paths=./$(CLUSTER_API_DIR)/... \
164-
crd:crdVersions=v1 \
165-
output:crd:dir=./${CLUSTER_API_DIR}/crd
166-
167138
.PHONY: crds-sync
168139
crds-sync: ## Sync crds in install with the ones in the vendored oc/api
169140
$(DOCKER_CMD) hack/crds-sync.sh .
@@ -191,28 +162,6 @@ clean-bin: ## Remove all generated binaries
191162
rm -rf $(BIN_DIR)
192163
rm -rf $(TOOLS_BIN_DIR)
193164

194-
.PHONY: clean-generated-yaml
195-
clean-generated-yaml: ## Remove files generated by conversion-gen from the mentioned dirs. Example SRC_DIRS="./api/v1alpha4"
196-
(IFS=','; for i in $(SRC_DIRS); do find $$i -type f -name '*.yaml' -exec rm -f {} \;; done)
197-
198-
## --------------------------------------
199-
## Hack / Tools
200-
## --------------------------------------
201-
202-
##@ hack/tools:
203-
204-
.PHONY: $(CONTROLLER_GEN_BIN)
205-
$(CONTROLLER_GEN_BIN): $(CONTROLLER_GEN) ## Build a local copy of controller-gen.
206-
207-
.PHONY: $(YQ_BIN)
208-
$(YQ_BIN): $(YQ) ## Build a local copy of yq
209-
210-
$(CONTROLLER_GEN): # Build controller-gen from tools folder.
211-
GOBIN=$(TOOLS_BIN_DIR) GOFLAGS= $(GO_INSTALL) $(CONTROLLER_GEN_PKG) $(CONTROLLER_GEN_BIN) $(CONTROLLER_GEN_VER)
212-
213-
$(YQ):
214-
GOBIN=$(TOOLS_BIN_DIR) GOFLAGS= $(GO_INSTALL) $(YQ_PKG) $(YQ_BIN) ${YQ_VER}
215-
216165
define ensure-home
217166
@ export HOME=$${HOME:=/tmp/kubebuilder-testing}; \
218167
if [ $${HOME} == "/" ]; then \

cmd/vsphere/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020
"github.com/openshift/machine-api-operator/pkg/metrics"
2121
"github.com/openshift/machine-api-operator/pkg/util"
2222
"github.com/openshift/machine-api-operator/pkg/version"
23-
ipamv1beta1 "github.com/openshift/machine-api-operator/third_party/cluster-api/exp/ipam/api/v1beta1"
2423
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2524
"k8s.io/klog/v2"
2625
"k8s.io/klog/v2/textlogger"
26+
ipamv1beta1 "sigs.k8s.io/cluster-api/exp/ipam/api/v1beta1"
2727
ctrl "sigs.k8s.io/controller-runtime"
2828
"sigs.k8s.io/controller-runtime/pkg/cache"
2929
"sigs.k8s.io/controller-runtime/pkg/client/config"

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ require (
2727
k8s.io/klog/v2 v2.110.1
2828
k8s.io/kubectl v0.29.0
2929
k8s.io/utils v0.0.0-20240102154912-e7106e64919e
30+
sigs.k8s.io/cluster-api v1.6.1
3031
sigs.k8s.io/controller-runtime v0.17.0
3132
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240116121732-6747c42ce339
3233
sigs.k8s.io/yaml v1.4.0
@@ -35,7 +36,6 @@ require (
3536
require (
3637
github.com/golangci/golangci-lint v1.52.2
3738
golang.org/x/time v0.3.0
38-
sigs.k8s.io/cluster-api v1.6.1
3939
sigs.k8s.io/kube-storage-version-migrator v0.0.6-0.20230721195810-5c8923c5ff96
4040
)
4141

@@ -99,7 +99,6 @@ require (
9999
github.com/go-toolsmith/strparse v1.1.0 // indirect
100100
github.com/go-toolsmith/typep v1.1.0 // indirect
101101
github.com/go-xmlfmt/xmlfmt v1.1.2 // indirect
102-
github.com/gobuffalo/flect v1.0.2 // indirect
103102
github.com/gobwas/glob v0.2.3 // indirect
104103
github.com/gofrs/flock v0.8.1 // indirect
105104
github.com/gogo/protobuf v1.3.2 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ github.com/go-toolsmith/typep v1.1.0 h1:fIRYDyF+JywLfqzyhdiHzRop/GQDxxNhLGQ6gFUN
208208
github.com/go-toolsmith/typep v1.1.0/go.mod h1:fVIw+7zjdsMxDA3ITWnH1yOiw1rnTQKCsF/sk2H/qig=
209209
github.com/go-xmlfmt/xmlfmt v1.1.2 h1:Nea7b4icn8s57fTx1M5AI4qQT5HEM3rVUO8MuE6g80U=
210210
github.com/go-xmlfmt/xmlfmt v1.1.2/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM=
211-
github.com/gobuffalo/flect v1.0.2 h1:eqjPGSo2WmjgY2XlpGwo2NXgL3RucAKo4k4qQMNA5sA=
212-
github.com/gobuffalo/flect v1.0.2/go.mod h1:A5msMlrHtLqh9umBSnvabjsMrCcCpAyzglnDvkbYKHs=
213211
github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=
214212
github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
215213
github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw=

hack/crds-sync.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,13 @@
22

33
set -euo pipefail
44

5-
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
6-
7-
YQ_BIN=yq
8-
YQ_PATH=tools/bin/${YQ_BIN}
9-
10-
cd "${REPO_ROOT}" && make ${YQ_BIN} >/dev/null
11-
125
# map names of CRD files between the vendored openshift/api repository and the ./install directory
136
CRDS_MAPPING=( "vendor/github.com/openshift/api/machine/v1beta1/0000_10_machine.crd.yaml:0000_30_machine-api-operator_02_machine.crd.yaml"
147
"vendor/github.com/openshift/api/machine/v1beta1/0000_10_machineset.crd.yaml:0000_30_machine-api-operator_03_machineset.crd.yaml"
15-
"vendor/github.com/openshift/api/machine/v1beta1/0000_10_machinehealthcheck.yaml:0000_30_machine-api-operator_07_machinehealthcheck.crd.yaml"
16-
"third_party/cluster-api/crd/ipam.cluster.x-k8s.io_ipaddressclaims.yaml:0000_30_machine-api-operator_03_ipaddressclaims.crd.yaml"
17-
"third_party/cluster-api/crd/ipam.cluster.x-k8s.io_ipaddresses.yaml:0000_30_machine-api-operator_03_ipaddresses.crd.yaml")
8+
"vendor/github.com/openshift/api/machine/v1beta1/0000_10_machinehealthcheck.yaml:0000_30_machine-api-operator_07_machinehealthcheck.crd.yaml")
189

1910
for crd in "${CRDS_MAPPING[@]}" ; do
2011
SRC="${crd%%:*}"
2112
DES="${crd##*:}"
2213
cp "$SRC" "install/$DES"
23-
# Inject needed annotation if not found
24-
${YQ_PATH} -i -N '.metadata.annotations."exclude.release.openshift.io/internal-openshift-hosted" |= "true"' "install/$DES"
25-
${YQ_PATH} -i -N '.metadata.annotations."include.release.openshift.io/self-managed-high-availability" |= "true"' "install/$DES"
26-
${YQ_PATH} -i -N '.metadata.annotations."include.release.openshift.io/single-node-developer" |= "true"' "install/$DES"
2714
done

install/0000_30_machine-api-operator_03_ipaddressclaims.crd.yaml

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

0 commit comments

Comments
 (0)