@@ -138,15 +138,11 @@ function kube::codegen::gen_helpers() {
138
138
-name zz_generated.deepcopy.go \
139
139
| xargs -0 rm -f
140
140
141
- local input_args=()
142
- for arg in " ${input_pkgs[@]} " ; do
143
- input_args+=(" --input-dirs" " $arg " )
144
- done
145
141
" ${gobin} /deepcopy-gen" \
146
142
-v " ${v} " \
147
143
--output-file zz_generated.deepcopy.go \
148
144
--go-header-file " ${boilerplate} " \
149
- " ${input_args [@]} "
145
+ " ${input_pkgs [@]} "
150
146
fi
151
147
152
148
# Defaults
@@ -174,15 +170,11 @@ function kube::codegen::gen_helpers() {
174
170
-name zz_generated.defaults.go \
175
171
| xargs -0 rm -f
176
172
177
- local input_args=()
178
- for arg in " ${input_pkgs[@]} " ; do
179
- input_args+=(" --input-dirs" " $arg " )
180
- done
181
173
" ${gobin} /defaulter-gen" \
182
174
-v " ${v} " \
183
175
--output-file zz_generated.defaults.go \
184
176
--go-header-file " ${boilerplate} " \
185
- " ${input_args [@]} "
177
+ " ${input_pkgs [@]} "
186
178
fi
187
179
188
180
# Conversions
@@ -210,10 +202,6 @@ function kube::codegen::gen_helpers() {
210
202
-name zz_generated.conversion.go \
211
203
| xargs -0 rm -f
212
204
213
- local input_args=()
214
- for arg in " ${input_pkgs[@]} " ; do
215
- input_args+=(" --input-dirs" " $arg " )
216
- done
217
205
local extra_peer_args=()
218
206
for arg in " ${extra_peers[@]: +" ${extra_peers[@]} " } " ; do
219
207
extra_peer_args+=(" --extra-peer-dirs" " $arg " )
@@ -223,7 +211,7 @@ function kube::codegen::gen_helpers() {
223
211
--output-file zz_generated.conversion.go \
224
212
--go-header-file " ${boilerplate} " \
225
213
" ${extra_peer_args[@]: +" ${extra_peer_args[@]} " } " \
226
- " ${input_args [@]} "
214
+ " ${input_pkgs [@]} "
227
215
fi
228
216
}
229
217
@@ -367,21 +355,17 @@ function kube::codegen::gen_openapi() {
367
355
-name zz_generated.openapi.go \
368
356
| xargs -0 rm -f
369
357
370
- local inputs=()
371
- for arg in " ${input_pkgs[@]} " ; do
372
- inputs+=(" --input-dirs" " $arg " )
373
- done
374
358
" ${gobin} /openapi-gen" \
375
359
-v " ${v} " \
376
360
--output-file zz_generated.openapi.go \
377
361
--go-header-file " ${boilerplate} " \
378
362
--output-dir " ${out_dir} " \
379
363
--output-pkg " ${out_pkg} " \
380
364
--report-filename " ${new_report} " \
381
- --input-dirs " k8s.io/apimachinery/pkg/apis/meta/v1" \
382
- --input-dirs " k8s.io/apimachinery/pkg/runtime" \
383
- --input-dirs " k8s.io/apimachinery/pkg/version" \
384
- " ${inputs [@]} "
365
+ " k8s.io/apimachinery/pkg/apis/meta/v1" \
366
+ " k8s.io/apimachinery/pkg/runtime" \
367
+ " k8s.io/apimachinery/pkg/version" \
368
+ " ${input_pkgs [@]} "
385
369
fi
386
370
387
371
touch " ${report} " # in case it doesn't exist yet
@@ -604,17 +588,13 @@ function kube::codegen::gen_client() {
604
588
|| true \
605
589
) | xargs -0 rm -f
606
590
607
- local inputs=()
608
- for arg in " ${input_pkgs[@]} " ; do
609
- inputs+=(" --input-dirs" " $arg " )
610
- done
611
591
" ${gobin} /applyconfiguration-gen" \
612
592
-v " ${v} " \
613
593
--go-header-file " ${boilerplate} " \
614
594
--output-dir " ${out_dir} /${applyconfig_subdir} " \
615
595
--output-pkg " ${applyconfig_pkg} " \
616
596
--external-applyconfigurations " ${applyconfig_external} " \
617
- " ${inputs [@]} "
597
+ " ${input_pkgs [@]} "
618
598
fi
619
599
620
600
echo " Generating client code for ${# group_versions[@]} targets"
@@ -651,17 +631,13 @@ function kube::codegen::gen_client() {
651
631
|| true \
652
632
) | xargs -0 rm -f
653
633
654
- local inputs=()
655
- for arg in " ${input_pkgs[@]} " ; do
656
- inputs+=(" --input-dirs" " $arg " )
657
- done
658
634
" ${gobin} /lister-gen" \
659
635
-v " ${v} " \
660
636
--go-header-file " ${boilerplate} " \
661
637
--output-dir " ${out_dir} /${listers_subdir} " \
662
638
--output-pkg " ${out_pkg} /${listers_subdir} " \
663
639
--plural-exceptions " ${plural_exceptions} " \
664
- " ${inputs [@]} "
640
+ " ${input_pkgs [@]} "
665
641
666
642
echo " Generating informer code for ${# input_pkgs[@]} targets"
667
643
@@ -672,10 +648,6 @@ function kube::codegen::gen_client() {
672
648
|| true \
673
649
) | xargs -0 rm -f
674
650
675
- local inputs=()
676
- for arg in " ${input_pkgs[@]} " ; do
677
- inputs+=(" --input-dirs" " $arg " )
678
- done
679
651
" ${gobin} /informer-gen" \
680
652
-v " ${v} " \
681
653
--go-header-file " ${boilerplate} " \
@@ -684,6 +656,6 @@ function kube::codegen::gen_client() {
684
656
--versioned-clientset-package " ${out_pkg} /${clientset_subdir} /${clientset_versioned_name} " \
685
657
--listers-package " ${out_pkg} /${listers_subdir} " \
686
658
--plural-exceptions " ${plural_exceptions} " \
687
- " ${inputs [@]} "
659
+ " ${input_pkgs [@]} "
688
660
fi
689
661
}
0 commit comments