1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

39 Commits

Author SHA1 Message Date
Patrick Dillon
35931d17a3 images: bump images to go 4.20
openshift-bot created PRs to bump several images:

https://github.com/openshift/installer/pull/9801
https://github.com/openshift/installer/pull/9800
https://github.com/openshift/installer/pull/9799

But those didn't get all images. Bumping the rest here.
2025-07-28 13:21:18 -04:00
openshift-merge-bot[bot]
7eea2063f5 Merge pull request #9491 from joepvd/path-munging
OCPBUGS-50920: Rely on path declaration of base image
2025-02-19 14:59:51 +00:00
Joep van Delft
4a369c77f7 Rely on path declaration of base image
Starting with 4.19, the PATH environment variable is actively used
in CI to manage idempotent repositories that work both in CI as locally.
By overriding the PATH environment variable, machine-os-images gets
unfortunate repositories as a result. I suspect this path override can
just disappear.
2025-02-17 13:01:56 +01:00
Thuan Vo
3420ee9122 build: bump builder images to go 1.23 2025-01-24 13:31:46 -08:00
openshift-merge-bot[bot]
c35559a137 Merge pull request #8471 from r4f4/capi-bump-envtest-tools
OCPBUGS-34456: bump envtest binaries version
2024-06-08 13:18:13 +00:00
Rafael Fonseca
93fa8b1351 hack/images: skip envtest download in CI/release
Because of the way in which we rebase and build our kube fork, the
binary doesn't have minor versions set correctly. For example, version
1.29.5 appears as `v1.29.0-rc.1.3970+87992f48b0ead9-dirty` and that
breaks the version detection in our scripts.

Since we already have pre-built binaries in CI/release, there is no
reason for downloading those binaries. The only case in which it's
needed is for local dev. So we introduce an env var `SKIP_ENVTEST` to
skip the download when building images.
2024-05-25 16:39:01 +02:00
Rafael Fonseca
2ea580e030 images: bump builder to golang-1.22-openshift-1.17 2024-05-25 15:26:50 +02:00
Rafael Fonseca
d8a5cddb4e CORS-3250: images: use pre-built KAS/etcd binaries
We copy pre-built binaries from the `-artifacts` images when we want
statically linked binaries and from the regular etcd/hyperkube images
for dynamically linked binaries.

This is necessary to have capi and capi providers included in the
installer images both for CI and for the release payload.
2024-05-03 11:44:05 +02:00
Rafael Fonseca
f3d3cd11de CORS-2797: images: move container images to RHEL 9
Use RHEL 9 as a base for all our container images.
2024-04-29 20:49:35 +02:00
Trevor Vardeman
9ee73bd10d MULTIARCH-4111 - Updating CI image to include qemu-utils
In an effort to convert the libvirt IPI workflows to UPI, I will be using
qemu-img to increase the size of a qemu used for cluster node creation.
2024-04-24 12:16:54 -05:00
openshift-merge-bot[bot]
1529d2574e Merge pull request #8244 from zaneb/remove-libvirt-ipi
CORS-3420: Remove libvirt platform from openshift-baremetal-install
2024-04-15 14:42:30 +00:00
openshift-merge-bot[bot]
7c0a306860 Merge pull request #8259 from tvardema/MULTIARCH-4111-update-ci-image-to-include-virt-install
MULTIARCH-4111: Update the CI image with virt-install
2024-04-11 16:55:23 +00:00
Trevor Vardeman
de39ef7122 MULTIARCH-4111 Update the CI image with virt-install
Multiarch CI jobs in 4.16 and onward are moving to a UPI deployment strategy.  `virt-install` is needed in the CI image
to allow us to stand up the libvirt VMs for the cluster nodes.
2024-04-11 10:47:41 -05:00
Zane Bitter
b4351e8261 Use new build tag to differentiate dynamic build
When we linked to libvirt directly, having the libvirt platform in the
build was synonymous with a dynamically linked build. Now that we use a
pure-Go libvirt library, the build type can be independent of whether
libvirt is included.

Once the baremetal installer build no longer includes the libvirt
platform, we still want it to be dynamically linked.
2024-04-09 13:09:32 +12:00
Rafael Fonseca
5f871210f5 CORS-3418: images: move installer images to static builds
The baremetal-installer/libvirt-installer images continue being dynamically
built for FIPS support. For that reason it cannot reuse the existing
`terraform-providers` image. All other images will be statically built.
2024-04-03 12:19:32 +02:00
Zane Bitter
9a5b740921 Don't use libvirt-devel to build libvirt binary
This shouldn't be required any more because we no longer link to libvirt
itself.
2024-03-08 11:33:49 +13:00
Jeremy Poulin
825dce06c5 Updated libvirt installer to include multi-arch yq and symlink for backwards compatibility 2024-03-04 14:14:55 -05:00
Dominik Werle
0f885c1673 images: libvirt: add oc to libvirt CI image
For multi-architecture compute deployments for s390x on libvirt, we need
to extract cluster state and correct assets for spinning up nodes on a
second architecture via oc, then spin up nodes with libvirt client. oc
can be helpful for this purpose.

This is analogous to the UPI installer image (images/installer/Dockerfile.upi.ci#L14,L20)

Signed-off-by: Dominik Werle <dwerle@redhat.com>
2024-02-13 15:57:14 +01:00
Rafael Fonseca
52529326bf images: bump golang to 1.21 2024-01-27 10:10:06 +01:00
Rafael Fonseca
86ad16877f images: use pre-built terraform providers
Since https://github.com/openshift/release/pull/39563 there should be
now an `installer-terraform-providers` image in the CI namespace with
pre-built terraform provider binaries. If no changes are detected from
the last time the providers were built, we skip building the providers
which can save us around 1h in the CI tests.
2023-12-06 09:36:02 +01:00
Praveen Kumar
fcc4a89e04 images/libvirt/Dockerfile.ci: Use centos stream instead centos:7 2023-07-10 14:33:50 +05:30
Patrick Dillon
33109b7034 Bump to Go 1.20
Bumps core Installer to Go v1.20. Terraform and providers will be
updated separately.
2023-06-01 11:44:20 -04:00
deepsm007
db7deb6b2e Adding checksum for yq in libvirt installer containers 2022-09-08 10:50:11 -04:00
Rafael Fonseca
c55b1185a0 Update installer images to use golang 1.18 2022-07-25 21:53:55 +02:00
OpenShift Merge Robot
41474e68cd Merge pull request #5467 from miabbott/move_gcloud_el8
libvirt: use el8 repo for Google Cloud SDK
2022-04-21 01:45:09 -04:00
Ryan Cook
8e6a1e4503 images/libvirt: Proposed fix based on the changes to CRC code-ready/crc@b85050b
Currently, google-cloud-sdk is broken and issuing the following error when launching and running jobs.

err

Providing a specific version should allow jobs to no longer fail
2021-12-14 16:09:17 -05:00
Micah Abbott
fef2349858 libvirt: use el8 repo for Google Cloud SDK
The following error has been observed on the CI jobs using the
`libvirt-installer` image:

`ERROR: gcloud crashed (SystemError): ffi_prep_closure(): bad user_data (it seems that the version of the libffi library seen at runtime is different from the 'ffi.h' file seen at compile-time)`

See an example failed job - https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_installer/5452/pull-ci-openshift-installer-master-e2e-crc/1468627926126694400

This seems to coincide with version 366.0 of the Google Cloud SDK
which was released on Dec 7.

https://cloud.google.com/sdk/docs/release-notes#36600_2021-12-07

This changes the use of the el7 version of the SDK repo to use the 2l8
version.

I'm kind of surprised that things have been working as long as they
have because the `builder` image has been using UBI8 as the base image
for some time.
2021-12-08 17:15:51 -05:00
Yaakov Selkowitz
b214886cb7 Update CI to golang-1.17 2021-11-18 01:37:29 -05:00
Jeremiah Stuever
ff7f3a7d4b update registry.ci.openshift.org/ocp and origin images to 4.10 2021-11-16 09:42:46 -08:00
Evgeny Slutsky
f821cbe00a Bump golang to version 1.16
Signed-off-by: Evgeny Slutsky <eslutsky@redhat.com>
2021-08-31 14:59:23 +03:00
Vadim Rutkovsky
09664bf44f images: pass TAGS as build arg for the images
This would enable OKD CI to pass "okd" tag if necessary and reuse OCP images
2021-07-03 09:45:29 +02:00
Yaakov Selkowitz
729882a8a2 Set default cluster architecture based on build host
All installer binaries extracted from a payload, regardless of their
runtime OS or architecture, are built on the payload architecture.
Therefore, GOHOSTARCH can be used to assume the cluster architecture for
which its payload was built.  This is set through the Dockerfiles so that
manual builds of installer will continue to default to amd64.
2021-06-20 00:58:44 -04:00
staebler
55238b4d27 update golang-1.14 image references to golang1.15
Update references to registry.ci.openshift.org/ocp/builder:golang-1.14
with registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.8.

The exception is for images targeting rhel7, where the replacement is
registry.ci.openshift.org/ocp/builder:rhel-7-golang-1.15-openshift-4.8 instead.
2021-02-16 11:33:25 -05:00
staebler
4f4faead3d remove uses of registry.svc.ci.openshift.org
Replace references to registry.svc.ci.openshift.org with references
to registry.ci.openshift.org instead.
2021-02-16 11:30:49 -05:00
Abhinav Dahiya
46a5f49709 bump the minimum version for building installer to go 1.14
With Go 1.14 the handling of modules has improved in the sense that all the subcommands `go {test, generate}` now use the vendor when available by default. This makes it easier for us to run generate using the vendored tools like controller-tools etc. as it now uses the checked in vendor.
2020-07-06 12:19:20 -07:00
Prashanth Sundararaman
5983e96189 images: libvirt: add yq to libvirt CI image
For s390x/ppc64le we do some amount of yaml manipulation, for example: https://github.com/openshift/release/pull/9362
and we plan to add a volume size which will have increased disk space for certain tests. yq will be especially useful
and easier to use than sed for these manipulations.
2020-05-29 14:47:22 -04:00
Christian Glombek
8218eed083 Prepare migration to Go Modules and 1.13 2020-02-14 00:07:48 +01:00
Jeremy Poulin
c4808d3522 images/libvirt: remove epel-release
The base image used within OpenShift CI doesn't have access to
epel-release. Further, it's not required since the nss_wrapper package
is available.
2020-01-13 13:59:04 -08:00
Jeremy Poulin
f937982a62 images: add a new generic libvirt CI image
The current nested-libvirt CI image is capable of provisioning libvirt clusters by creating a GCE VM instance that has all of the libvirt dependencies and using it as a hypervisor. This new image supports that workflow as well as providing the dependencies for running a libvirt installation against a remote libvirt service hosted on external hardware. This requires access to the libvirt client locally, which the nested libvirt image did not provide.
2020-01-10 14:50:33 -05:00