From 579984c3b149a3b32a5e91edaa00b028b6587b57 Mon Sep 17 00:00:00 2001 From: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com> Date: Mon, 22 Apr 2024 17:08:04 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20add=20support=20of=20`exper?= =?UTF-8?q?imental-v3.0`=20unstable=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EXAMPLES.md | 12 ++++++++++++ traefik/templates/requirements.yaml | 7 +++++-- traefik/tests/requirements-config_test.yaml | 8 +++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/EXAMPLES.md b/EXAMPLES.md index 5065d0af8..1d7aee67d 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -610,3 +610,15 @@ spec: name: release-name-traefik maxReplicas: 3 ``` + +# Use latest build of Traefik v3 from master + +An experimental build of Traefik Proxy is available on a specific repository. + +It can be used with those _values_: + +```yaml +image: + repository: traefik/traefik + tag: experimental-v3.0 +``` diff --git a/traefik/templates/requirements.yaml b/traefik/templates/requirements.yaml index 160673159..740c08da7 100644 --- a/traefik/templates/requirements.yaml +++ b/traefik/templates/requirements.yaml @@ -1,3 +1,6 @@ -{{- if semverCompare "<3.0.0-0" (include "imageVersion" $) }} - {{- fail "ERROR: This version of the Chart only supports Traefik Proxy v3" -}} +{{- $version := include "imageVersion" $ }} +{{- if (ne $version "experimental-v3.0") }} + {{- if (semverCompare "<3.0.0-0" $version) }} + {{- fail "ERROR: This version of the Chart only supports Traefik Proxy v3" -}} + {{- end }} {{- end }} diff --git a/traefik/tests/requirements-config_test.yaml b/traefik/tests/requirements-config_test.yaml index 737903a82..b47a2ef24 100644 --- a/traefik/tests/requirements-config_test.yaml +++ b/traefik/tests/requirements-config_test.yaml @@ -9,4 +9,10 @@ tests: asserts: - failedTemplate: errorMessage: "ERROR: This version of the Chart only supports Traefik Proxy v3" - + - it: should pass when trying to use this Chart with Traefik Proxy v3 experimental + set: + image: + repository: traefik/traefik + tag: experimental-v3.0 + asserts: + - notFailedTemplate: {}