Skip to content

Commit

Permalink
fix: 🐛 abortOnPluginFailure not released yet
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 committed Dec 6, 2024
1 parent 6591141 commit dba308d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion traefik/templates/_podtemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
- "--experimental.plugins.{{ $pluginName }}.moduleName={{ $plugin.moduleName }}"
- "--experimental.plugins.{{ $pluginName }}.version={{ $plugin.version }}"
{{- end }}
{{- if and (semverCompare ">=3.2.1-0" $version) (.Values.experimental.abortOnPluginFailure)}}
{{- if and (semverCompare ">=3.3.0-0" $version) (.Values.experimental.abortOnPluginFailure)}}
- "--experimental.abortonpluginfailure={{ .Values.experimental.abortOnPluginFailure }}"
{{- end }}
{{- if .Values.providers.kubernetesCRD.enabled }}
Expand Down
4 changes: 4 additions & 0 deletions traefik/templates/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@
{{- fail "ERROR: namespaced rbac requires Kubernetes CRD or Kubernetes Ingress provider." }}
{{- end }}
{{- end }}

{{- if and (semverCompare "<3.3.0-0" $version) (.Values.experimental.abortOnPluginFailure)}}
{{- fail "ERROR: abortOnPluginFailure is an experimental feature only available for traefik >= 3.3.0." }}
{{- end }}
4 changes: 3 additions & 1 deletion traefik/tests/deployment-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,10 @@ tests:
- --providers.kubernetesingress.ingressendpoint.publishedservice=NAMESPACE/RELEASE-NAME-traefik
- --entryPoints.websecure.http.tls=true
- --log.level=INFO
- it: should have abortOnPluginFailure, when enabled
- it: should have abortOnPluginFailure, when enabled on traefik >=3.3.0
set:
image:
tag: v3.3.0
experimental:
abortOnPluginFailure: true
asserts:
Expand Down
8 changes: 7 additions & 1 deletion traefik/tests/requirements-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,10 @@ tests:
asserts:
- failedTemplate:
errorMessage: "ERROR: certResolvers setting has been removed. See v33.0.0 Changelog."

- it: shouldn't have abortOnPluginFailure, when enabled on traefik < 3.3.0
set:
experimental:
abortOnPluginFailure: true
asserts:
- failedTemplate:
errorMessage: "ERROR: abortOnPluginFailure is an experimental feature only available for traefik >= 3.3.0."

0 comments on commit dba308d

Please sign in to comment.