Skip to content

Commit

Permalink
docs: Name strategy regexp in example need to be corrected (#534)
Browse files Browse the repository at this point in the history
Name strategy among Update strategies, have its example have a wrong regexp. Need correction to match format mentioned in last line `YYYY-MM-DD`. 
Current one is this format YYYY-MMDD (which is not what, doc wish to show)
  • Loading branch information
iamraj007 committed Jun 8, 2023
1 parent e08c180 commit 4deeb5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/basics/update-strategies.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,15 @@ for update, you will need additional configuration. For example,
```yaml
argocd-image-updater.argoproj.io/image-list: myimage=some/image
argocd-image-updater.argoproj.io/myimage.update-strategy: name
argocd-image-updater.argoproj.io/myimage.allow-tags: regexp:^[0-9]{4}-[0-9]{2}[0-9]{2}$
argocd-image-updater.argoproj.io/myimage.allow-tags: regexp:^[0-9]{4}-[0-9]{2}-[0-9]{2}$
```

or

```yaml
argocd-image-updater.argoproj.io/image-list: myimage=some/image
argocd-image-updater.argoproj.io/myimage.update-strategy: alphabetical
argocd-image-updater.argoproj.io/myimage.allow-tags: regexp:^[0-9]{4}-[0-9]{2}[0-9]{2}$
argocd-image-updater.argoproj.io/myimage.allow-tags: regexp:^[0-9]{4}-[0-9]{2}-[0-9]{2}$
```

would only consider tags that match a given regular expression for update. In
Expand Down

0 comments on commit 4deeb5c

Please sign in to comment.