Skip to content

Commit 7e17c40

Browse files
authored
feat(traefik): add latest 2.x and 3.x versions (#508)
* feat(traefik): add latest 2.x and 3.x versions * fix(traefik): deprecate legacy and older 2.10.x versions
1 parent 6dec712 commit 7e17c40

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

libs/traefik/config.jsonnet

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22

33
local config = import 'jsonnet/config.jsonnet';
44
local versions = [
5-
{ version: '2.10.5', chartTag: 'v25.0.0' },
6-
{ version: '2.10.4', chartTag: 'v24.0.0' },
7-
{ version: '2.10.4', chartTag: 'v23.2.0' },
8-
{ version: '2.10.0', chartTag: 'v22.3.0' }, // breaking change with Traefik v2.9.10
9-
{ version: '2.9.10', chartTag: 'v22.2.0', legacy: true },
10-
{ version: '2.9.8', chartTag: 'v21.2.1', legacy: true },
11-
{ version: '2.8.0', chartTag: 'v10.24.0', legacy: true }, // A rather old version I'm still using, and should update
5+
{ version: '3.3.3', chartTag: 'v34.3.0' },
6+
{ version: '2.11.2', chartTag: 'v27.0.2' },
7+
{ version: '2.10.6', chartTag: 'v26.0.0' },
128
];
139

1410
config.new(
@@ -19,23 +15,33 @@ config.new(
1915
local url = 'https://raw.githubusercontent.com/traefik/traefik-helm-chart/%s/traefik/crds' % v.chartTag,
2016

2117
output: v.version,
22-
prefix:
23-
if std.objectHas(v, 'legacy') then
24-
'^us\\.containo\\.traefik\\..*'
25-
else '^io\\.traefik\\..*',
18+
prefix: '^io\\.traefik\\..*',
2619

2720
crds:
28-
if std.objectHas(v, 'legacy') then
21+
if std.startsWith(v.version, '3') then
2922
[
30-
'%s/ingressroute.yaml' % url,
31-
'%s/ingressroutetcp.yaml' % url,
32-
'%s/ingressrouteudp.yaml' % url,
33-
'%s/middlewares.yaml' % url,
34-
'%s/middlewarestcp.yaml' % url,
35-
'%s/serverstransports.yaml' % url,
36-
'%s/tlsoptions.yaml' % url,
37-
'%s/tlsstores.yaml' % url,
38-
'%s/traefikservices.yaml' % url,
23+
'%s/gateway-standard-install.yaml' % url,
24+
'%s/hub.traefik.io_accesscontrolpolicies.yaml' % url,
25+
'%s/hub.traefik.io_aiservices.yaml' % url,
26+
'%s/hub.traefik.io_apiaccesses.yaml' % url,
27+
'%s/hub.traefik.io_apibundles.yaml' % url,
28+
'%s/hub.traefik.io_apicatalogitems.yaml' % url,
29+
'%s/hub.traefik.io_apiplans.yaml' % url,
30+
'%s/hub.traefik.io_apiportals.yaml' % url,
31+
'%s/hub.traefik.io_apiratelimits.yaml' % url,
32+
'%s/hub.traefik.io_apis.yaml' % url,
33+
'%s/hub.traefik.io_apiversions.yaml' % url,
34+
'%s/hub.traefik.io_managedsubscriptions.yaml' % url,
35+
'%s/traefik.io_ingressroutes.yaml' % url,
36+
'%s/traefik.io_ingressroutetcps.yaml' % url,
37+
'%s/traefik.io_ingressrouteudps.yaml' % url,
38+
'%s/traefik.io_middlewares.yaml' % url,
39+
'%s/traefik.io_middlewaretcps.yaml' % url,
40+
'%s/traefik.io_serverstransports.yaml' % url,
41+
'%s/traefik.io_serverstransporttcps.yaml' % url,
42+
'%s/traefik.io_tlsoptions.yaml' % url,
43+
'%s/traefik.io_tlsstores.yaml' % url,
44+
'%s/traefik.io_traefikservices.yaml' % url,
3945
]
4046
else
4147
[

0 commit comments

Comments
 (0)