Bug 2050902 - not all resources created during import have common labels
Summary: not all resources created during import have common labels
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: divgupta
QA Contact: spathak@redhat.com
Depends On:
Blocks: 2059989
TreeView+ depends on / blocked
Reported: 2022-02-04 21:53 UTC by cvogt
Modified: 2022-08-10 10:47 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2022-08-10 10:47:24 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift console pull 11032 0 None open Bug 2050902: Fix to add labels to webhook secrets created during import 2022-02-10 11:40:56 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:47:40 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.