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

Apps of apps remote cluster unpredictable sync #20487

Open
kotyara85 opened this issue Oct 22, 2024 · 0 comments
Open

Apps of apps remote cluster unpredictable sync #20487

kotyara85 opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kotyara85
Copy link

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

I'm using app of apps and want to use one mgmt cluster to manage a swarm of clusters.
The idea is simple, you can push charts from a single mgmt cluster.
What's weird, let's say I created an app of apps and pointed to a destination cluster, argocd rendered it -

argoproj.io/Application/cluster-example-com/auth

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  annotations:
    argocd.argoproj.io/sync-wave: '-1'
  labels:
    argocd.argoproj.io/instance: cluster-example-com_apps
  name: auth
  namespace: cluster-example-com
spec:
  destination:
    namespace: kube-system
    server: 'https://100.100.100.100:443'
  project: default
  source:
    chart: auth
    repoURL: 'https://artifactory.example.com/artifactory/helm-virtual'
    targetRevision: 0.1.*
  syncPolicy:
    syncOptions:
      - CreateNamespace=true
      - RespectIgnoreDifferences=true

If I create it manually, it works as expected, argocd on the other hand is trying to create this app in the destination cluster and errors out with - namespace cluster-example-com doesn't exist.

Am I missing something here? I just want these apps to get created in the mgmt cluster under ns cluster-example-com

Thanks

@kotyara85 kotyara85 added the bug Something isn't working label Oct 22, 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