mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Add HostNetworkSources capability to limit use of HostNetwork.
This commit is contained in:
@@ -27,9 +27,10 @@ import (
|
||||
)
|
||||
|
||||
// TODO: move this into pkg/capabilities
|
||||
func SetupCapabilities(allowPrivileged bool) {
|
||||
func SetupCapabilities(allowPrivileged bool, hostNetworkSources []string) {
|
||||
capabilities.Initialize(capabilities.Capabilities{
|
||||
AllowPrivileged: allowPrivileged,
|
||||
AllowPrivileged: allowPrivileged,
|
||||
HostNetworkSources: hostNetworkSources,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user