Commit 52b6e47
STF 1.5.7 release ops (#697)
* Update ansible-core in CI (#662)
Updates the ansible-core version to 2.17.6 to fix several vulnerabilities existing in the current version (ansible-core==2.15.9).
By default, Python3.9 is available in Centos 9 Stream. Unfortunately, newer versions of ansible-core are not available for Python3.9, so this change also updates our CI to install and consume Python 3.12.
Also use kubernetes.core 5.0.0 in CI, we are already building STO with this version. Related commit a2ec384
* Fix CI readme
Jobs now run on OCP 4.16 and OCP 4.18. And we were missing the nighly bundles + index deploy jobs index description
* Fix Ansible-Core vulnerable to content protections bypass (#664)
A flaw was found in Ansible-Core. This vulnerability allows attackers
to bypass unsafe content protections using the hostvars object to reference
and execute templated content. This issue can lead to arbitrary code
execution if remote data or module outputs are improperly templated within
playbooks.
Affected versions >= 2.17.0b1, < 2.17.7rc1
Patched version 2.17.7rc1
* Use operator-sdk v1.39.2 (#666)
Using a newer operator-sdk will make dependency management a lot easier
for downstream hermetic build systems, like the ones used downstream.
It also lets us do away with using different versions for bundle
generation and deployment in our CI.
* Close stdin on workflow operator-sdk generate bundle calls
An open stdin makes operator-sdk assume it's supposed to take input from
stdin, when we actually want it to look at the working directory. There
is no way to avoid this using command-line flags, so we need to
explicitly close the stdin pipe in all calls to it.
* Bundle changes for Konflux support (#669)
* Use full pullspecs for related images
Renovate, used by Konflux for updating dependency references, works
better with full container pullspecs rather than separate repository
URLs and tags.
This lets us inject pullspecs pinned by digest, which don't quite follow
the repo:tag syntax.
* Don't set update graph metadata in CSV
This was originally added for the benefit of downstream builds, but
those are moving to file-based catalog fragments which don't need update
graph metadata to be embedded in the bundle.
* Refactor pullspec building to make it more readable
* Use /tmp instead of the base_dir to fetch CSV files
* Update selector to get builder-dockercfg secret name (#674)
Fix the step to properly gather the builder-dockercfg secret name. This is required to correctly set up the auth when building the index image
* Use sto/sgo_bundle_image_path_internal for the index (#675)
sto_bundle_image_path and sg_bundle_image_path variable names
are used already by some parts of the automation and there is
an overlap
* Refactor steps for getting bundles info for local builds
* Drop when clause for "Generate default package names" step
We already check the condition holds for the entire block
* Bump requests from 2.32.0 to 2.32.4 in /build/stf-run-ci (#672)
Bumps [requests](https://github.com/psf/requests) from 2.32.0 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.32.0...v2.32.4)
---
updated-dependencies:
- dependency-name: requests
dependency-version: 2.32.4
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Victoria Martinez de la Cruz <victoria@redhat.com>
* Set permissions explicitly to actions job (#676)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* bundle gen: allow passing in pre-generated bundle version (#678)
This improves our support for generating bundles as part of multistage
container builds, as a single pre-generated bundle version can be fed
into the generated bundle and into the bundle container labels.
RELDEL-7554
* Use crc-cloud image for OCP 4.18 jobs (#680)
coreos-crc-extracted-2-48-0-3xl is deprecated, the
replacement for it is crc-cloud-ocp-4-18-1-3xl
Available images are in https://review.rdoproject.org/zuul/labels
* Add support for deploy from catalog
Add __deploy_from_catalog and __stf_catalog_index_image_path options
to stf-run-ci.
This new option allows to create a CatalogSource using a pre-built
index image and deploy STF from it.
This is particularly useful to test package metadata issues that would
be invisible when testing bundles but very apparent when installing
from the actual catalog.
Closes: OSPRH-19028
* Update ansible-lint-ignore and fix linting issues
We had some pre-existing linting issues that reappeared when renaming
create_catalog.yml to create_index_image.yml. Update ansible-lint-ignore
to supress these warnings.
Also fixes create_catalog.yml linting issue (missing empty line at EOF)
* Update olm.maxOpenShiftVersion to 4.18
olm.maxOpenShiftVersion in STO should be 4.18 instead of 4.16
This wrongly set config is preventing STF users to easily perform
upgrades to the latest OCP supported version
Closes-Bug: OSPRH-18670
* [zuul] Add PR jobs to the periodic lines
Since there is less development in STF now, we don't run the PR jobs as
often. Running the jobs reqularly helps to find issues that crop up due
to changing deps, etc and make sure the jobs still work.
This change adds the jobs from the github-check pipeline into the
periodic line, ensuring that they run regularly.
* Use include_tasks instead of include_role
* Drop name from include_tasks
* Use catalogSource name and namespace for subscriptions
Update setup_stf to use infrawatch_operators and namespace
variables instead of hardwiring them.
We have some logic that could go away now that we can select
to deploy from a specific catalogsource. Precisely,
infrawatch_catalog_source_manifest param. This was being used
to pass a catalogsource manifest and deploy from it.
* Drop "Set default InfraWatch OperatorSource manifest"
This step is not longer useful since we can deploy from catalog
by passing a pre-built index image or by using the default
(which corresponds to the default in use here)
* Clean up setup and deploy logic
* Fix typo in catalog name for infrawatch_operators
* Add jobs for deploy_from_catalog (#685)
Add two jobs to test the deploy_from_catalog option
By default, it will use the index image in
https://quay.io/repository/infrawatch-operators/infrawatch-catalog
Test deploying from the two latest supported OCP versions
Closes: https://issues.redhat.com/browse/OSPRH-19031
* Enable all check jobs
* Update ansible-lint pinned version (#688)
Bump ansible-lint to 25.2.0
* Update ansible-lint-ignore with new linting issues
ansible-lint 25.2.0 introduces new linting rules that
we are not following. Add them to the ignore list.
* Pin to ansible 12.0.0
* Fix stf-run-ci mutually exclusive deployment flags (#686)
Fail when two or more of the non compatible deployment
options are set. To make the check simpler, convert them
to integers (where true becomes 1 and false becomes 0)
and check if their sum is greater than 1.
Closes-Bug: OSPRH-20165
* Use openshift-ansible-operator 4.20 in STO (#695)
Partially-Closes: OSPRH-21875
* Bump the major supported OCP version for STO to OCP 4.20 (#693)
* Bump the major supported OCP version for STO to OCP 4.20
* Drop OCP 4.16 from Dockerfile
* Add OCP 4.20 jobs (#694)
Add job definitions using crc-cloud-ocp-4-20-1-3xl as base image
* Update nodesets name to stf-crc_cloud-ocpX.Y
We no longer use crc extracted images, we now use crc cloud images
Update the naming accordingly
* Drop OCP 4.16 jobs
Closes: OSPRH-21881
Closes: OSPRH-21882
* Fix typo in build/stf-run-ci/README.md (#698)
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: migarcia <migarcia@redhat.com>
Co-authored-by: Emma Foley <elfiesmelfie@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Emma Foley <efoley@redhat.com>
Co-authored-by: Alex Yefimov <126113326+ayefimov-1@users.noreply.github.com>1 parent 61feee2 commit 52b6e47
15 files changed
Lines changed: 416 additions & 412 deletions
File tree
- .github/workflows
- build
- stf-run-ci
- defaults
- tasks
- ci
- deploy/olm-catalog/service-telemetry-operator
- metadata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
139 | 140 | | |
140 | | - | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | | - | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | | - | |
152 | | - | |
| 153 | + | |
| 154 | + | |
153 | 155 | | |
154 | | - | |
155 | | - | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | | - | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | | - | |
166 | | - | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | | - | |
169 | | - | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | | - | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | | - | |
180 | | - | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | | - | |
183 | | - | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
190 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
191 | 215 | | |
192 | 216 | | |
193 | 217 | | |
194 | 218 | | |
195 | 219 | | |
196 | 220 | | |
197 | 221 | | |
198 | | - | |
199 | 222 | | |
200 | | - | |
| 223 | + | |
201 | 224 | | |
202 | | - | |
| 225 | + | |
203 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
204 | 230 | | |
205 | 231 | | |
206 | 232 | | |
207 | 233 | | |
208 | 234 | | |
209 | 235 | | |
210 | 236 | | |
211 | | - | |
212 | 237 | | |
213 | | - | |
| 238 | + | |
214 | 239 | | |
215 | | - | |
| 240 | + | |
216 | 241 | | |
217 | | - | |
| 242 | + | |
| 243 | + | |
218 | 244 | | |
219 | 245 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | | - | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
158 | 173 | | |
159 | 174 | | |
160 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments