argoproj / gitops-engine

Democratizing GitOps
https://pkg.go.dev/github.com/argoproj/gitops-engine?tab=subdirectories
Apache License 2.0
1.7k stars 260 forks source link

error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" #424

Closed durgell-bl closed 2 years ago

durgell-bl commented 2 years ago

After a recent upgrade to argo-cd v2.4.3 coming from v2.2.x we're seeing the following error in argocd-application-controller component:

time="2022-07-04T16:18:16Z" level=error msg="warning loading openapi schema" error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" server="https://172.16.8.2"
time="2022-07-04T16:18:17Z" level=error msg="warning loading openapi schema" error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" server="https://172.16.8.2"
time="2022-07-04T16:18:25Z" level=error msg="warning loading openapi schema" error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" server="https://kubernetes.default.svc"
time="2022-07-04T16:18:25Z" level=error msg="warning loading openapi schema" error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" server="https://kubernetes.default.svc"
time="2022-07-04T16:18:36Z" level=error msg="warning loading openapi schema" error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" server="https://172.16.8.2"
time="2022-07-04T16:18:36Z" level=error msg="warning loading openapi schema" error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" server="https://172.16.8.2"
time="2022-07-04T16:18:41Z" level=error msg="warning loading openapi schema" error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" server="https://172.16.8.2"
time="2022-07-04T16:18:43Z" level=error msg="warning loading openapi schema" error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" server="https://172.16.8.2"
time="2022-07-04T16:18:44Z" level=error msg="warning loading openapi schema" error="error creating gvk parser: duplicate entry for /v1, Kind=APIGroup" server="https://172.16.8.2"

The error is constantly outputed, as you can see it is being reported for both clusters we have under argo-cd management.

I guess it is very related to this last commit from release v0.7.0 @leoluz

Let me know if you need more information and I'll gladly help in troubleshooting this issue as I'm a bit lost.

Argo CD Server version:

{
    "Version": "v2.4.3+471685f",
    "BuildDate": "2022-06-27T21:02:55Z",
    "GitCommit": "471685feae063c1c2e36a5ff268c4da87c697b85",
    "GitTreeState": "clean",
    "GoVersion": "go1.18.3",
    "Compiler": "gc",
    "Platform": "linux/amd64",
    "KustomizeVersion": "v4.4.1 2021-11-11T23:36:27Z",
    "HelmVersion": "v3.8.1+g5cb9af4",
    "KubectlVersion": "v0.23.1",
    "JsonnetVersion": "v0.18.0"
}
durgell-bl commented 2 years ago

Wrong account