[Query] Kubernetes Scheduling Framework, "kubernetes-sigs/scheduler-plugins" [Warnings] for "./hack/update-codegen.sh"

712 views
Skip to first unread message

kiran kumari

unread,
Jan 6, 2024, 6:34:25 AMJan 6
to kubernetes-sig-scheduling

I am trying to create a new plugin for "kubernetes-sigs/scheduler-plugins" using links

https://github.com/kubernetes-sigs/scheduler-plugins/blob/master/doc/develop.md
https://github.com/wangchen615/scheduler-plugins/tree/kubecon22/pkg/scorebylabel
But getting following Warnings for command ./hack/update-codegen.sh

Warnings:
Generating deepcopy funcs
Generating defaulters
Generating conversions
WARNING: generate-groups.sh is deprecated.
WARNING: Please use k8s.io/code-generator/kube_codegen.sh instead.

WARNING: Specifying "all" as a generator is deprecated.
WARNING: Please list the specific generators needed.
WARNING: "all" is now an alias for "applyconfiguration,client,deepcopy,informer,lister"; new code generators WILL NOT be added to this set

WARNING: generate-internal-groups.sh is deprecated.
WARNING: Please use k8s.io/code-generator/kube_codegen.sh instead.

Generating deepcopy funcs
Generating apply configuration for scheduling:v1alpha1 at sigs.k8s.io/scheduler-plugins/pkg/generated/applyconfiguration
Generating clientset for scheduling:v1alpha1 at sigs.k8s.io/scheduler-plugins/pkg/generated/clientset
Generating listers for scheduling:v1alpha1 at sigs.k8s.io/scheduler-plugins/pkg/generated/listers
Generating informers for scheduling:v1alpha1 at sigs.k8s.io/scheduler-plugins/pkg/generated/informers

How to solve this?

I have added the plugin "ScoreByLabel" by referring https://github.com/wangchen615/scheduler-plugins/tree/kubecon22/pkg/scorebylabel and executed command "./hack/update-codegen.sh"

Expectation was to update the generated files with functions as DeepCopy for the added structures.

Reply all
Reply to author
Forward
0 new messages