From 9cf80eacd93a1b2ef56d0bc02e1be26f0ee245a7 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 5 Sep 2019 15:34:47 +0900 Subject: [PATCH] Add back NodeRestriction It has been removed as a part of #764 for no obvious reasons. Fix #791 --- pkg/daemons/control/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/daemons/control/server.go b/pkg/daemons/control/server.go index 0aa6302874..bc1e25d651 100644 --- a/pkg/daemons/control/server.go +++ b/pkg/daemons/control/server.go @@ -178,6 +178,7 @@ func apiServer(ctx context.Context, cfg *config.Control, runtime *config.Control argsMap["requestheader-group-headers"] = "X-Remote-Group" argsMap["requestheader-username-headers"] = "X-Remote-User" argsMap["client-ca-file"] = runtime.ClientCA + argsMap["enable-admission-plugins"] = "NodeRestriction" argsMap["anonymous-auth"] = "false" args := config.GetArgsList(argsMap, cfg.ExtraAPIArgs)