Skip to content

Commit

Permalink
Revert "kube-codegen: update tool to generate client-go libs"
Browse files Browse the repository at this point in the history
This reverts commit 84f73dc.

Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Aug 28, 2024
1 parent a961e95 commit 822614f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
21 changes: 20 additions & 1 deletion pkg/k8s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,26 @@ generate:
.PHONY: __do_generate
__do_generate:
./tools/controller-gen crd paths=./apis/... output:dir=apis/cilium.io/client/crds/v1alpha1
./tools/k8s-code-gen.sh
chmod +x vendor/k8s.io/code-generator/generate-internal-groups.sh
# Do two invocations of generate-groups.sh, one with --plural-exceptions, one without
export GOPATH=$$(go env GOPATH); \
bash vendor/k8s.io/code-generator/generate-groups.sh deepcopy,defaulter \
github.com/cilium/tetragon/pkg/k8s/client \
github.com/cilium/tetragon/pkg/k8s/apis \
cilium.io:v1alpha1 \
--go-header-file hack/custom-boilerplate.go.txt \
-o . \
--trim-path-prefix github.com/cilium/tetragon/pkg/k8s \
; \
bash vendor/k8s.io/code-generator/generate-groups.sh lister,informer,client \
github.com/cilium/tetragon/pkg/k8s/client \
github.com/cilium/tetragon/pkg/k8s/apis \
cilium.io:v1alpha1 \
--go-header-file hack/custom-boilerplate.go.txt \
-o . \
--trim-path-prefix github.com/cilium/tetragon/pkg/k8s \
--plural-exceptions TracingPolicyNamespaced:TracingPoliciesNamespaced \
--plural-exceptions PodInfo:PodInfo \

.PHONY: vendor
vendor:
Expand Down
24 changes: 0 additions & 24 deletions pkg/k8s/tools/k8s-code-gen.sh

This file was deleted.

0 comments on commit 822614f

Please sign in to comment.