File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -17,27 +17,31 @@ printf "Start code-gen script \n"
17
17
18
18
# Install the required binaries with modules enabled
19
19
go install k8s.io/code-generator
20
+ chmod +x
" $GOPATH " /pkg/mod/k8s.io/
[email protected] /kube_codegen.sh
20
21
21
22
printf " Got all dependencies \n"
22
23
23
24
# Ensure proper package tags are in place (See: https://pkg.go.dev/k8s.io/code-generator/cmd/deepcopy-gen)
24
25
printf " Running code generators...\n"
25
26
26
- chmod +x
" $GOPATH " /pkg/mod/k8s.io/
[email protected] /kube_codegen.sh
27
-
28
27
# Use generate-groups.sh helper script to run all code generators
29
28
" $GOPATH " /pkg/mod/k8s.io/
[email protected] /kube_codegen.sh all \
30
29
github.com/janekbaraniewski/kubeserial/pkg/generated \
31
30
github.com/janekbaraniewski/kubeserial/pkg/apis \
32
31
v1alpha1
33
32
33
+ printf " Finished kube_codegen.sh, updating source files...\n"
34
+
34
35
# Manual copy might be required if output paths are incorrectly set by the tools, adjust paths as needed
35
36
if [[ " ${COPY_OR_DIFF} " == " copy" ]]; then
37
+ printf " Removing old generated files...\n"
36
38
rm -rf ./pkg/generated
39
+ printf " Populating with new generated files...\n"
37
40
mkdir -p ./pkg/generated
38
41
cp -r " $GOPATH /src/github.com/janekbaraniewski/kubeserial/pkg/generated/" * ./pkg/generated/
39
42
fi
40
43
44
+ printf " Final checks...\n"
41
45
replace_or_compare " $GOPATH /src/github.com/janekbaraniewski/kubeserial/pkg/generated/" ./pkg/generated/
42
46
43
47
printf " All generators have completed.\n"
You can’t perform that action at this time.
0 commit comments