Skip to content

Commit 6087aeb

Browse files
Merge pull request #120141 from Jefftree/automated-cherry-pick-of-#120109-upstream-release-1.28
Automated cherry pick of #120109: Add wait for cache sync Kubernetes-commit: 01b42ed8c345343361a3ea7bb25a079a00845407
2 parents 3ea4ec4 + b838126 commit 6087aeb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
k8s.io/api v0.0.0-20230904104028-546e4253e738
2828
k8s.io/apimachinery v0.0.0-20230904102823-bc548d1d2406
2929
k8s.io/apiserver v0.0.0-20230904114607-bf038b7f385e
30-
k8s.io/client-go v0.0.0-20230904110526-29a840dbdf2a
30+
k8s.io/client-go v0.0.0-20230904110526-745513ad7b37
3131
k8s.io/code-generator v0.0.0-20230807201159-791c213a776b
3232
k8s.io/component-base v0.0.0-20230904111932-ef6aa9891ad3
3333
k8s.io/klog/v2 v2.100.1
@@ -130,7 +130,7 @@ replace (
130130
k8s.io/api => k8s.io/api v0.0.0-20230904104028-546e4253e738
131131
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20230904102823-bc548d1d2406
132132
k8s.io/apiserver => k8s.io/apiserver v0.0.0-20230904114607-bf038b7f385e
133-
k8s.io/client-go => k8s.io/client-go v0.0.0-20230904110526-29a840dbdf2a
133+
k8s.io/client-go => k8s.io/client-go v0.0.0-20230904110526-745513ad7b37
134134
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20230807201159-791c213a776b
135135
k8s.io/component-base => k8s.io/component-base v0.0.0-20230904111932-ef6aa9891ad3
136136
k8s.io/kms => k8s.io/kms v0.0.0-20230904112654-85054a342003

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ k8s.io/apimachinery v0.0.0-20230904102823-bc548d1d2406 h1:/YP5PLKVrV5WDzScq2agCB
675675
k8s.io/apimachinery v0.0.0-20230904102823-bc548d1d2406/go.mod h1:RdzF87y/ngqk9H4z3EL2Rppv5jj95vGS/HaFXrLDApU=
676676
k8s.io/apiserver v0.0.0-20230904114607-bf038b7f385e h1:J1HaAqOL9irju2bXc34G3Z2UTXZVnE+GLOfSD1NTwRg=
677677
k8s.io/apiserver v0.0.0-20230904114607-bf038b7f385e/go.mod h1:CjTNnDKEDMQHdsr2dzFdIFuoZxfXISlPuT7BSOa3YQw=
678-
k8s.io/client-go v0.0.0-20230904110526-29a840dbdf2a h1:Qgr4OBvwwsxyKonHVJCGGOJH4Zee2uMD1v2st+fVByY=
679-
k8s.io/client-go v0.0.0-20230904110526-29a840dbdf2a/go.mod h1:9oac6LWqvfKcphw6P69YH6Ns8xgf4S3ciKrBfqXxq3c=
678+
k8s.io/client-go v0.0.0-20230904110526-745513ad7b37 h1:+SF0CtBoQI6Eso+8poN4i55d4oUahClerZwALYSz6Tw=
679+
k8s.io/client-go v0.0.0-20230904110526-745513ad7b37/go.mod h1:9oac6LWqvfKcphw6P69YH6Ns8xgf4S3ciKrBfqXxq3c=
680680
k8s.io/code-generator v0.0.0-20230807201159-791c213a776b h1:SQbgU/KO+8dA4z1FG2Miatu7XYb3oDc7tzbycneiyDY=
681681
k8s.io/code-generator v0.0.0-20230807201159-791c213a776b/go.mod h1:ueeSJZJ61NHBa0ccWLey6mwawum25vX61nRZ6WOzN9A=
682682
k8s.io/component-base v0.0.0-20230904111932-ef6aa9891ad3 h1:6J1OGuJeD5K+0YHFN5lOfVIIEpg+Iw+0w4VEw+EipVE=

pkg/controller/openapi/controller_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ func setup(t *testing.T) (*testEnv, context.Context) {
332332
ctx, cancel := context.WithCancel(context.Background())
333333

334334
factory.Start(ctx.Done())
335+
factory.WaitForCacheSync(ctx.Done())
335336

336337
env.mux = http.NewServeMux()
337338
h := handler.NewOpenAPIService(&spec.Swagger{})

0 commit comments

Comments
 (0)