disable lua for arch s390x and ppc64le

LuaJIT is not available for s390x and ppc64le, disable the lua part in nginx.tmpl on these platform.
This commit is contained in:
oilbeater 2018-04-11 22:52:42 +08:00
parent 17f6996941
commit 1be1f658b4
6 changed files with 21 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -657,6 +657,7 @@ type TemplateConfig struct {
ListenPorts *ListenPorts
PublishService *apiv1.Service
DynamicConfigurationEnabled bool
DisableLua bool
}
// ListenPorts describe the ports required to run the

View file

@ -97,6 +97,8 @@ type Configuration struct {
SyncRateLimit float32
DynamicConfigurationEnabled bool
DisableLua bool
}
// GetPublishService returns the configured service used to set ingress status

View file

@ -628,6 +628,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
ListenPorts: n.cfg.ListenPorts,
PublishService: n.GetPublishService(),
DynamicConfigurationEnabled: n.cfg.DynamicConfigurationEnabled,
DisableLua: n.cfg.DisableLua,
}
content, err := n.t.Write(tc)