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

[release-4.3] Bug 1813420: fix img reg ref on ICT if OCM knows img reg host before apiserver #75

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/image/controller/trigger/image_trigger_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (r tagRetriever) ImageStreamTag(namespace, name string) (ref string, rv int
streamCopy := is.DeepCopy()
// in case the api server has not yet picked up the internal registry hostname from the cluster wide
// OCM config, we use our copy here to facilitate leveraging pull through with local tag reference policy
streamCopy.Status.DockerImageRepository = r.internalRegistryHostname
streamCopy.Status.DockerImageRepository = fmt.Sprintf("%s/%s/%s", r.internalRegistryHostname, namespace, name)
ref, ok = imageutil.ResolveLatestTaggedImage(streamCopy, tag)
}
return ref, rv, ok
Expand Down