Skip to content

Commit 0d096ed

Browse files
authored
Merge pull request #1337 from a7i/v1alpha1-deprecate-notice
v1alpha1: log deprecation notice
2 parents e798044 + d513c5d commit 0d096ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/api/v1alpha1/conversion.go

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ func (hi *handleImpl) Evictor() frameworktypes.Evictor {
103103
}
104104

105105
func Convert_v1alpha1_DeschedulerPolicy_To_api_DeschedulerPolicy(in *DeschedulerPolicy, out *api.DeschedulerPolicy, s conversion.Scope) error {
106+
klog.V(1).Info("Warning: v1alpha1 API is deprecated and will be removed in a future release. Use v1alpha2 API instead.")
107+
106108
err := V1alpha1ToInternal(in, pluginregistry.PluginRegistry, out, s)
107109
if err != nil {
108110
return err

0 commit comments

Comments
 (0)