Add back NodeRestriction

It has been removed as a part of #764 for no obvious reasons.

Fix #791
pull/793/head
YAMAMOTO Takashi 2019-09-05 15:34:47 +09:00
parent 4a5360eadd
commit 9cf80eacd9
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ func apiServer(ctx context.Context, cfg *config.Control, runtime *config.Control
argsMap["requestheader-group-headers"] = "X-Remote-Group" argsMap["requestheader-group-headers"] = "X-Remote-Group"
argsMap["requestheader-username-headers"] = "X-Remote-User" argsMap["requestheader-username-headers"] = "X-Remote-User"
argsMap["client-ca-file"] = runtime.ClientCA argsMap["client-ca-file"] = runtime.ClientCA
argsMap["enable-admission-plugins"] = "NodeRestriction"
argsMap["anonymous-auth"] = "false" argsMap["anonymous-auth"] = "false"
args := config.GetArgsList(argsMap, cfg.ExtraAPIArgs) args := config.GetArgsList(argsMap, cfg.ExtraAPIArgs)