mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-19 14:11:48 +00:00
Change policy example to numerical in asc order
Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
5e1f6f7317
commit
6e1672f73c
1 changed files with 2 additions and 2 deletions
|
|
@ -537,14 +537,14 @@ spec:
|
||||||
pattern: '^main-[a-f0-9]+-(?P<ts>[0-9]+)'
|
pattern: '^main-[a-f0-9]+-(?P<ts>[0-9]+)'
|
||||||
extract: '$ts'
|
extract: '$ts'
|
||||||
policy:
|
policy:
|
||||||
alphabetical:
|
numerical:
|
||||||
order: asc
|
order: asc
|
||||||
```
|
```
|
||||||
|
|
||||||
The `.spec.pattern` field gives a regular expression that a tag must match to be included. The
|
The `.spec.pattern` field gives a regular expression that a tag must match to be included. The
|
||||||
`.spec.extract` field gives a replacement pattern that can refer back to capture groups in the
|
`.spec.extract` field gives a replacement pattern that can refer back to capture groups in the
|
||||||
filter pattern. The extracted values are sorted to find the selected image tag. In this case, the
|
filter pattern. The extracted values are sorted to find the selected image tag. In this case, the
|
||||||
timestamp part of the tag will be extracted and sorted alphabetically in ascending order. See [the
|
timestamp part of the tag will be extracted and sorted numerically in ascending order. See [the
|
||||||
reference docs][imagepolicy-ref] for more examples.
|
reference docs][imagepolicy-ref] for more examples.
|
||||||
|
|
||||||
Once you have made sure you have image tags and an `ImagePolicy` that works, jump ahead to [Checking
|
Once you have made sure you have image tags and an `ImagePolicy` that works, jump ahead to [Checking
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue