Skip to content

Commit

Permalink
internal/dag: move ListenerName to Listener struct
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 committed Nov 2, 2021
1 parent 5c65e8a commit c4c8772
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 c4c8772

Please sign in to comment.