source-controller icon indicating copy to clipboard operation
source-controller copied to clipboard

Feature request: extend git tag matching with regexp

Open pallost opened this issue 3 years ago • 3 comments

Currently the source controller only allows fixed tags (tag attribute) and semver tags (semver attribute). However neither of these are very flexible and cannot be set up to monitor e.g. dev-20210415 or other more tag patterns.

My suggestion is to implement a regex attribute that can be used to match git tags by regular expression.

pallost avatar Apr 15 '21 13:04 pallost

What if we have more than two tags? Then which tag we should take?

JaneLiuL avatar Jul 02 '21 09:07 JaneLiuL

Regex without ordering doesn't seem useful to me, see how we deal with this for image policies: https://fluxcd.io/docs/components/image/imagepolicies/#examples

stefanprodan avatar Jul 02 '21 10:07 stefanprodan

any update on this? the image policies mechanism would be perfect for my use case

Regex without ordering doesn't seem useful to me, see how we deal with this for image policies: https://fluxcd.io/docs/components/image/imagepolicies/#examples

thefang12 avatar Aug 19 '21 06:08 thefang12