Bug 1867607 - namespace of cluster should not need to be the same as the cluster name
Summary: namespace of cluster should not need to be the same as the cluster name
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Cluster Lifecycle
Version: rhacm-2.0.z
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Hao Liu
QA Contact: magchen@redthat.com
Christopher Dawson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-10 13:13 UTC by raffaele spazzoli
Modified: 2020-09-22 02:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-22 02:39:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github open-cluster-management backlog issues 4323 0 None None None 2020-09-22 02:38:06 UTC

Internal Links: 1939096

Description raffaele spazzoli 2020-08-10 13:13:28 UTC
Description of problem:
When a cluster is created via the webui all the resources relative to it are put in a namespace that is named as the cluster. This seems a nice default.
When creating a cluster from the CLI, there should be no constraint on the namespace in which all of the hive and RHACM resources are created.
Today of the name of the namespace is not the same as the cluster name, the cluster is created, but it is not linked to the web ui console.
The cluster remains in "pending" state for ever because the klusterlet resources are not correctly created in the managed cluster. These resources are not created because the syncset is never created. The sycnset is never created because the ACM operator expects the cluster name and namespace name to be the same.


Version-Release number of selected component (if applicable): 2.x


How reproducible: 100%


Steps to Reproduce:
create the needed ACM resources as per yaml panel in the webui, but in a namespace that is not the same as the cluster name.

Actual results:
cluster is created, but never linked to ACM. Pending state for ever.


Expected results:
cluster is created and linked.

Comment 1 Ginny Ghezzo 2020-09-22 02:39:31 UTC
Raffaele, 
Thank you for the recommendation and feedback. After review we have made a decision to map the namespace and names and for now will not be revisiting.

Thank you, 
Ginny


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