1
0
mirror of https://github.com/ceph/ceph-csi.git synced 2025-06-14 18:53:35 +00:00

rebase: update kubernetes dep to 1.24.0

As kubernetes 1.24.0 is released, updating
kubernetes dependencies to 1.24.0

updates: 

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2022-05-05 08:17:06 +05:30
committed by mergify[bot]
parent fc1529f268
commit c4f79d455f
959 changed files with 80055 additions and 27456 deletions
go.modgo.sum
vendor
github.com
PuerkitoBio
bits-and-blooms
blang
cyphar
docker
distribution
emicklei
go-openapi
google
josharian
mailru
munnerz
opencontainers
spf13
golang.org
google.golang.org
genproto
googleapis
api
k8s.io
api
admission
admissionregistration
apiserverinternal
apps
authentication
authorization
autoscaling
batch
certificates
coordination
core
discovery
events
extensions
flowcontrol
networking
node
policy
rbac
scheduling
storage
apiextensions-apiserver
apimachinery
apiserver
client-go
applyconfigurations
admissionregistration
apiserverinternal
apps
autoscaling
batch
certificates
coordination
core
discovery
events
extensions
flowcontrol
internal
meta
networking
node
policy
rbac
scheduling
storage
discovery
informers
kubernetes
listers
openapi
pkg
plugin
pkg
client
auth
rest
tools
transport
util
cloud-provider
component-base
kube-openapi
kubelet
pkg
apis
stats
v1alpha1
kubernetes
pkg
test
e2e
framework
storage
testing-manifests
README.md
cluster-dns
embed.go
flexvolume
guestbook
kubectl
podrbd-storage-class.yamlsample-device-plugin.yaml
scheduling
statefulset
storage-csi
utils
mount-utils
pod-security-admission
utils
clock
pointer
strings
slices
modules.txt
sigs.k8s.io
json
internal

@ -1,12 +1,11 @@
package pwalk
import (
"fmt"
"os"
"path/filepath"
"runtime"
"sync"
"github.com/pkg/errors"
)
type WalkFunc = filepath.WalkFunc
@ -20,7 +19,7 @@ type WalkFunc = filepath.WalkFunc
//
// Note that this implementation only supports primitive error handling:
//
// - no errors are ever passed to WalkFn;
// - no errors are ever passed to walkFn;
//
// - once a walkFn returns any error, all further processing stops
// and the error is returned to the caller of Walk;
@ -42,7 +41,7 @@ func Walk(root string, walkFn WalkFunc) error {
func WalkN(root string, walkFn WalkFunc, num int) error {
// make sure limit is sensible
if num < 1 {
return errors.Errorf("walk(%q): num must be > 0", root)
return fmt.Errorf("walk(%q): num must be > 0", root)
}
files := make(chan *walkArgs, 2*num)
@ -52,6 +51,9 @@ func WalkN(root string, walkFn WalkFunc, num int) error {
var (
err error
wg sync.WaitGroup
rootLen = len(root)
rootEntry *walkArgs
)
wg.Add(1)
go func() {
@ -60,6 +62,11 @@ func WalkN(root string, walkFn WalkFunc, num int) error {
close(files)
return err
}
if len(p) == rootLen {
// Root entry is processed separately below.
rootEntry = &walkArgs{path: p, info: &info}
return nil
}
// add a file to the queue unless a callback sent an error
select {
case e := <-errCh:
@ -93,10 +100,14 @@ func WalkN(root string, walkFn WalkFunc, num int) error {
wg.Wait()
if err == nil {
err = walkFn(rootEntry.path, *rootEntry.info, nil)
}
return err
}
// walkArgs holds the arguments that were passed to the Walk or WalkLimit
// walkArgs holds the arguments that were passed to the Walk or WalkN
// functions.
type walkArgs struct {
path string