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

ignoreDifferences sometimes does not work #19834

Open
3 tasks done
aqeelat opened this issue Sep 8, 2024 · 1 comment
Open
3 tasks done

ignoreDifferences sometimes does not work #19834

aqeelat opened this issue Sep 8, 2024 · 1 comment
Labels
bug Something isn't working component:diffing

Comments

@aqeelat
Copy link

aqeelat commented Sep 8, 2024

Checklist:

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

Describe the bug

I have an ignoreDifferences in my config. Sometimes, I have to refresh the app for it to work. Sometimes it does not work at all.

To Reproduce
This issue is sporadic and I don't know what I need to reproduce it.
My setup is a private GKE cluster with latest argo version. Sometimes GKE adds these annotations to my services.
my values.yaml:

configs:
  cm:
    resource.customizations.ignoreDifferences.apps_Service: |
      jqPathExpressions:
        - '.metadata.annotations?.["cloud.google.com/l4-rbs"]'
        - '.metadata.annotations?.["cloud.google.com/neg"]'

Example service:

{
    "apiVersion": "v1",
    "kind": "Service",
    "metadata": {
        "annotations": {
            "cloud.google.com/l4-rbs": "enabled",
            "cloud.google.com/neg": "{\"ingress\":true}"
        },
        "creationTimestamp": "2024-08-12T14:20:04Z",
        "labels": {
            "app": "camunda-platform",
            "app.kubernetes.io/component": "operate",
            "app.kubernetes.io/instance": "camunda",
            "app.kubernetes.io/managed-by": "Helm",
            "app.kubernetes.io/name": "camunda-platform",
            "app.kubernetes.io/part-of": "camunda-platform",
            "app.kubernetes.io/version": "8.5.5",
            "argocd.argoproj.io/instance": "camunda",
            "helm.sh/chart": "camunda-platform-10.3.2"
        },
        "name": "camunda-operate",
        "namespace": "camunda",
        "resourceVersion": "145110382",
        "uid": "3ce53846-0b54-4d43-9b70-5432b8ca9906"
    },
    "spec": {
        "clusterIP": "10.57.237.105",
        "clusterIPs": [
            "10.57.237.105"
        ],
        "internalTrafficPolicy": "Cluster",
        "ipFamilies": [
            "IPv4"
        ],
        "ipFamilyPolicy": "SingleStack",
        "ports": [
            {
                "name": "http",
                "port": 80,
                "protocol": "TCP",
                "targetPort": 8080
            }
        ],
        "selector": {
            "app": "camunda-platform",
            "app.kubernetes.io/component": "operate",
            "app.kubernetes.io/instance": "camunda",
            "app.kubernetes.io/managed-by": "Helm",
            "app.kubernetes.io/name": "camunda-platform",
            "app.kubernetes.io/part-of": "camunda-platform"
        },
        "sessionAffinity": "None",
        "type": "ClusterIP"
    },
    "status": {
        "loadBalancer": {}
    }
}

Expected behavior

For the application to not be out of sync.

Version

{
    "Version": "v2.12.3+6b9cd82",
    "BuildDate": "2024-08-27T11:57:48Z",
    "GitCommit": "6b9cd828c6e9807398869ad5ac44efd2c28422d6",
    "GitTreeState": "clean",
    "GoVersion": "go1.22.4",
    "Compiler": "gc",
    "Platform": "linux/amd64",
    "KustomizeVersion": "v5.4.2 2024-05-22T15:19:38Z",
    "HelmVersion": "v3.15.2+g1a500d5",
    "KubectlVersion": "v0.29.6",
    "JsonnetVersion": "v0.20.0"
}

Logs

Paste any relevant application logs here.
@aqeelat aqeelat added the bug Something isn't working label Sep 8, 2024
@reggie-k
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:diffing
Projects
None yet
Development

No branches or pull requests

3 participants