mirror of
https://github.com/dokku/dokku.git
synced 2026-08-29 10:08:53 +02:00
chore: rename input variable
This commit is contained in:
@@ -74,7 +74,7 @@ func createIngressRoutesFiles(input CreateIngressRoutesInput) error {
|
||||
for _, portMap := range input.PortMaps {
|
||||
ingressRoute := templateKubernetesIngressRoute(IngressRoute{
|
||||
AppName: input.AppName,
|
||||
Hostnames: domains,
|
||||
Domains: domains,
|
||||
Namespace: input.Namespace,
|
||||
PortMap: portMap,
|
||||
ProcessType: "web",
|
||||
@@ -534,7 +534,7 @@ const (
|
||||
type IngressRoute struct {
|
||||
AppName string
|
||||
Entrypoints []IngressRouteEntrypoint
|
||||
Hostnames []string
|
||||
Domains []string
|
||||
Namespace string
|
||||
PortMap PortMap
|
||||
ProcessType string
|
||||
@@ -570,7 +570,9 @@ func templateKubernetesIngressRoute(input IngressRoute) traefikv1alpha1.IngressR
|
||||
},
|
||||
}
|
||||
|
||||
for _, hostname := range input.Hostnames {
|
||||
sort.Strings(input.Domains)
|
||||
|
||||
for _, hostname := range input.Domains {
|
||||
rule := traefikv1alpha1.Route{
|
||||
Kind: "Rule",
|
||||
Match: "Host(`" + hostname + "`)",
|
||||
|
||||
Reference in New Issue
Block a user