Skip to content

feat(hub): update version mapping with Proxy v3.4 #1447

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lbenguigui
Copy link

What does this PR do?

This PR updates the Traefik Hub / Traefik Proxy version mapping.

Motivation

Keep the mapping up to date.

More

  • Yes, I updated the tests accordingly
  • Yes, I updated the schema accordingly
  • Yes, I ran make test and all the tests passed

@mloiseleur mloiseleur changed the title feat: handle hub version with Traefik v3.4 feat(hub): handle version mapping with Proxy v3.4 Jun 11, 2025
Comment on lines +188 to +190
{{- else if semverCompare "<v3.15.3-0" $version -}}
{{ $hubProxyVersion = "v3.3" }}
{{- else if or (semverCompare "=v3.16.0" $version) (semverCompare "=v3.16.1" $version) -}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- else if semverCompare "<v3.15.3-0" $version -}}
{{ $hubProxyVersion = "v3.3" }}
{{- else if or (semverCompare "=v3.16.0" $version) (semverCompare "=v3.16.1" $version) -}}
{{- else if semverCompare "<v3.15.3-0 || >= v3.16.0 < v3.16.2" $version -}}

Copy link
Author

@lbenguigui lbenguigui Jun 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get why this version is better, I prefer my version actually

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to explain it.
FTM, one condition == one version. So it's quite simple.
With multiple conditions for the same version, it makes it more complex.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mloiseleur I agree with @lbenguigui, having one condition per Hub minor version to check seems more understandable for maintenance.

Copy link
Contributor

@darkweaver87 darkweaver87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mloiseleur mloiseleur changed the title feat(hub): handle version mapping with Proxy v3.4 feat(hub): update version mapping with Proxy v3.4 Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants