mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
rebase: update K8s packages to v0.32.1
Update K8s packages in go.mod to v0.32.1 Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
8
vendor/k8s.io/kubernetes/pkg/capabilities/capabilities.go
generated
vendored
8
vendor/k8s.io/kubernetes/pkg/capabilities/capabilities.go
generated
vendored
@ -68,11 +68,13 @@ func Setup(allowPrivileged bool, perConnectionBytesPerSec int64) {
|
||||
})
|
||||
}
|
||||
|
||||
// SetForTests sets capabilities for tests. Convenience method for testing. This should only be called from tests.
|
||||
func SetForTests(c Capabilities) {
|
||||
// ResetForTest resets the capabilities to a given state for testing purposes.
|
||||
// This function should only be called from tests.
|
||||
func ResetForTest() {
|
||||
capInstance.lock.Lock()
|
||||
defer capInstance.lock.Unlock()
|
||||
capInstance.capabilities = &c
|
||||
capInstance.capabilities = nil
|
||||
capInstance.once = sync.Once{}
|
||||
}
|
||||
|
||||
// Get returns a read-only copy of the system capabilities.
|
||||
|
Reference in New Issue
Block a user