k8wiz
Flux CD
Medium
Concepts

An ImagePolicy should pick the newest 1.x release tag and ignore 2.0 and later. Which policy fits?

Select your answer:

Show answer and explanation

Answer: policy.semver.range: '>=1.0.0 <2.0.0'

Explanation

A SemVer policy parses tags as versions and picks the highest one in the range, so 1.10.0 beats 1.9.0. Alphabetical ordering would rank 1.9.0 higher, and numerical policies need tags that are plain numbers, such as timestamps pulled out with filterTags.extract.