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 |
|---|---|---|---|
| auths | object | Auths holds a map of string to string where the key is the registry URL and the value the token used for authentication Please be aware that only the host part of the URL is used to lookup for authentication token. Example: | |
| token | string | ||
| 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 for semver, it is a semver constraint for regex, it is a regex pattern for time, it is a date format | |
| regex | string | specifies the regex pattern, used for regex/semver and regex/time. Output of the first capture group will be used. | |
| replaceall | object | replaceAll applies a regex replacement to version strings before filtering. This is useful for transforming versions (e.g., curl-8_15_0 to curl-8.15.0) before regex extraction. | |
| pattern | string | Pattern specifies the regex pattern to match for replacement | |
| replacement | string | Replacement specifies the replacement string (supports $1, $2, etc. for captured groups) | |
| 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"