Skip to content

Commit

Permalink
Fix code generation (#104)
Browse files Browse the repository at this point in the history
* Fix code generation

Signed-off-by: galal-hussein <[email protected]>

* update go

Signed-off-by: galal-hussein <[email protected]>

---------

Signed-off-by: galal-hussein <[email protected]>
  • Loading branch information
galal-hussein authored May 13, 2024
1 parent 57c24f6 commit 0d6bf49
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Binary file removed hack/becausewecan.jpg
Binary file not shown.
12 changes: 5 additions & 7 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0d6bf49

Please sign in to comment.