ArgoCD
kind: argocd
Description
The argocd
Autodiscovery plugin allows to automatically search and update content in ArgoCD configuration file.
Updatecli proposes Helm Chart update when it identifies both a Helm chart with a targetRevision.
Manifests
Parameters
Name | Type | Description | Required |
---|---|---|---|
ignore | array | Ignore allows to specify rule to ignore autodiscovery a specific Argocd manifest based on a rule | |
charts | object | Charts specifies the list of Helm Chart repository to check | |
path | string | Path specifies a Argocd file path pattern, the pattern requires to match all of name, not just a subpart of the path. | |
repositories | array | Repositories specifies the list of Helm Chart repository to check | |
only | array | Only allows to specify rule to only autodiscover manifest for a specific ArgoCD manifest based on a rule | |
charts | object | Charts specifies the list of Helm Chart repository to check | |
path | string | Path specifies a Argocd file path pattern, the pattern requires to match all of name, not just a subpart of the path. | |
repositories | array | Repositories specifies the list of Helm Chart repository to check | |
rootdir | string | RootDir defines the root directory used to recursively search for ArgoCD manifest | |
versionfilter | object | versionfilter provides parameters to specify the version pattern used when generating manifest. kind - semver
versionfilter of kind kind - regex
versionfilter of kind example:
| |
kind | string | specifies the version kind such as semver, regex, or latest | |
pattern | string | specifies the version pattern according the version kind | |
strict | boolean | strict enforce strict versioning rule. Only used for semantic versioning at this time |
Example
# updatecli.d/default.yaml
name: Argocd Autodiscovery Example
autodiscovery:
# scmid is applied to all crawlers
scmid: default
# actionid is applied to all crawlers
actionid: default
crawlers:
argocd:
# To ignore specific path
ignore:
# Ignore manifest match path "dev/*.yaml"
- path: dev/*.yaml
# Ignore any Helm chart named "kubewarden-crds"
- charts:
"kubewarden-crds": ""
# Ignore any helm chart repository named "https://charts.jetstack.io"
- repositories:
- "https://charts.jetstack.io"
# Ignore any Helm chart named "kubewarden-crds" in manifest path "dev/*.yaml"
- path: dev/*.yaml
charts:
"kubewarden-crds": ""
# Only accepts the same rule than ignore
#only:
# - path: helmfile.d/*
# - charts:
# "kubewarden-crds": ""
# - repositories:
# - "https://charts.jetstack.io"
#
scms:
default:
kind: github
spec:
owner: updatecli
repository: updatecli
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
branch: "main"
actions:
default:
kind: "github/pullrequest"
spec:
labels:
- "dependencies"
mergemethod: "squash"
scmid: "default"