Skip to content

Commit

Permalink
internal/dag: move ListenerName to Listener struct (#4149)
Browse files Browse the repository at this point in the history
Moves the ListenerName field from VirtualHost
to Listener, to better reflect the data model.
This field is now populated by the listener
processor.

Signed-off-by: Steve Kriss <krisss@vmware.com>
  • Loading branch information
skriss authored Nov 10, 2021
1 parent 60c6f76 commit c0bab09
Show file tree
Hide file tree
Showing 5 changed files with 279 additions and 122 deletions.
6 changes: 2 additions & 4 deletions internal/dag/accessors.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ func (d *DAG) EnsureSecureVirtualHost(hostname string) *SecureVirtualHost {

svh := &SecureVirtualHost{
VirtualHost: VirtualHost{
Name: hostname,
ListenerName: "ingress_https",
Name: hostname,
},
}
d.SecureVirtualHosts[hostname] = svh
Expand All @@ -147,8 +146,7 @@ func (d *DAG) EnsureVirtualHost(hostname string) *VirtualHost {
}

vhost := &VirtualHost{
Name: hostname,
ListenerName: "ingress_http",
Name: hostname,
}
d.VirtualHosts[hostname] = vhost
return vhost
Expand Down
Loading

0 comments on commit c0bab09

Please sign in to comment.