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

Metadata.name changed in for all Kubernetes components in apps of apps #18010

Open
lakshmipasala opened this issue Apr 28, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@lakshmipasala
Copy link

we are using Argocd(tools) to deploy argocd and other components on multiple k8s clusters using apps of apps. I have upgraded argocd from 2.5.2 to 2.82, after upgraded, all the Argocd's metadata.name, app.kubernetes.io/instance in apps of apps got changed from "argocd" to "cluster1-argocd", due that application is creating new deployments, svc, sts etc with new names and ready to delete old deployment if prune it. Can you please suggest here..

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: argocd-appset
spec:
syncPolicy:
preserveResourcesOnDeletion: true
generators:

  • git:
    repoURL: repo url for the config files
    revision: master
    files:
    • path: cluster1
    • path: clsuter2
      template:
      metadata:
      name: '{{cluster.name}}-argocd'
      spec:
      project: default
      syncPolicy:
      syncOptions:
      • CreateNamespace=true
      • ApplyOutOfSyncOnly=true
        source:
        chart: argo-cd
        plugin:
        env:
        • name: APPLICATION_NAME
          value: argocd
        • name: HELM_VALUES
          value: |
          {{ argocd.values }}
          repoURL: XXXX
          targetRevision: '{{ argocd.version }}'
          destination:
          server: '{{cluster.address}}'
          namespace: argocd
@lakshmipasala lakshmipasala added the bug Something isn't working label Apr 28, 2024
@rumstead
Copy link
Contributor

Your appset is templating out the name to be name: '{{cluster.name}}-argocd'.

@lakshmipasala
Copy link
Author

But same thing was not happening on privious version

@rumstead
Copy link
Contributor

I am having a hard time following. Can you describe how you upgraded Argo CD? Argo CD isn't going to change any of your existing ApplicationSets, if your metadata.name was "argocd" before something changed it to {{cluster.name}}-argocd which will delete and create your applicationsets and possibility your applications.

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

2 participants