Open kuanf opened 2 years ago
We also see the same issue
I have run into this also, unfortunately taking quite some while to work out the issue !
same here, I stumbled into the same issue, thank you @kuanf for pointing out the alternative solutions
Checklist:
argocd version
.Describe the bug
Started to play ArgoCD recently and installed version 2.4.0+91aefab. I'm trying to use PlacementDecision from open-cluster-management as the cluster decision resource, and found that the
kind
in ConfigMap is actuallyresource
.my journey of discovering the problem:
At first, I created a ConfigMap
but applicationset controller complain that it does not have permission to list the resource even after I added it into it's Role. I have to change the resource in Role to '*' to work it around.
Then, the applicationset controller complains that it can not find any resource.
I noticed in the controller log, it says,
I also found previous log says
and think it might be a problem with Resource=PlacementDecision
So I changed the configmap to
and it worked.
@qiujian16 FYI.
To Reproduce
You can find PlacementDecision CRD here. https://raw.githubusercontent.com/open-cluster-management-io/placement/main/deploy/hub/0000_03_clusters.open-cluster-management.io_placementdecisions.crd.yaml but I think it doesn't really matter. the problem should exist to All CRDs.
Expected behavior
I think the k8s concept is misused here. kind should be
PlacementDecision
, while resource is placementdecisions. So, either accept the right kind or change the key to resource fixes the confusion.Screenshots
Version
Logs