Bug 1937356

Summary: Incorrect imagestream is shown as selected in knative service container image edit flow
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Dev ConsoleAssignee: divgupta
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: low Docs Contact:
Priority: low    
Version: 4.6CC: aos-bugs, nmukherj, spathak
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-05 13:56:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1936854    
Bug Blocks:    
Attachments:
Description Flags
Correct imagestream is shown as selected in knative service container image edit flow none

Description OpenShift BugZilla Robot 2021-03-10 13:13:25 UTC
+++ This bug was initially created as a clone of Bug #1936854 +++

Description of problem:
When support for selecting the runtime icon from the runtime icon dropdown was added to the edit flows the previous code for showing runtime icon for deployments created on creating an app using container image flow internal registry option was not properly cleaned up for knative service resource. Label 'app.kubernetes.io/name' which is used for getting the internal imagestream name is set incorrectly with runtime icon name instead of the imagestream name for knative service resource.

How reproducible: Always

Steps to Reproduce:
1.Create an app using container image internal registry option and resource as Knative Service.
2.Click on edit <app-name> action from node context menu.

Actual results:
Notice that in imagestream dropdown under internal registry option runtime icon name is shown instead of the previously selected imagestream.

Expected results:
Correct imagestream should be selected.

Additional info:

Comment 3 spathak@redhat.com 2021-03-29 11:41:38 UTC
Created attachment 1767315 [details]
Correct imagestream is shown as selected in knative service container image edit flow

Comment 4 spathak@redhat.com 2021-03-29 11:42:51 UTC
Verified on build version: 4.7.0-0.nightly-2021-03-27-082615
Browser: Google Chrome 89

Comment 6 errata-xmlrpc 2021-04-05 13:56:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.7.5 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1005