diff options
| author | jannfis <jann@mistrust.net> | 2020-08-13 10:44:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-13 10:44:41 +0200 |
| commit | d136072d408f6918788c00afe7810b81b9ca0aec (patch) | |
| tree | e93b06810ac99b2207df4026ec7d58c59389d1d3 /docs | |
| parent | dc416f27e282c8fdb31cbdcad80fbf57421610e3 (diff) | |
docs: Update docs to include new tag filter feature (#50)
* docs: Update docs to include new tag filter feature
* Allow "misconfigured" in spell checker
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/configuration/images.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/configuration/images.md b/docs/configuration/images.md index e869494..c11d714 100644 --- a/docs/configuration/images.md +++ b/docs/configuration/images.md @@ -107,6 +107,34 @@ argocd-image-updater.argoproj.io/<image_name>.update-strategy: <strategy> If no update strategy is given, or an invalid value was used, the default strategy `semver` will be used. +## Filtering tags + +You can specify an expression that is matched against each tag returned from +the registry. On a positive match, the tag will be included in the list of tags +that will be considered to update the image to. If the expression does not +match the tag, the tag will not be included in the list. This allows you to +only consider tags that you are generally interested in. + +You can define a tag filter by using the following annotation: + +```yaml +argocd-image-updater.argoproj.io/<image_name>.tag-match: <match_func> +``` + +The following match functions are currently available: + +|Function|Description| +|--------|-----------| +|`regexp:<expression>`|Matches the tag name against the regular expression `<expression>`| +|`any`|Will match any tag| + +If you specify an invalid match function, or the match function is misconfigured +(i.e. an invalid regular expression is supplied), no tag will be matched at all +to prevent considering (and possibly update to) the wrong tags by accident. + +If the annotation is not specified, a match function `any` will be used to match +the tag names, effectively performing no filtering at all. + ## Custom images with Kustomize In Kustomize, if you want to use an image from another registry or a completely |
