Bug 2104961 - Subscription UI does not allow binding to label with empty value
Summary: Subscription UI does not allow binding to label with empty value
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: App Lifecycle
Version: rhacm-2.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: rhacm-2.6
Assignee: Xiangjing Li
QA Contact: Almen Ng
bswope@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-07 15:06 UTC by Ian Miller
Modified: 2022-09-13 20:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-13 20:06:28 UTC
Target Upstream Version:
Embargoed:
bot-tracker-sync: rhacm-2.5.z+
bot-tracker-sync: rhacm-2.6+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github stolostron backlog issues 24101 0 None None None 2022-07-07 18:23:24 UTC
Red Hat Product Errata RHSA-2022:6507 0 None None None 2022-09-13 20:06:41 UTC

Description Ian Miller 2022-07-07 15:06:39 UTC
Description of the problem: When creating a subscription via the Web UI/console the "Deploy application resources only on clusters matching specified labels" option allows the user to specify a label=value for binding to clusters. When the desired label on the clusters has the empty string for a value there is no way to specify this via the UI. The "value" field is a required field and the subscription cannot be created without it. For example, if I have a label on my ManagedCluster of:
app1: ""

Placing "" for the label value in the UI results in (copied from the YAML view on the same page):
spec:
  clusterSelector:
    matchLabels:
      'app1': '""'

Release version: 2.5.1

Operator snapshot version:

OCP version: 4.10.20

Browser Info: Chrome

Steps to reproduce:
1. Create application
2. Select by label
3. Attempt to leave label value empty

Actual results: Application does not create (label value required)

Expected results: Application can be created with label value of empty string

Additional info:

Comment 2 Ishmam Amin 2022-08-23 13:30:07 UTC
Expected Result is reached in ROSA environment

Comment 7 errata-xmlrpc 2022-09-13 20:06:28 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 (Critical: Red Hat Advanced Cluster Management 2.5.2 security fixes and bug fixes), 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:6507


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