ROX-26026: Introduce registry to Scanner build matrix #13695
ROX-26026: Introduce registry to Scanner build matrix #13695
registry to Scanner build matrix #13695Conversation
|
Skipping CI for Draft Pull Request. |
registry to Scanner build matrix
|
Images are ready for the commit at 6adbae7. To use with deploy scripts, first |
738a083 to
17abb05
Compare
|
/test ? |
This comment was marked as outdated.
This comment was marked as outdated.
|
/retest |
For easier testing changes in PRs.
I gave lengthy explanation in one of commits in #13694 Referring to that if you need more info.
because I want to extend the build job's matrix with an extra attribute that' won't exist in the pre-build job.
for consistency with others.
This would double execution of job steps. Can we afford that?
Since the idea of this overall change is to disable GHA builds into quay.io/rhacs-eng/ for releases, we can simply switch to scan GHA-built images in quay.io/stackrox-io/ which should be there (at least we don't have plans to migrate them to Konflux at this point). Some nerdy extra context: In #13694, the similar change for `.github/workflows/build.yaml`, I could not do the same thing because of a situation with the `stackrox-operator` image: the one is only built into quay.io/rhacs-eng and not built into quay.io/stackrox-io. Therefore I had to introduce a matrix there for the `scan-images-with-roxctl` job. I was musing whether I should introduce the matrix here, in `.github/workflows/scanner-build.yaml`, as well for this `scan-images-with-roxctl` job. The benefit is consistency of workflows. The downside is more complexity to this workflow.
Here's a commit that makes `scan-images-with-roxctl` matrixized. If we like it I keep it. Otherwise, I'll just drop it and we'll stay with only checking quay.io/stackrox-io/ images.
17abb05 to
c45ce21
Compare
|
/retest |
RTann
left a comment
There was a problem hiding this comment.
thanks for doing this LGTM
tommartensen
left a comment
There was a problem hiding this comment.
LGTM pending one typo fix
|
@msugakov: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
Similar to #13694 the goal here is to make it possible to disable pushes to
quay.io/rhacs-eng/for release builds (which will be driven by Konflux).Unlike #13694 where the
.github/workflows/build.yamlworkflow is defined through branding, the.github/workflows/scanner-build.yamldoesn't have a notion of branding and so I felt introducing one would be too artificial given that the Scanner V4 doesn't have any conditional on the branding. Therefore, I introduce the "registry"quay.io/stackrox-io/quay.io/rhacs-engas the matrix parameter.This change can be reviewed by commits or in its eventual state.
Request for reviewers: an extra dimension for
build-and-push-scannerandpush-scanner-manifestswill lead to a double execution of some steps which means more GitHub minutes. Given that these will run in parallel, that we don't pay for these minutes, and that these jobs seem to be quick enough (~5 minutes), I hope the impact is ok to take. Please take a critical look let know if you won't be ok with that.Also note that this change will require adjusting required jobs for PR since the one set up earlier for Scanner isn't valid anymore. The effect is that everyone will have to rebase their PRs. That's ok we did such things before.

User-facing documentation
Testing and quality
Automated testing
No contributions to the automated testing.
How I validated my change