Bug 2089221

Summary: Could not de-select a Git Secret in add and edit forms
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Avik Kundu <akundu>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: low Docs Contact: Shreya Siddhartha <ssiddhar>
Priority: medium    
Version: 4.7CC: akundu, cbremble, nmukherj
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.12 Doc Type: Bug Fix
Doc Text:
* Previously, the users could not deselect a Git secret in add and edit forms. As a result, the resources had to be recreated. This fix resolves the issue by adding the option to choose `No Secret` in the select secret option list. As a result, the users can easily select, deselect, or detach any attached secrets. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2089221[*BZ#2089221*])
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 19:48:59 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:

Description Christoph Jerolimov 2022-05-23 09:16:05 UTC
Description of problem:
As a user I want has an option to de-select the Git Secret in the add and edit forms. But the dropdown that shows all possibles Secrets has no option to do this.

Version-Release number of selected component (if applicable):
4.7+

How reproducible:
Always

Steps to Reproduce:
1. Navigate to "Development" perspective, Add, "Import from Git"
2. Enter a git URL (public or private doesn't matter)
3. Open the advanced Git options
4. Select "Source secret" and create a Secret if needed
5. Try to de-select it

After creating the Deployment
6. Right click the Deployment, choice "Edit <deployment-name>"
7. Open the advanced Git options
8. Try to de-select it (same issue)

Actual results:
It's not possible to de-select the secret.

Expected results:
The select should show a clear button when a Secret is selected.

Additional info:
https://www.patternfly.org/v4/components/select onClear?

Comment 2 Christoph Jerolimov 2022-08-03 23:30:26 UTC
Verified on 4.12.0-0.nightly-2022-08-03-175737

Comment 5 errata-xmlrpc 2023-01-17 19:48:59 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.12.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:7399