Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing an Application with RespectIgnoreDifferences empties everything inside the ignore within the Applicationset #17949

Open
DJGizmof opened this issue Apr 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DJGizmof
Copy link

We have an Application with an ignoreDifferences:

apiVersion: argoproj.io/v1alpha1
kind: Application
...
spec:
  ignoreDifferences:
      - group: argoproj.io
        jsonPointers:
          - /spec/generators
        kind: ApplicationSet
        name: appset-name
...

We also have an applicationSet holding the data:

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
spec:
  generators:
    - list:
        elements:
          - branch: a-branch
            sanitized_branch: a_branch
          - branch: another-branch
            sanitized_branch: another-branch

When the sync on the application is run, we end up with the following data inside the ApplicationSet:

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
spec:
  generators:
    - list: {}

In previous version(s) of ArgoCD we ended up with the same data as before the sync.
The expected behavior would be that the whole generator-list remains untouched.

We experienced this bug with Argocd Version:
{
"Version": "v2.10.5+335875d",
"BuildDate": "2024-04-04T12:32:14Z",
"GitCommit": "335875d13e018bed6e03873f4742582582964745",
"GitTreeState": "clean",
"GoVersion": "go1.21.7 (Red Hat 1.21.7-1.module+el8.10.0+21318+5ea197f8)",
"Compiler": "gc",
"Platform": "linux/amd64",
"KustomizeVersion": "v5.2.1 unknown",
"HelmVersion": "v3.14.0+g2a2fb3b",
"KubectlVersion": "v0.26.11",
"JsonnetVersion": "v0.20.0",
"ExtraBuildInfo": "{Vendor Information: Red Hat OpenShift GitOps version: v1.12.1}"
}

@DJGizmof DJGizmof added the bug Something isn't working label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant