Skip to content

Commit

Permalink
feat: ✨ add support of experimental-v3.0 unstable version
Browse files Browse the repository at this point in the history
  • Loading branch information
mloiseleur committed Apr 22, 2024
1 parent af6b2c8 commit 579984c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
12 changes: 12 additions & 0 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
7 changes: 5 additions & 2 deletions traefik/templates/requirements.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
8 changes: 7 additions & 1 deletion traefik/tests/requirements-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

0 comments on commit 579984c

Please sign in to comment.