Skip to main content

alpha.dagger.io/argocd

ArgoCD client operations

import "alpha.dagger.io/argocd"

argocd.#App

Create an ArgoCD application

argocd.#App Inputs

NameTypeDescription
config.version*"v2.0.5" \| stringArgoCD CLI binary version
config.serverstringArgoCD server
config.project*"default" \| stringArgoCD project
config.token*null \| {\n $dagger: {\n secret: {}\n }\n}ArgoCD authentication token
namestringApp name
repostringRepository url (git or helm)
pathstringFolder to deploy
server*"https://kubernetes.default.svc" \| stringDestination server
image.config.version*"v2.0.5" \| stringArgoCD CLI binary version
image.config.serverstringArgoCD server
image.config.project*"default" \| stringArgoCD project
image.config.token*null \| {\n $dagger: {\n secret: {}\n }\n}ArgoCD authentication token
namespace*"default" \| stringDestination namespace
env.APP_NAMEstring-
env.APP_REPOstring-
env.APP_PATHstring-
env.APP_SERVER*"https://kubernetes.default.svc" \| string-
env.APP_NAMESPACE*"default" \| string-

argocd.#App Outputs

No output.

argocd.#CLI

Re-usable CLI component

argocd.#CLI Inputs

NameTypeDescription
config.version*"v2.0.5" \| stringArgoCD CLI binary version
config.serverstringArgoCD server
config.project*"default" \| stringArgoCD project
config.token*null \| {\n $dagger: {\n secret: {}\n }\n}ArgoCD authentication token

argocd.#CLI Outputs

No output.

argocd.#Config

ArgoCD configuration

argocd.#Config Inputs

NameTypeDescription
version*"v2.0.5" \| stringArgoCD CLI binary version
serverstringArgoCD server
project*"default" \| stringArgoCD project
token*null \| {\n $dagger: {\n secret: {}\n }\n}ArgoCD authentication token

argocd.#Config Outputs

No output.

argocd.#Status

Get application's status

argocd.#Status Inputs

NameTypeDescription
config.version*"v2.0.5" \| stringArgoCD CLI binary version
config.serverstringArgoCD server
config.project*"default" \| stringArgoCD project
config.token*null \| {\n $dagger: {\n secret: {}\n }\n}ArgoCD authentication token
namestringArgoCD application

argocd.#Status Outputs

NameTypeDescription
outputs.healthstringApplication health
outputs.syncstringApplication sync state
outputs.namespacestringNamespace
outputs.serverstringServer
outputs.urlsstringComma separated list of application URLs
outputs.statestringLast operation state message

argocd.#Sync

Sync an application to its targer state

argocd.#Sync Inputs

NameTypeDescription
config.version*"v2.0.5" \| stringArgoCD CLI binary version
config.serverstringArgoCD server
config.project*"default" \| stringArgoCD project
config.token*null \| {\n $dagger: {\n secret: {}\n }\n}ArgoCD authentication token
applicationstringArgoCD application
wait*false \| boolWait the application to sync correctly
ctr.image.config.version*"v2.0.5" \| stringArgoCD CLI binary version
ctr.image.config.serverstringArgoCD server
ctr.image.config.project*"default" \| stringArgoCD project
ctr.image.config.token*null \| {\n $dagger: {\n secret: {}\n }\n}ArgoCD authentication token
ctr.env.APPLICATIONstring-
status.config.version*"v2.0.5" \| stringArgoCD CLI binary version
status.config.serverstringArgoCD server
status.config.project*"default" \| stringArgoCD project
status.config.token*null \| {\n $dagger: {\n secret: {}\n }\n}ArgoCD authentication token
status.namestringArgoCD application

argocd.#Sync Outputs

NameTypeDescription
status.outputs.healthstringApplication health
status.outputs.syncstringApplication sync state
status.outputs.namespacestringNamespace
status.outputs.serverstringServer
status.outputs.urlsstringComma separated list of application URLs
status.outputs.statestringLast operation state message