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:
Expected Result is reached in ROSA environment
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