@@ -194,7 +194,7 @@ var _ = ginkgo.Describe("[sig-node] ConfigMap", func() {
194
194
framework .ExpectNoError (err )
195
195
196
196
ginkgo .By ("creating a ConfigMap" )
197
- _ , err = f .ClientSet .CoreV1 ().ConfigMaps (testNamespaceName ).Create (context .TODO (), & testConfigMap , metav1.CreateOptions {})
197
+ cm , err : = f .ClientSet .CoreV1 ().ConfigMaps (testNamespaceName ).Create (context .TODO (), & testConfigMap , metav1.CreateOptions {})
198
198
framework .ExpectNoError (err , "failed to create ConfigMap" )
199
199
200
200
ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
@@ -228,12 +228,12 @@ var _ = ginkgo.Describe("[sig-node] ConfigMap", func() {
228
228
framework .ExpectNoError (err , "failed to marshal patch data" )
229
229
230
230
ginkgo .By ("patching the ConfigMap" )
231
- _ , err = f .ClientSet .CoreV1 ().ConfigMaps (testNamespaceName ).Patch (context .TODO (), testConfigMapName , types .StrategicMergePatchType , []byte (configMapPatchPayload ), metav1.PatchOptions {})
231
+ cm2 , err : = f .ClientSet .CoreV1 ().ConfigMaps (testNamespaceName ).Patch (context .TODO (), testConfigMapName , types .StrategicMergePatchType , []byte (configMapPatchPayload ), metav1.PatchOptions {})
232
232
framework .ExpectNoError (err , "failed to patch ConfigMap" )
233
233
ginkgo .By ("waiting for the ConfigMap to be modified" )
234
234
ctx , cancel = context .WithTimeout (context .Background (), 30 * time .Second )
235
235
defer cancel ()
236
- _ , err = watchtools .Until (ctx , cml .ResourceVersion , w , func (event watch.Event ) (bool , error ) {
236
+ _ , err = watchtools .Until (ctx , cm .ResourceVersion , w , func (event watch.Event ) (bool , error ) {
237
237
switch event .Type {
238
238
case watch .Modified :
239
239
if cm , ok := event .Object .(* v1.ConfigMap ); ok {
@@ -282,7 +282,7 @@ var _ = ginkgo.Describe("[sig-node] ConfigMap", func() {
282
282
ginkgo .By ("waiting for the ConfigMap to be deleted" )
283
283
ctx , cancel = context .WithTimeout (context .Background (), 30 * time .Second )
284
284
defer cancel ()
285
- _ , err = watchtools .Until (ctx , cml .ResourceVersion , w , func (event watch.Event ) (bool , error ) {
285
+ _ , err = watchtools .Until (ctx , cm2 .ResourceVersion , w , func (event watch.Event ) (bool , error ) {
286
286
switch event .Type {
287
287
case watch .Deleted :
288
288
if cm , ok := event .Object .(* v1.ConfigMap ); ok {
0 commit comments