@@ -1153,7 +1153,7 @@ func (*TestDefaultValidatorList) DeepCopyObject() runtime.Object { return nil
11531153type TestCustomDefaulter struct {}
11541154
11551155func (* TestCustomDefaulter ) Default (ctx context.Context , obj runtime.Object ) error {
1156- d := obj .(* TestDefaulterObject ) //nolint:ifshort
1156+ d := obj .(* TestDefaulterObject )
11571157 return (& testDefaulter {}).Default (ctx , d )
11581158}
11591159
@@ -1186,7 +1186,7 @@ var _ admission.CustomDefaulter = &TestCustomDefaulter{}
11861186type TestCustomValidator struct {}
11871187
11881188func (* TestCustomValidator ) ValidateCreate (ctx context.Context , obj runtime.Object ) (admission.Warnings , error ) {
1189- v := obj .(* TestValidatorObject ) //nolint:ifshort
1189+ v := obj .(* TestValidatorObject )
11901190 return (& testValidator {}).ValidateCreate (ctx , v )
11911191}
11921192
@@ -1197,7 +1197,7 @@ func (*TestCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj r
11971197}
11981198
11991199func (* TestCustomValidator ) ValidateDelete (ctx context.Context , obj runtime.Object ) (admission.Warnings , error ) {
1200- v := obj .(* TestValidatorObject ) //nolint:ifshort
1200+ v := obj .(* TestValidatorObject )
12011201 return (& testValidator {}).ValidateDelete (ctx , v )
12021202}
12031203
@@ -1280,7 +1280,7 @@ func (*TestCustomDefaultValidator) Default(ctx context.Context, obj runtime.Obje
12801280 return fmt .Errorf ("expected Kind TestDefaultValidator got %q" , req .Kind .Kind )
12811281 }
12821282
1283- d := obj .(* TestDefaultValidator ) //nolint:ifshort
1283+ d := obj .(* TestDefaultValidator )
12841284
12851285 if d .Replica < 2 {
12861286 d .Replica = 2
@@ -1303,7 +1303,7 @@ func (*TestCustomDefaultValidator) ValidateCreate(ctx context.Context, obj runti
13031303 return nil , fmt .Errorf ("expected Kind TestDefaultValidator got %q" , req .Kind .Kind )
13041304 }
13051305
1306- v := obj .(* TestDefaultValidator ) //nolint:ifshort
1306+ v := obj .(* TestDefaultValidator )
13071307 if v .Replica < 0 {
13081308 return nil , errors .New ("number of replica should be greater than or equal to 0" )
13091309 }
@@ -1341,7 +1341,7 @@ func (*TestCustomDefaultValidator) ValidateDelete(ctx context.Context, obj runti
13411341 return nil , fmt .Errorf ("expected Kind TestDefaultValidator got %q" , req .Kind .Kind )
13421342 }
13431343
1344- v := obj .(* TestDefaultValidator ) //nolint:ifshort
1344+ v := obj .(* TestDefaultValidator )
13451345 if v .Replica > 0 {
13461346 return nil , errors .New ("number of replica should be less than or equal to 0 to delete" )
13471347 }
0 commit comments