From d513c5d9d7bd01058378cda4167f3dfb10e443bd Mon Sep 17 00:00:00 2001 From: Amir Alavi Date: Tue, 2 Jan 2024 20:41:12 -0500 Subject: [PATCH] v1alpha1: log deprecation notice Signed-off-by: Amir Alavi --- pkg/api/v1alpha1/conversion.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/api/v1alpha1/conversion.go b/pkg/api/v1alpha1/conversion.go index 09ff8c3853..7aaa5e51d4 100644 --- a/pkg/api/v1alpha1/conversion.go +++ b/pkg/api/v1alpha1/conversion.go @@ -103,6 +103,8 @@ func (hi *handleImpl) Evictor() frameworktypes.Evictor { } func Convert_v1alpha1_DeschedulerPolicy_To_api_DeschedulerPolicy(in *DeschedulerPolicy, out *api.DeschedulerPolicy, s conversion.Scope) error { + klog.V(1).Info("Warning: v1alpha1 API is deprecated and will be removed in a future release. Use v1alpha2 API instead.") + err := V1alpha1ToInternal(in, pluginregistry.PluginRegistry, out, s) if err != nil { return err