Disable dynamic configuration in s390x and ppc64le (#2298)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-04-05 17:37:21 -03:00 committed by GitHub
parent dd2bc91018
commit ee30c55dfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,7 @@ import (
"flag"
"fmt"
"os"
"runtime"
"time"
"github.com/golang/glog"
@ -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,