Skip to content

Commit 7279a0e

Browse files
Merge pull request #8357 from r4f4/capi-build-always
CORS-3477: hack: build capi + providers by default
2 parents 2b367c9 + c66138e commit 7279a0e

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

docs/dev/cluster-api.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ At a high level, the local control plane is responsible for:
2424
The Cluster API system is formed of a set of binaries. The core Cluster API manager, and the infrastructure providers are built using Go Modules in the `cluster-api` folder.
2525

2626
The binaries are built and packaged during the standard installer build process, `hack/build.sh`. Cluster API specific build flow is contained in the `hack/build-cluster-api.sh` script:
27-
- Only enabled if the `OPENSHIFT_INSTALL_CLUSTER_API` environment variable is set.
2827
- Builds (as needed) every binary listed as a Go Module in the `cluster-api` folder.
2928
- Downloads (as needed) the specified version of `envtest` to package `kube-apiserver` and `etcd`.
3029
- Produces a single `cluster-api.zip` file which is then copied in `pkg/clusterapi/mirror`.
3130

3231
To build an `openshift-install` binary with Cluster API bundled:
33-
- Set `export OPENSHIFT_INSTALL_CLUSTER_API=y`
34-
- Optionally `export SKIP_TERRAFORM=y` if you don't need to use Terraform.
32+
- Optionally `export SKIP_TERRAFORM=y` if you don't need to use Terraform.
3533
- Run `./hack/build.sh`, the binary is then produced in `bin/openshift-install`.

hack/build-cluster-api.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
set -e
44

5-
# Check if the OPENSHIFT_INSTALL_CLUSTER_API is not empty.
6-
if [ -z "${OPENSHIFT_INSTALL_CLUSTER_API}" ]; then
7-
return
8-
fi
9-
105
TARGET_OS_ARCH=$(go env GOOS)_$(go env GOARCH)
116
CLUSTER_API_BIN_DIR="${PWD}/cluster-api/bin/${TARGET_OS_ARCH}"
127
CLUSTER_API_MIRROR_DIR="${PWD}/pkg/clusterapi/mirror/"

hack/build.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ then
8080
fi
8181

8282
# build cluster-api binaries
83-
if [ -n "${OPENSHIFT_INSTALL_CLUSTER_API}" ]; then
84-
make -C cluster-api all
85-
copy_cluster_api_to_mirror
86-
fi
83+
make -C cluster-api all
84+
copy_cluster_api_to_mirror
8785

8886
GIT_COMMIT="${SOURCE_GIT_COMMIT:-$(git rev-parse --verify 'HEAD^{commit}')}"
8987
GIT_TAG="${BUILD_VERSION:-$(git describe --always --abbrev=40 --dirty)}"

0 commit comments

Comments
 (0)