Skip to content

Commit

Permalink
fix: support uppercase letters in entrypoint names
Browse files Browse the repository at this point in the history
Traefik supports entrypoints with uppercase letters (e.g. webSecure), but helm generated manifest fails to apply because port names can only be lowercase. 

This forces lower case on port names for entrypoints.
  • Loading branch information
uvNikita authored Dec 17, 2024
1 parent acd4405 commit ca5fe53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traefik/templates/_podtemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
{{- fail "ERROR: All hostPort must match their respective containerPort when `hostNetwork` is enabled" }}
{{- end }}
{{- end }}
- name: {{ $name | quote }}
- name: {{ $name | lower | quote }}
containerPort: {{ default $config.port $config.containerPort }}
{{- if $config.hostPort }}
hostPort: {{ $config.hostPort }}
Expand Down

0 comments on commit ca5fe53

Please sign in to comment.