Fix code generation (#104)

* Fix code generation

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

* update go

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

---------

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
Hussein Galal
2024-05-14 01:05:13 +03:00
committed by GitHub
parent 57c24f6f3c
commit 0d6bf4922a
4 changed files with 6 additions and 10 deletions
-2
View File
@@ -11,8 +11,6 @@ steps:
image: rancher/dapper:v0.6.0
environment:
CROSS: 'true'
GITHUB_TOKEN:
from_secret: github_token
commands:
- dapper ci
- echo "${DRONE_TAG}-amd64" | sed -e 's/+/-/g' >.tags
+1 -1
View File
@@ -1,4 +1,4 @@
ARG GOLANG=rancher/hardened-build-base:v1.20.7b2
ARG GOLANG=rancher/hardened-build-base:v1.22.2b1
FROM ${GOLANG}
ARG DAPPER_HOST_ARCH
Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

+5 -7
View File
@@ -10,12 +10,10 @@ git clone --depth 1 ${CODEGEN_GIT_PKG} || true
SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
CODEGEN_PKG=./code-generator
"${CODEGEN_PKG}/kube_codegen.sh" \
"deepcopy" \
github.com/rancher/k3k/pkg/generated \
github.com/rancher/k3k/pkg/apis \
"k3k.io:v1alpha1" \
--go-header-file "${SCRIPT_ROOT}"/hack/boilerplate.go.txt \
--output-base "$(dirname "${BASH_SOURCE[0]}")/../../../.."
source ${CODEGEN_PKG}/kube_codegen.sh
kube::codegen::gen_helpers \
--boilerplate "${SCRIPT_ROOT}/hack/boilerplate.go.txt" \
"${SCRIPT_ROOT}/pkg/apis"
rm -rf code-generator