Skip to content

Commit 1c88894

Browse files
weltekialexellis
authored andcommitted
Fix traefik2 install for current Helm chart
Update helm repo URL from helm.traefik.io/traefik to traefik.github.io/charts. Update helm values to match the current chart schema: - additional.checkNewVersion -> global.checkNewVersion - additional.sendAnonymousUsage -> global.sendAnonymousUsage - dashboard.ingressRoute -> ingressRoute.dashboard.enabled - additionalArguments string -> indexed array format Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
1 parent 8e860ea commit 1c88894

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmd/apps/traefik2_app.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func MakeInstallTraefik2() *cobra.Command {
5252
return err
5353
}
5454

55-
err = helm.AddHelmRepo("traefik", "https://helm.traefik.io/traefik", updateRepo)
55+
err = helm.AddHelmRepo("traefik", "https://traefik.github.io/charts", updateRepo)
5656
if err != nil {
5757
return fmt.Errorf("Unable to add repo %s", err)
5858
}
@@ -74,15 +74,15 @@ func MakeInstallTraefik2() *cobra.Command {
7474
}
7575
overrides["service.type"] = svc
7676

77-
overrides["additional.checkNewVersion"] = "false"
78-
overrides["additional.sendAnonymousUsage"] = "false"
77+
overrides["global.checkNewVersion"] = "false"
78+
overrides["global.sendAnonymousUsage"] = "false"
7979

8080
if dashboard {
81-
overrides["dashboard.ingressRoute"] = "true"
81+
overrides["ingressRoute.dashboard.enabled"] = "true"
8282
}
8383

8484
if ingressProvider {
85-
overrides["additionalArguments"] = `{--providers.kubernetesingress}`
85+
overrides["additionalArguments[0]"] = "--providers.kubernetesingress"
8686
}
8787

8888
customFlags, err := command.Flags().GetStringArray("set")

0 commit comments

Comments
 (0)