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

Unable to create app with nested kustomize configs: multiple application sources defined: Kustomize,Directory #21945

Open
Fak3 opened this issue Feb 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Fak3
Copy link

Fak3 commented Feb 22, 2025

In the repository https://github.com/Fak3/elect_hotline_deploy, my project has following structure:

base
├── kustomization.yaml
└── metrics
    └── grafana
        ├── dashboard-cluster.json
        ├── dashboard-django.json
        ├── grafana.yml
        └── kustomization.yml

Root kustomization.yaml has single line: resources: [ metrics/grafana/ ] which points to the nested metrics/grafana/ kustomize directory. I can successfully apply this project with kubectl apply -k base/.

But when i try to import the same git project into ArgoCD, I get the following error:

Unable to create application: error while validating and normalizing app: error validating the repo: error verifying source type: multiple application sources defined: Kustomize,Directory

To Reproduce

  1. Go to argocd web interface, click "New App"
  2. In this app creation dialog, fill this source git repo: https://github.com/Fak3/elect_hotline_deploy.git and source path base.
  3. Click "Create"

Result: error

Expected behavior

I expect argocd to create new app, with specified manifests, just like kubectl apply -k does.

Version

argocd: v2.14.2
  BuildDate: 2025-02-07T17:53:26Z
  GitCommit: v2.14.2
  GitTreeState: clean
  GitTag: v2.14.2
  GoVersion: go1.23.6
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.14.2+ad27246
  BuildDate: 2025-02-05T23:44:17Z
  GitCommit: ad2724661b66ede607db9b5bd4c3c26491f5be67
  GitTreeState: clean
  GoVersion: go1.23.3
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v5.4.3 2024-07-19T16:40:33Z
  Helm Version: v3.16.3+gcfd0749
  Kubectl Version: v0.31.0
  Jsonnet Version: v0.20.0
@Fak3 Fak3 added the bug Something isn't working label Feb 22, 2025
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