|
27 | 27 | pushd ./examples
|
28 | 28 |
|
29 | 29 | # Generate deepcopy functions
|
30 |
| -# ${CONTROLLER_GEN} object paths=./pkg/apis/... |
31 |
| - |
32 |
| -# # Generate standard clientset |
33 |
| -# ${KUBE_CLIENT_GEN} \ |
34 |
| -# --clientset-name versioned \ |
35 |
| -# --go-header-file ./../hack/boilerplate/boilerplate.generatego.txt \ |
36 |
| -# --input-base acme.corp/pkg/apis \ |
37 |
| -# --input example/v1 \ |
38 |
| -# --input example/v1alpha1 \ |
39 |
| -# --input example/v1beta1 \ |
40 |
| -# --input example/v2 \ |
41 |
| -# --input example3/v1 \ |
42 |
| -# --input exampledashed/v1 \ |
43 |
| -# --input secondexample/v1 \ |
44 |
| -# --input existinginterfaces/v1 \ |
45 |
| -# --output-dir ./pkg/generated/clientset \ |
46 |
| -# --output-pkg acme.corp/pkg/generated/clientset |
47 |
| - |
48 |
| -# ${KUBE_APPLYCONFIGURATION_GEN} \ |
49 |
| -# --go-header-file ./../hack/boilerplate/boilerplate.generatego.txt \ |
50 |
| -# --output-dir ./pkg/generated/applyconfigurations \ |
51 |
| -# --output-pkg acme.corp/pkg/generated/applyconfigurations \ |
52 |
| -# acme.corp/pkg/apis/example/v1 acme.corp/pkg/apis/example/v1alpha1 acme.corp/pkg/apis/example/v1beta1 acme.corp/pkg/apis/example/v2 acme.corp/pkg/apis/example3/v1 acme.corp/pkg/apis/exampledashed/v1 acme.corp/pkg/apis/secondexample/v1 acme.corp/pkg/apis/existinginterfaces/v1 |
53 |
| - |
54 |
| -# ${KUBE_LISTER_GEN} \ |
55 |
| -# --go-header-file ./../hack/boilerplate/boilerplate.generatego.txt \ |
56 |
| -# --output-dir ./pkg/generated/listers \ |
57 |
| -# --output-pkg acme.corp/pkg/generated/listers \ |
58 |
| -# acme.corp/pkg/apis/example/v1 acme.corp/pkg/apis/example/v1alpha1 acme.corp/pkg/apis/example/v1beta1 acme.corp/pkg/apis/example/v2 acme.corp/pkg/apis/example3/v1 acme.corp/pkg/apis/exampledashed/v1 acme.corp/pkg/apis/secondexample/v1 acme.corp/pkg/apis/existinginterfaces/v1 |
59 |
| - |
60 |
| -# ${KUBE_INFORMER_GEN} \ |
61 |
| -# --versioned-clientset-package acme.corp/pkg/generated/clientset/versioned \ |
62 |
| -# --listers-package acme.corp/pkg/generated/listers \ |
63 |
| -# --go-header-file ./../hack/boilerplate/boilerplate.generatego.txt \ |
64 |
| -# --output-dir ./pkg/generated/informers \ |
65 |
| -# --output-pkg acme.corp/pkg/generated/informers \ |
66 |
| -# acme.corp/pkg/apis/example/v1 acme.corp/pkg/apis/example/v1alpha1 acme.corp/pkg/apis/example/v1beta1 acme.corp/pkg/apis/example/v2 acme.corp/pkg/apis/example3/v1 acme.corp/pkg/apis/exampledashed/v1 acme.corp/pkg/apis/secondexample/v1 acme.corp/pkg/apis/existinginterfaces/v1 |
| 30 | +${CONTROLLER_GEN} object paths=./pkg/apis/... |
| 31 | + |
| 32 | +# Generate standard clientset |
| 33 | +${KUBE_CLIENT_GEN} \ |
| 34 | + --clientset-name versioned \ |
| 35 | + --go-header-file ./../hack/boilerplate/boilerplate.generatego.txt \ |
| 36 | + --input-base acme.corp/pkg/apis \ |
| 37 | + --input example/v1 \ |
| 38 | + --input example/v1alpha1 \ |
| 39 | + --input example/v1beta1 \ |
| 40 | + --input example/v2 \ |
| 41 | + --input example3/v1 \ |
| 42 | + --input exampledashed/v1 \ |
| 43 | + --input secondexample/v1 \ |
| 44 | + --input existinginterfaces/v1 \ |
| 45 | + --output-dir ./pkg/generated/clientset \ |
| 46 | + --output-pkg acme.corp/pkg/generated/clientset |
| 47 | + |
| 48 | +${KUBE_APPLYCONFIGURATION_GEN} \ |
| 49 | + --go-header-file ./../hack/boilerplate/boilerplate.generatego.txt \ |
| 50 | + --output-dir ./pkg/generated/applyconfigurations \ |
| 51 | + --output-pkg acme.corp/pkg/generated/applyconfigurations \ |
| 52 | + acme.corp/pkg/apis/example/v1 acme.corp/pkg/apis/example/v1alpha1 acme.corp/pkg/apis/example/v1beta1 acme.corp/pkg/apis/example/v2 acme.corp/pkg/apis/example3/v1 acme.corp/pkg/apis/exampledashed/v1 acme.corp/pkg/apis/secondexample/v1 acme.corp/pkg/apis/existinginterfaces/v1 |
| 53 | + |
| 54 | +${KUBE_LISTER_GEN} \ |
| 55 | + --go-header-file ./../hack/boilerplate/boilerplate.generatego.txt \ |
| 56 | + --output-dir ./pkg/generated/listers \ |
| 57 | + --output-pkg acme.corp/pkg/generated/listers \ |
| 58 | + acme.corp/pkg/apis/example/v1 acme.corp/pkg/apis/example/v1alpha1 acme.corp/pkg/apis/example/v1beta1 acme.corp/pkg/apis/example/v2 acme.corp/pkg/apis/example3/v1 acme.corp/pkg/apis/exampledashed/v1 acme.corp/pkg/apis/secondexample/v1 acme.corp/pkg/apis/existinginterfaces/v1 |
| 59 | + |
| 60 | +${KUBE_INFORMER_GEN} \ |
| 61 | + --versioned-clientset-package acme.corp/pkg/generated/clientset/versioned \ |
| 62 | + --listers-package acme.corp/pkg/generated/listers \ |
| 63 | + --go-header-file ./../hack/boilerplate/boilerplate.generatego.txt \ |
| 64 | + --output-dir ./pkg/generated/informers \ |
| 65 | + --output-pkg acme.corp/pkg/generated/informers \ |
| 66 | + acme.corp/pkg/apis/example/v1 acme.corp/pkg/apis/example/v1alpha1 acme.corp/pkg/apis/example/v1beta1 acme.corp/pkg/apis/example/v2 acme.corp/pkg/apis/example3/v1 acme.corp/pkg/apis/exampledashed/v1 acme.corp/pkg/apis/secondexample/v1 acme.corp/pkg/apis/existinginterfaces/v1 |
67 | 67 |
|
68 | 68 | # Generate cluster-aware clients, informers and listers using generated single-cluster code
|
69 | 69 | ./../_build/cluster-client-gen \
|
|
0 commit comments