TUN-3533: Set config for single origin ingress

This commit is contained in:
cthuang
2020-11-11 13:14:51 +00:00
parent 8c1deb4064
commit d7268af555
2 changed files with 84 additions and 1 deletions

View File

@@ -71,13 +71,15 @@ func NewSingleOrigin(c *cli.Context, compatibilityMode bool, logger logger.Servi
}
// Construct an Ingress with the single rule.
defaults := originRequestFromSingeRule(c)
ing := Ingress{
Rules: []Rule{
{
Service: service,
Config: setConfig(defaults, config.OriginRequestConfig{}),
},
},
defaults: originRequestFromSingeRule(c),
defaults: defaults,
}
return ing, err
}