Bug 2053211

Summary: clusterSelector matchLabels spec are cleared when changing app name/namespace during creating an app in UI
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: Thuy Nguyen <thnguyen>
Component: App LifecycleAssignee: Feng Xiang <fxiang>
Status: CLOSED ERRATA QA Contact: Rafat Islam <rislam>
Severity: medium Docs Contact: bswope <bswope>
Priority: unspecified    
Version: rhacm-2.4.zCC: kcormier, xiangli, yuhe
Target Milestone: ---Flags: bot-tracker-sync: rhacm-2.4.z+
Target Release: rhacm-2.4.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-20 23:47:32 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 Thuy Nguyen 2022-02-10 16:55:49 UTC
Description of the problem: clusterSelector matchLabels are cleared when changing app name/namespace during creating an app in UI

Release version: ACM 2.4.2

Operator snapshot version: ACM 2.4.2 - RC2

OCP version: 4.9.8

Browser Info:

Steps to reproduce:
1. Navigate to App UI, click 'Create application' (yaml on)
2. Input app details, select 'Deploy app only on cluster matching specified labels, enter labels details 
3. Do not click 'Save', change the app name and/or namespace

Actual results:
The clusterSelector matchLabels in the placementrule spec section are cleared 

Expected results:
The placementrule metadata should be updated, not the spec

Additional info:

Comment 2 bot-tracker-sync 2022-04-11 16:11:51 UTC
G2Bsync 1095126406 comment 
 thuyn-581 Mon, 11 Apr 2022 14:30:47 UTC 
 G2BSync - 
Validated on 2.4.3-RC1

Comment 7 errata-xmlrpc 2022-04-20 23:47:32 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: Red Hat Advanced Cluster Management 2.4.3 security updates 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:1476