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: {}