Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-1.27] Generate helm clienset #4763

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

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

Loading
Loading