Skip to content

Commit

Permalink
Generate helm clienset
Browse files Browse the repository at this point in the history
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <[email protected]>
(cherry picked from commit 687a103)
(cherry picked from commit 1e3bd4d)
  • Loading branch information
juanluisvaladas authored and twz123 committed Jul 12, 2024
1 parent 1a65125 commit 3d9a80b
Show file tree
Hide file tree
Showing 17 changed files with 830 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ pkg/apis/autopilot.k0sproject.io/v1beta2/.client-gen.stamp: $(shell find pkg/api
pkg/apis/autopilot.k0sproject.io/v1beta2/.client-gen.stamp: groupver = autopilot.k0sproject.io/v1beta2
pkg/apis/autopilot.k0sproject.io/v1beta2/.client-gen.stamp: gen_output_dir = $(groupver)

codegen_targets += pkg/apis/helm.k0sproject.io/v1beta1/.client-gen.stamp
pkg/apis/helm.k0sproject.io/v1beta1/.client-gen.stamp: $(shell find pkg/apis/helm.k0sproject.io/v1beta1/ -maxdepth 1 -type f -name \*.go -not -name zz_\*.go)
pkg/apis/helm.k0sproject.io/v1beta1/.client-gen.stamp: groupver = helm.k0sproject.io/v1beta1
pkg/apis/helm.k0sproject.io/v1beta1/.client-gen.stamp: gen_output_dir = $(groupver)

pkg/apis/%/.client-gen.stamp: .k0sbuild.docker-image.k0s hack/tools/boilerplate.go.txt embedded-bins/Makefile.variables
rm -rf 'pkg/apis/$(gen_output_dir)/clientset/'
CGO_ENABLED=0 $(GO) install k8s.io/code-generator/cmd/client-gen@v$(patsubst 1.%,0.%,$(kubernetes_version))
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/helm.k0sproject.io/v1beta1/chart_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ type ChartStatus struct {
// +kubebuilder:object:root=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// +genclient
// +genclient:onlyVerbs=create,delete,list,get,watch,update
// +groupName=helm.k0sproject.io
// Chart is the Schema for the charts API
type Chart struct {
metav1.TypeMeta `json:",inline"`
Expand Down
120 changes: 120 additions & 0 deletions pkg/apis/helm.k0sproject.io/v1beta1/clientset/clientset.go

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.

20 changes: 20 additions & 0 deletions pkg/apis/helm.k0sproject.io/v1beta1/clientset/fake/doc.go

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

56 changes: 56 additions & 0 deletions pkg/apis/helm.k0sproject.io/v1beta1/clientset/fake/register.go

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

20 changes: 20 additions & 0 deletions pkg/apis/helm.k0sproject.io/v1beta1/clientset/scheme/doc.go

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

56 changes: 56 additions & 0 deletions pkg/apis/helm.k0sproject.io/v1beta1/clientset/scheme/register.go

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

Loading

0 comments on commit 3d9a80b

Please sign in to comment.