Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Object aliases are already widely used in Openshift / ACM. #84

Closed
thekoma opened this issue Mar 26, 2021 · 7 comments
Closed

Object aliases are already widely used in Openshift / ACM. #84

thekoma opened this issue Mar 26, 2021 · 7 comments
Labels
in_review Gathering information stale Pull requests/issues with no activity

Comments

@thekoma
Copy link

thekoma commented Mar 26, 2021

Describe the bug
Kubernetes resources and aliases are always different by the domain.
Same name resources are common and we often forget about it.
But in this case Nginx is using a resource that is already used in ACM driven environment.
That can lead to tedious cases.

To Reproduce
Install Open Cluster Manager (Red Hat Advanced Cluster Manager) and Nginx Ingress Controller Operator
Try to get a policy (There goes the problem which one?)

oc api-resources|egrep  '^NAME| plc | pol '
NAME                                  SHORTNAMES         APIGROUP                                       NAMESPACED   KIND
policies                              plc                policy.open-cluster-management.io              true         Policy
policies                              pol                k8s.nginx.org                                                 true         Policy

Workaround
You can either use the FQDN or the shortname

plc or policies.policy.open-cluster-management.io
pol or policies.k8s.nginx.org

Solution
No solution there apart changing the names
I won't get on who did it first.
But at least we have a trace in the issues.

@thekoma
Copy link
Author

thekoma commented Mar 26, 2021

@pleshakov
Copy link
Contributor

Hi @thekoma

How big is this problem in your opinion? What's the impact?

@thekoma
Copy link
Author

thekoma commented Mar 29, 2021

Hi @thekoma

How big is this problem in your opinion? What's the impact?

The problem is on the end user usability.
When the user want to list the policy it has to know that the object is policy.k8s.nginx.org
so all the instruction in the documentation should refer to the FQDN:
oc get policy.k8s.nginx.org
same per ACM:
oc get policy.policy.open-cluster-management.io (even more cacophonic . )

The real problem is "knowing this".

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale Pull requests/issues with no activity label May 29, 2021
@thekoma
Copy link
Author

thekoma commented May 31, 2021

/unstale

@github-actions github-actions bot removed the stale Pull requests/issues with no activity label Jun 1, 2021
@github-actions
Copy link

github-actions bot commented Aug 1, 2021

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale Pull requests/issues with no activity label Aug 1, 2021
@github-actions
Copy link

github-actions bot commented Aug 9, 2021

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as completed Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in_review Gathering information stale Pull requests/issues with no activity
Projects
None yet
Development

No branches or pull requests

2 participants