Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create index image from pre-built bundles #597

Merged
merged 30 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6ee0eb7
Create index image from pre-built bundles
vkmc May 14, 2024
74bbee9
Fix set_fact syntax for SGO/SGO bundle info dicts
vkmc May 16, 2024
ceb4a76
Add ImageStreams for STO and SGO
vkmc May 16, 2024
26e7d1e
Fix minor typo in STO/SGO bundle info dict
vkmc May 17, 2024
d57d5dd
Set correct STO and SGO bundles path
vkmc May 17, 2024
aac433f
Drop build number from SGO and STO bundles
vkmc May 17, 2024
119acab
Get STO and SGO tags from the bundle path
vkmc May 17, 2024
048d6db
Fix typo on SGO and STO images path
vkmc May 17, 2024
af85993
Merge branch 'master' into vkmc-STF-1747-index_with_prebuilt_bundles
vkmc May 21, 2024
e1d5108
Update README with bundle + index instructions
vkmc May 21, 2024
c0ac16b
Use stf_channel on the deploy_stf step
vkmc May 22, 2024
7ae3da1
Merge branch 'master' into vkmc-STF-1747-index_with_prebuilt_bundles
vkmc Jun 18, 2024
6248fb3
Update missing reference to SGO bundles channel
vkmc Jun 18, 2024
43c9103
Merge branch 'master' into vkmc-STF-1747-index_with_prebuilt_bundles
vkmc Jun 18, 2024
9f1ed9b
Merge branch 'master' into vkmc-STF-1747-index_with_prebuilt_bundles
vkmc Jun 18, 2024
b14f51d
Merge branch 'master' into vkmc-STF-1747-index_with_prebuilt_bundles
vkmc Jun 20, 2024
e3ecc7f
Update some logic paths to simplify the execution
vkmc Jul 3, 2024
49dabbf
Honor the stf_channel variable
vkmc Jul 3, 2024
642df50
Get opm for getting bundles information
vkmc Jul 8, 2024
c1d9db3
Get the operator bundle version for STO and SGO
vkmc Jul 8, 2024
d6a51df
Set a default version for opm
vkmc Jul 8, 2024
1050227
Fix typo when executing opm render
vkmc Jul 8, 2024
9786c8d
Revert "Fix typo when executing opm render"
vkmc Jul 8, 2024
1ac352d
Revert "Set a default version for opm"
vkmc Jul 8, 2024
cceff90
Revert "Get the operator bundle version for STO and SGO"
vkmc Jul 8, 2024
404afe9
Revert "Get opm for getting bundles information"
vkmc Jul 8, 2024
e77b986
Get STO and SGO operator bundle version using oc
vkmc Jul 8, 2024
8b74361
Get STO and SGO bundle versions from info
vkmc Jul 8, 2024
cfc3abc
Add extra logic to avoid variables overwrite
vkmc Jul 9, 2024
c20e264
Merge branch 'master' into vkmc-STF-1747-index_with_prebuilt_bundles
vkmc Jul 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Get opm for getting bundles information
We need opm to get the bundle version when deploying
from index with pre-built bundles

Get opm following the same logic we use for operator-sdk
  • Loading branch information
vkmc committed Jul 8, 2024
commit 642df50f8171b5709638c407cbc552df49068f27
16 changes: 16 additions & 0 deletions build/get_opm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -x

REL=$(dirname "$0")
VERSION="$1"
OPM_DL_URL=https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${VERSION}

if [[ ! -f ${REL}/working/opm-${VERSION} ]]; then
mkdir -p ${REL}/working
curl -L ${OPM_DL_URL}/opm-linux-${VERSION}.tar.gz -o ${REL}/working/opm-${VERSION}
chmod +x ${REL}/working/opm-${VERSION}
rm -f ${REL}/working/opm-linux-${VERSION}.tar.gz
fi

set +x
7 changes: 7 additions & 0 deletions build/stf-run-ci/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@
creates: "{{ base_dir }}/working/operator-sdk-{{ operator_sdk_v1 }}"
chdir: "{{ base_dir }}"

- name: Get opm (deploy from index with pre-built bundles)
when: __deploy_from_bundles_enabled | bool and __deploy_from_index_enabled | bool
ansible.builtin.command:
cmd: "{{ base_dir }}/get_opm.sh {{ ocp_version }}"
creates: "{{ base_dir }}/working/opm-{{ ocp_version }}"
chdir: "{{ base_dir }}"

- name: Set logfile_dir
when: not (logfile_dir is defined)
ansible.builtin.set_fact:
Expand Down