Closed grdryn closed 8 months ago
@grdryn: This pull request references RHOAIENG-2758 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: grdryn, MarianMacik
The full list of commands accepted by this bot can be found here.
The pull request process is described here
JIRA: https://issues.redhat.com/browse/RHOAIENG-1119
This is a preparatory change for RHOAIENG-1119, where we want to be able to use different image registries for the candidate image that the pipeline builds.
Description
Before this change, we were explicitly creating the imagestream for the candidate image from the build task, just so that we could set the value of
spec.lookupPolicy.local
totrue
. While we could have left the imagestream to be implicitly created with default config just by pushing an image with the equivalent name, this value would not have had the desired value.When the value of
spec.lookupPolicy.local
is at the default of false, then referring to an image by just<name>:<tag>
without fully qualifying it with the registry domain, then it would default to thedocker.io
registry, and ignore the repository with that name in the internal registry in the cluster.By setting the container image path to the fully qualified name, including the registry part (the same has how we specify it with in the parameter to the buildah task), then we don't need to care about the
spec.lookupPolicy.local
field, and can rely on the default creation of the ImageStream.How Has This Been Tested?
Pipeline has been run in a new namespace, where the ImageStream didn't exist.
Merge criteria: