Skip to content

Commit

Permalink
fix: remove admission plugins enabled by default from the list
Browse files Browse the repository at this point in the history
This allows to disable these plugins via `extraArgs` and shortens
argument list for the `kube-apiserver`.

There are no functional changes, as these plugins are enabled by default
anyways.

Based on #3971

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
Co-authored-by: Adam Szucs-Matyas <szucsitg@gmail.com>
Signed-off-by: Adam Szucs-Matyas <szucsitg@gmail.com>
  • Loading branch information
2 people authored and talos-bot committed Aug 5, 2021
1 parent 69ead37 commit 3c566db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (ctrl *ControlPlaneStaticPodController) manageAPIServer(ctx context.Context

args := []string{
"/usr/local/bin/kube-apiserver",
"--enable-admission-plugins=PodSecurityPolicy,NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeClaimResize,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,Priority,NodeRestriction", //nolint:lll
"--enable-admission-plugins=PodSecurityPolicy,NodeRestriction",
"--advertise-address=$(POD_IP)",
"--allow-privileged=true",
fmt.Sprintf("--api-audiences=%s", cfg.ControlPlaneEndpoint),
Expand Down

0 comments on commit 3c566db

Please sign in to comment.