mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
using simpler wrapper function capabilities.Setup instead of calling Initialize directly
This commit is contained in:
parent
c45ca46cdb
commit
baade6c730
@ -250,16 +250,7 @@ func CreateKubeAPIServerConfig(s completedServerRunOptions) (
|
|||||||
return nil, nil, nil, err
|
return nil, nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
capabilities.Initialize(capabilities.Capabilities{
|
capabilities.Setup(s.AllowPrivileged, s.MaxConnectionBytesPerSec)
|
||||||
AllowPrivileged: s.AllowPrivileged,
|
|
||||||
// TODO(vmarmol): Implement support for HostNetworkSources.
|
|
||||||
PrivilegedSources: capabilities.PrivilegedSources{
|
|
||||||
HostNetworkSources: []string{},
|
|
||||||
HostPIDSources: []string{},
|
|
||||||
HostIPCSources: []string{},
|
|
||||||
},
|
|
||||||
PerConnectionBandwidthLimitBytesPerSec: s.MaxConnectionBytesPerSec,
|
|
||||||
})
|
|
||||||
|
|
||||||
s.Metrics.Apply()
|
s.Metrics.Apply()
|
||||||
serviceaccount.RegisterMetrics()
|
serviceaccount.RegisterMetrics()
|
||||||
|
Loading…
Reference in New Issue
Block a user