argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.96k stars 5.47k forks source link

AppProject in ArgoCD is seen as an orphaned resource #5151

Open jsoref opened 3 years ago

jsoref commented 3 years ago

If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.

Checklist:

Describe the bug

Argo self managed resources appear as orphaned

To Reproduce

  1. Enable display of orphaned resources
  2. Add some ignore items for them
     ignore:
          - kind: ResourceQuota
          - kind: Secret
            name: sh.helm.release.v1.*
          - kind: Secret
            name: '*-tls'
  3. Go to the argocd application itself
  4. Show orphaned resources
  5. See Application - applications and AppProject - default

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

OrphanedResourceWarning - Application has 2 orphaned resources Application - applications and AppProject - default Application - applications AppProject - default

Version

{
    "Version": "v1.8.1+c2547dc",
    "BuildDate": "2020-12-10T02:59:21Z",
    "GitCommit": "c2547dca95437fdbb4d1e984b0592e6b9110d37f",
    "GitTreeState": "clean",
    "GoVersion": "go1.14.12",
    "Compiler": "gc",
    "Platform": "linux/amd64",
    "KsonnetVersion": "v0.13.1",
    "KustomizeVersion": "v3.8.1 2020-07-16T00:58:46Z",
    "HelmVersion": "v3.4.1+gc4e7485",
    "KubectlVersion": "v1.17.8",
    "JsonnetVersion": "v0.17.0"
}

Logs

Paste any relevant application logs here.
jessesuen commented 3 years ago

I think we should special case Application and AppProject and ApplicationSet as not orphaned resources.