diff --git a/traefik/templates/_podtemplate.tpl b/traefik/templates/_podtemplate.tpl index 9e47d74f3..4325ecfc8 100644 --- a/traefik/templates/_podtemplate.tpl +++ b/traefik/templates/_podtemplate.tpl @@ -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 }} diff --git a/traefik/templates/requirements.yaml b/traefik/templates/requirements.yaml index 611a187ef..20d8b28ea 100644 --- a/traefik/templates/requirements.yaml +++ b/traefik/templates/requirements.yaml @@ -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 >= v3.3.0." }} +{{- end }} diff --git a/traefik/tests/deployment-config_test.yaml b/traefik/tests/deployment-config_test.yaml index 47d98712d..b273a4718 100644 --- a/traefik/tests/deployment-config_test.yaml +++ b/traefik/tests/deployment-config_test.yaml @@ -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: diff --git a/traefik/tests/requirements-config_test.yaml b/traefik/tests/requirements-config_test.yaml index 829035bce..a469c1242 100644 --- a/traefik/tests/requirements-config_test.yaml +++ b/traefik/tests/requirements-config_test.yaml @@ -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 >= v3.3.0."