fluxcd / helm-controller

The GitOps Toolkit Helm reconciler, for declarative Helming
https://fluxcd.io
Apache License 2.0
408 stars 163 forks source link

Only deploy prerelease versions #903

Closed PeteMac88 closed 1 day ago

PeteMac88 commented 7 months ago

Hey there, we have a use case for which we automatically want to deploy prerelease versions of a chart but skip the release versions. In our case the semver tag has following format "x.x.x-staging.x". So for example:

1.0.0-staging.1 -> deploy 1.0.0-staging.2 -> deploy 1.0.0 -> skip 1.0.1-staging.1 -> deploy

When we use a version declaration like version: ">1.0.0-0" also the release version is deployed.

Is this possible? I know this is not really the way you work with semver versioning and we have the possibility to release a second chart but if its possible we could skip this additional effort.

thanks

stefanprodan commented 7 months ago

This would be addressed for OCI charts when we implement: