Closed AngellusMortis closed 1 day ago
It looks like all the versions are pre-release versions, so you will need to change your Semver Constraint to include pre-release versions...
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
metadata:
name: protonmail-bridge-policy
namespace: flux-system
spec:
imageRepositoryRef:
name: protonmail-bridge
policy:
semver:
range: "3.12.*-0" # <- this indicates that it should include pre-releases.
Should work
See https://github.com/Masterminds/semver?tab=readme-ov-file#working-with-prerelease-versions and https://semver.org/#spec-item-9
It's not clear why all the tags are marked as "pre-release" in this case, but that should fix it.
Could I do "3.12.*-*"
instead to match any release?
And yeah, they are not really pre-release versions, it is just because it is an "unofficial" application. So, the extra number indicate the release number for that upstream version. I know Linux system packages often follow the same scheme.
@AngellusMortis https://go.dev/play/p/GLojB9uR6SM might help you figure this out
That helps a lot, thanks.
Describe the bug
shenxn/protonmail-bridge
is not working withImageRepository
/ImageUpdateAutomation
. It does not seem to be detecting any image tag after3.9.1-1
https://hub.docker.com/r/shenxn/protonmail-bridge/tags
It looks like it may not be parsing the tags correctly or something since the tag count matches up.
Resources:
Steps to reproduce
ImageRepository
andImageUpdateAutomation
pointing toshenxn/protonmail-bridge
with arange
of"3.12.*"
Expected behavior
FluxCD should recognize and use
3.12.0-1
forshenxn/protonmail-bridge
Screenshots and recordings
No response
OS / Distro
Windows 11 (WSL)
Flux version
v2.3.0
Flux check
► checking prerequisites ✔ Kubernetes 1.30.3 >=1.28.0-0 ► checking version in cluster ✔ distribution: flux-v2.3.0 ✔ bootstrapped: true ► checking controllers ✔ helm-controller: deployment ready ► ghcr.io/fluxcd/helm-controller:v1.0.1 ✔ image-automation-controller: deployment ready ► ghcr.io/fluxcd/image-automation-controller:v0.38.0 ✔ image-reflector-controller: deployment ready ► ghcr.io/fluxcd/image-reflector-controller:v0.32.0 ✔ kustomize-controller: deployment ready ► ghcr.io/fluxcd/kustomize-controller:v1.3.0 ✔ notification-controller: deployment ready ► ghcr.io/fluxcd/notification-controller:v1.3.0 ✔ source-controller: deployment ready ► ghcr.io/fluxcd/source-controller:v1.3.0 ► checking crds ✔ alerts.notification.toolkit.fluxcd.io/v1beta3 ✔ buckets.source.toolkit.fluxcd.io/v1beta2 ✔ gitrepositories.source.toolkit.fluxcd.io/v1 ✔ helmcharts.source.toolkit.fluxcd.io/v1 ✔ helmreleases.helm.toolkit.fluxcd.io/v2 ✔ helmrepositories.source.toolkit.fluxcd.io/v1 ✔ imagepolicies.image.toolkit.fluxcd.io/v1beta2 ✔ imagerepositories.image.toolkit.fluxcd.io/v1beta2 ✔ imageupdateautomations.image.toolkit.fluxcd.io/v1beta2 ✔ kustomizations.kustomize.toolkit.fluxcd.io/v1 ✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2 ✔ providers.notification.toolkit.fluxcd.io/v1beta3 ✔ receivers.notification.toolkit.fluxcd.io/v1 ✔ all checks passed
Git provider
No response
Container Registry provider
DockerHub
Additional context
Code of Conduct