-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Allow versionfilter on target #1203
Comments
Might be a dumb idea but have you considered using the template engine for these use cases? yaml is not really a good tool when dealing with control structures such as conditions. With templating, extended with some keywords, that could be interesting:
|
Thanks for the feedback and yes I did. With the sprig template integration, we could already write manifest in a way that would run such validation but that would be hard to express |
After additional thought, I don't think I'll add more fields to versionfilter, instead I will reuse the existing one such as
In the context of a target a pattern of kind semver would allow one
In the context of target a pattern of kind semver would allow any regular expression If the versionfilter pattern do not match then the target is not updated and return a failure. The purpose of this feature is to be able to have different type of update pipeline such as |
I don't think anymore it makes sense to have the versionfilter on the target. In the context of the autodiscovery I experimented on the Golang plugin the ability to override the default versionfilter. Therefor I am closing this issue as it is now duplicated with #977 |
Is your feature request related to a problem?
I would like to have different update strategies based on the type of version bump.
Solution you'd like
If the updatecli version bump is:
Other situation would be to ignore patch version update
Alternatives you've considered
Condition
I considered adding a new condition of type semver but we have the two following constraint:
.1 Between a source and a target, the information could be transformed using the "transformers"
.2 We only know at the target stage the version used
Source
I considered handling this at the source level with the current
versionfilter
implementation, but we don't know yet what the target value would be.Pipeline refactoring
I considered changing the core pipeline to go from
.1 Get sources
.2 Check condition
.3 Update target
to
.1 Get target value
.2 Get source
.3 Check condition
.4 Update target
But I don't think, the time spent of this type of refactoring is worthwhile
Anything else?
No response
The text was updated successfully, but these errors were encountered: