argoproj / argoproj/argo-cd

AppProject in ArgoCD is seen as an orphaned resource

Open
#5,151 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
24.2k
Forks
7.9k
Avg merge
1d 6h
Merged PRs (30d)
239

Description

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](https://argoproj.github.io/community/join-slack).

Checklist:

* [x] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
* [x] I've included steps to reproduce the bug.
* [x] I've pasted the output of `argocd version`.

**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](https://user-images.githubusercontent.com/2119212/103312008-c36f7000-49e9-11eb-9e4b-7abc3e50e856.png)
![Application - applications and AppProject - default](https://user-images.githubusercontent.com/2119212/103312017-cf5b3200-49e9-11eb-8079-98bf860e2ace.png)
![Application - applications](https://user-images.githubusercontent.com/2119212/103312594-8ad09600-49eb-11eb-8ebb-799077da4d75.png)
![AppProject - default](https://user-images.githubusercontent.com/2119212/103312622-9a4fdf00-49eb-11eb-9892-2a3bfab2db9e.png)

**Version**

```shell
{
"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.
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the report with orphaned-resource display enabled and the listed ResourceQuota and Secret ignore rules, then inspect how the Argo CD application handles its Application and AppProject resources. Done means those self-managed resources are no longer shown as orphaned while unrelated orphaned resources remain visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.