Skip to content

Commit

Permalink
chore(deps): update module github.com/kubernetes/code-generator to v0…
Browse files Browse the repository at this point in the history
….30.1 (#908)
  • Loading branch information
erikgb authored May 15, 2024
1 parent d4e29df commit 2333e30
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 37 deletions.
22 changes: 8 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,22 @@ generate: controller-gen k8s-client-gen ## Generate code required for K8s API an
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."

GO_MODULE = $(shell go list -m)
API_DIRS = $(shell find api -mindepth 2 -type d | sed "s|^|$(shell go list -m)/|" | paste -sd ",")
API_DIRS = $(shell find api -mindepth 2 -type d | sed "s|^|$(shell go list -m)/|" | paste -sd " ")
.PHONY: k8s-client-gen
k8s-client-gen: applyconfiguration-gen
rm -rf internal/client/applyconfiguration
@echo ">> generating internal/client/applyconfiguration..."
$(APPLYCONFIGURATION_GEN) \
--go-header-file hack/boilerplate.go.txt \
--input-dirs "$(API_DIRS)" \
--output-package "$(GO_MODULE)/internal/client/applyconfiguration" \
--trim-path-prefix "$(GO_MODULE)" \
--output-base "."
--output-dir "internal/client/applyconfiguration" \
--output-pkg "$(GO_MODULE)/internal/client/applyconfiguration" \
$(API_DIRS)

.PHONY: wg-policy-client-gen
wg-policy-client-gen: applyconfiguration-gen
rm -rf internal/wg-policy/applyconfiguration
@echo ">> generating internal/wg-policy/applyconfiguration..."
$(APPLYCONFIGURATION_GEN) \
--go-header-file hack/boilerplate.go.txt \
--input-dirs "sigs.k8s.io/wg-policy-prototypes/policy-report/pkg/api/reports.x-k8s.io/v1beta2" \
--output-package "$(GO_MODULE)/internal/wg-policy/applyconfiguration" \
--trim-path-prefix "$(GO_MODULE)" \
--output-base "."
--output-dir "internal/wg-policy/applyconfiguration" \
--output-pkg "$(GO_MODULE)/internal/wg-policy/applyconfiguration" \
"sigs.k8s.io/wg-policy-prototypes/policy-report/pkg/api/reports.x-k8s.io/v1beta2"

.PHONY: wg-policy-crd-update
wg-policy-crd-update:
Expand Down Expand Up @@ -199,7 +193,7 @@ GCI_VERSION ?= v0.13.4
# renovate: datasource=go depName=sigs.k8s.io/kustomize/kustomize/v5
KUSTOMIZE_VERSION ?= v5.4.1
# renovate: datasource=go depName=github.com/kubernetes/code-generator
CODE_GENERATOR_VERSION ?= v0.29.3
CODE_GENERATOR_VERSION ?= v0.30.1
# renovate: datasource=go depName=sigs.k8s.io/controller-tools
CONTROLLER_TOOLS_VERSION ?= v0.15.0

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2333e30

Please sign in to comment.