-
Notifications
You must be signed in to change notification settings - Fork 166
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
How to select which pre-release I want to install #527
Comments
Related: I think there might be an issue here for Helm Controller, since you can already filter tags in ImageUpdateAutomation, but there is no corresponding filter tags feature in Helm Controller there's no way to set a wildcard that filters prereleases. Do we want to support this behavior in Helm Controller? I'll leave this issue open until there is consensus, or at least one other Flux maintainer can weigh in. 👍 |
This bit me today, luckily didn't impact our prod environment. But i was planning on doing something similar with -beta/-dev/-stage versions of the chart i could test and release to different environments. I imagine this could surprise some people.
i notice in this helmchart CRD it shows how odd this looks with the different versions.
|
Thanks for raising this issue again when you found it @defenestration I think we've established here or elsewhere that the right-hand side of the I actually cannot find the code for this behavior myself, what decides if pre-releases are allowed and if they are filtered: I located What are your I think there's a chance they just don't fit the semver rigid pattern, which says that right-hand side has to be either dotted alphas.1.num.2 but never Take a close look at Spec 11 for pre-releases, and be sure your dev charts match the pattern. On the other hand I'm not saying there is no issue here that we need to fix. I think we should have regex filters too. So, to reiterate, there isn't a wildcard regex in helm controller's version syntax. When you specify a version as We usually just put And that's technically correct according to Semver, I guess, but super inconvenient for anyone that wanted to manage their phases of pre-releases in a single Helm repository like:
while imposing a |
Our dev tags follow a pattern like this example versions: The idea is we release our dev prerelease chart to services in our dev cluster currently all at once and use I was hoping to introduce a beta tag Today i was revisiting this issue and noticed filter-tags on the imagePolicy resource, but didn't notice this on HelmReleases. If this was possible to use on HelmReleases, i think i could maybe use it to meet my original goal of using the different prerelease tags for different environments. However i was instead considering just deploying the chart to a different name for |
We use GitVersion in our workflow to version our software and Flux to deploy this to Kubernetes. GitVersion uses Filtering out specific branches in Git (which are associated with different semver tags) is a must for us. We work around this now by using automation in our release processes (and in a few cases even different container registries,) but this is far from ideal. I think a regex could be an elegant fix and should provide enough flexibility for most cases. There's just one thing, let's say you have a version |
This would be addressed for OCI charts when we implement: |
In the meanwhile, with HelmRelease (no OCI), we were able to use beta versions as follows. |
Hello! We have implemented Flux CD on our project, and now we are having the following issue:
We have all the helm charts on the same repo, but we are tagging it different depending on the environment. We have 3 environments, dev, uat and prod.
We decided that all the helm charts that will be installed on production, will be Release versions like 1.10.1, and charts for uat and dev, will be pre-release versions but differentiated by the postfix, for example for dev will be 1.10.1-dev and for uat will be 1.10.1-uat.
The issue that we are having now, is that we cannot filter by postfix of which version we will install on the environment. We are using semver in flux, so dev and uat are taking the same chart version due of this. In this case version 1.10.1-uat is the last pre-release available and it will be installed in dev and in UAT.
Below you can find one of our config files:
Devel
UAT
So, there is any way to say to Flux use charts with this specifc Postfix or add some kind of filter?
We have deployed Flux on our kubernetes cluster and kustomize-controller, source-controller, helm-controller and notification-controller were deployed.
Thanks in advance!
The text was updated successfully, but these errors were encountered: