Skip to content

Commit

Permalink
Merge pull request #258 from jcmoraisjr/jm-fix-sslpassthrough
Browse files Browse the repository at this point in the history
Fix ssl-passthrough
  • Loading branch information
jcmoraisjr authored Nov 29, 2018
2 parents 6fd2d92 + d5e75e3 commit e366bfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/controller/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,14 @@ func (cfg *haConfig) createHAProxyServers() {
for _, server := range cfg.ingress.PassthroughBackends {
haServer := &types.HAProxyPassthrough{
Hostname: server.Hostname,
Alias: false,
ACLLabel: labelizeACL(server.Hostname),
Backend: server.Backend,
HTTPPassBackend: server.HTTPPassBackend,
HostnameIsWildcard: idHasWildcard(server.Hostname),
// implements the "interface" of the "acl" template
AliasHost: false,
AliasHostIsRegex: false,
AliasRegex: false,
}
haPassthrough = append(haPassthrough, haServer)
}
Expand Down
4 changes: 3 additions & 1 deletion pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,13 @@ type (
// HAProxyPassthrough has SSL passthrough configurations
HAProxyPassthrough struct {
Hostname string `json:"hostname"`
Alias bool `json:"alias"`
ACLLabel string `json:"aclLabel"`
Backend string `json:"backend"`
HTTPPassBackend string `json:"httpPassBackend"`
HostnameIsWildcard bool `json:"hostnameIsWildcard"`
AliasHost bool `json:"aliasHost"`
AliasHostIsRegex bool `json:"aliasHostIsRegex"`
AliasRegex bool `json:"aliasRegex"`
}
// HAProxyBackendSlots contains used and empty backend server definitions
HAProxyBackendSlots struct {
Expand Down

0 comments on commit e366bfe

Please sign in to comment.