-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies for Go 1.22 and K8s 1.29
Signed-off-by: Xabier Larrakoetxea <[email protected]>
- Loading branch information
Showing
19 changed files
with
697 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
|
||
CODE_GENERATOR_IMAGE := ghcr.io/slok/kube-code-generator:v1.27.0 | ||
CRD_GENERATOR_IMAGE := ghcr.io/slok/kube-code-generator:v1.27.0 | ||
DIRECTORY := $(PWD) | ||
ROOT_DIRECTORY := $(DIRECTORY)/../.. | ||
CODE_GENERATOR_PACKAGE := github.com/spotahome/kooper/examples/pod-terminator-operator/v2 | ||
IMAGE_GEN=ghcr.io/slok/kube-code-generator:v0.1.0 | ||
|
||
generate: generate-client generate-crd | ||
default: generate | ||
|
||
generate-client: | ||
docker run --rm -it \ | ||
-v $(DIRECTORY):/go/src/$(CODE_GENERATOR_PACKAGE) \ | ||
-e PROJECT_PACKAGE=$(CODE_GENERATOR_PACKAGE) \ | ||
-e CLIENT_GENERATOR_OUT=$(CODE_GENERATOR_PACKAGE)/client/k8s \ | ||
-e APIS_ROOT=$(CODE_GENERATOR_PACKAGE)/apis \ | ||
-e GROUPS_VERSION="chaos:v1alpha1" \ | ||
-e GENERATION_TARGETS="deepcopy,client" \ | ||
$(CODE_GENERATOR_IMAGE) | ||
generate: | ||
@docker run --rm -v ${PWD}:/app "${IMAGE_GEN}" \ | ||
--apis-in ./apis \ | ||
--go-gen-out ./client/k8s \ | ||
--crd-gen-out ./manifests | ||
|
||
generate-crd: | ||
docker run -it --rm \ | ||
-v $(ROOT_DIRECTORY):/src \ | ||
-e GO_PROJECT_ROOT=/src/examples/pod-terminator-operator \ | ||
-e CRD_TYPES_PATH=/src/examples/pod-terminator-operator/apis \ | ||
-e CRD_OUT_PATH=/src/examples/pod-terminator-operator/manifests \ | ||
$(CRD_GENERATOR_IMAGE) update-crd.sh | ||
generate-debug: | ||
@docker run --entrypoint /bin/bash --rm -it -v ${PWD}:/app "${IMAGE_GEN}" |
4 changes: 0 additions & 4 deletions
4
examples/pod-terminator-operator/client/k8s/clientset/versioned/doc.go
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
examples/pod-terminator-operator/client/k8s/informers/externalversions/chaos/interface.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
...pod-terminator-operator/client/k8s/informers/externalversions/chaos/v1alpha1/interface.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
73 changes: 73 additions & 0 deletions
73
...terminator-operator/client/k8s/informers/externalversions/chaos/v1alpha1/podterminator.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.