Bug 2050902

Summary: not all resources created during import have common labels
Product: OpenShift Container Platform Reporter: cvogt
Component: Dev ConsoleAssignee: divgupta
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: aos-bugs, divgupta, msaud, nmukherj, viraj
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:47:24 UTC Type: Bug
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:    
Bug Blocks: 2059989    

Description cvogt 2022-02-04 21:53:31 UTC
Description of problem:
Not all resources created during import from git have common labels.


Version-Release number of selected component (if applicable):
Likely all versions of console. But tested in 4.10


How reproducible:


Steps to Reproduce:
1. go to Add -> import from git
2. add public git repo. eg. https://github.com/sclorg/nginx-ex.git
3. set name to `nginx`
4. select a builder image if necessary
5. click create
6. click Secret in the left nav
7. go to `nginx-generic-webhook-secret


Actual results:
no labels applied

Expected results:
common labels should be applied to webhook secrets


Additional info:
It should be possible to delete all resources associated with an import by using the command line:
oc delete all -n <namespace> --selector=app.kubernetes.io/name=nginx

Note that if an application is assigned, the delete application action in topology correctly deletes all associated resources. Unfortunately there is no action to delete all resources when no application was assigned.

This is particularly important for users of the devsandbox who want to perform some clean up in their namespace.

Comment 2 Mohammed Saud 2022-02-17 12:08:37 UTC
Verified on:
Build:   4.11.0-0.nightly-2022-02-16-131355
Browser: Firefox 97

Comment 4 errata-xmlrpc 2022-08-10 10:47:24 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security 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-2022:5069