mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-01 05:47:17 +00:00
Its easy to misconfigure the Application if you use the Application creation wizard, because the default is 'Directory'. If you choose that, your kustomize repo won't work.
38 lines
1.3 KiB
Markdown
38 lines
1.3 KiB
Markdown
# Tool Detection
|
|
|
|
The tool used to build an application is detected as follows:
|
|
|
|
If a specific tool is explicitly configured, then that tool is selected to create your application's manifests.
|
|
|
|
The tool can be explicitly specified in the Application custom resource like this:
|
|
```
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
...
|
|
spec:
|
|
...
|
|
source:
|
|
...
|
|
|
|
# Tool -> plain directory
|
|
directory:
|
|
recurse: true
|
|
...
|
|
```
|
|
|
|
You also can select the tool in the Application creation wizard in the web user interface. The default is 'Directory'. Press the dropdown button beneath the tool name if you want to choose a different one.
|
|
|
|
|
|
If not, then the tool is detected implicitly as follows:
|
|
|
|
* **Ksonnet** if there are two files, one named `app.yaml` and one named `components/params.libsonnet`.
|
|
* **Helm** if there's a file matching `Chart.yaml`.
|
|
* **Kustomize** if there's a `kustomization.yaml`, `kustomization.yml`, or `Kustomization`
|
|
|
|
Otherwise it is assumed to be a plain **directory** application.
|
|
|
|
## References
|
|
|
|
* [reposerver/repository/repository.go/GetAppSourceType](https://github.com/argoproj/argo-cd/blob/master/reposerver/repository/repository.go#L286)
|
|
* [server/repository/repository.go/listAppTypes](https://github.com/argoproj/argo-cd/blob/master/server/repository/repository.go#L97)
|