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)
Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
juanluisvaladas authored and twz123 committed Jul 15, 2024
1 parent 1a65125 commit e56d335
Show file tree
Hide file tree
Showing 18 changed files with 832 additions and 5 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: 2 additions & 1 deletion hack/copyright.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ has_date_copyright(){
for i in $(find cmd hack internal inttest pkg static -type f -name '*.go' -not -name 'zz_generated*'); do
case "$i" in
pkg/apis/k0s.k0sproject.io/clientset/* | \
pkg/apis/autopilot.k0sproject.io/v1beta2/clientset/*)
pkg/apis/autopilot.k0sproject.io/v1beta2/clientset/* | \
pkg/apis/helm.k0sproject.io/v1beta1/clientset/*)
if ! has_basic_copyright "$i"; then
echo "ERROR: $i doesn't have a proper copyright notice" 1>&2
RESULT=1
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 e56d335

Please sign in to comment.