Skip to content

Commit

Permalink
Disable dynamic configuration in s390x and ppc64le (#2298)
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf authored Apr 5, 2018
1 parent dd2bc91 commit ee30c55
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/nginx/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"flag"
"fmt"
"os"
"runtime"
"time"

"github.com/golang/glog"
Expand Down Expand Up @@ -194,6 +195,12 @@ func parseFlags() (bool, *controller.Configuration, error) {
glog.Warningf("Check of SSL certificate chain is disabled (--enable-ssl-chain-completion=false)")
}

if *dynamicConfigurationEnabled && (runtime.GOARCH == "s390x" || runtime.GOARCH == "ppc64le") {
b := false
dynamicConfigurationEnabled = &b
glog.Warningf("Disabling dynamic configuration feature (LuaJIT is not available in s390x and ppc64le)")
}

config := &controller.Configuration{
APIServerHost: *apiserverHost,
KubeConfigFile: *kubeConfigFile,
Expand Down

0 comments on commit ee30c55

Please sign in to comment.