Skip to content

Commit 120e5de

Browse files
authored
Disable admission controllers for webhook server (#468)
Since [1.10 release](https://github.com/kubernetes/apiserver/blob/release-1.10/pkg/server/options/recommended.go#L43) admission options are enabled by default . This was not the case in 1.9 release. Admission plugins seem unnecessary for a webhook server. So, I am disabling it. If this is left enabled, then RBAC permissions need to be updated accordingly. ``` - apiGroups: - admissionregistration.k8s.io resources: - mutatingwebhookconfigurations - validatingwebhookconfigurations verbs: ["get","list"] ```
1 parent 2f19545 commit 120e5de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/start.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func NewStashOptions(out, errOut io.Writer) *StashOptions {
3333
StdErr: errOut,
3434
}
3535
o.RecommendedOptions.Etcd = nil
36+
o.RecommendedOptions.Admission = nil
3637

3738
return o
3839
}

0 commit comments

Comments
 (0)