[
https://issues.apache.org/jira/browse/YUNIKORN-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wilfred Spiegelenburg resolved YUNIKORN-2029.
---------------------------------------------
Fix Version/s: 1.4.0
Resolution: Fixed
committed changes to both K8shim and core
Thanks [~yangpoan]
> Remove deprecated functions
> ---------------------------
>
> Key: YUNIKORN-2029
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2029
> Project: Apache YuniKorn
> Issue Type: Task
> Components: core - scheduler, shim - kubernetes
> Reporter: PoAn Yang
> Assignee: PoAn Yang
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.4.0
>
>
> In yunikorn-core:
> {noformat}
> cmd/schedulerclient/client.go:38:34: grpc.WithInsecure is deprecated: use
> WithTransportCredentials and insecure.NewCredentials() instead. Will be
> supported throughout 1.x. (SA1019){noformat}
> In yunikorn-k8shim:
> {noformat}
> test/e2e/framework/helpers/common/utils.go:25:2: "io/ioutil" has been
> deprecated since Go 1.19: As of Go 1.16, the same functionality is now
> provided by package [io] or package [os], and those implementations should be
> preferred in new code. See the specific function documentation for details.
> (SA1019)
> test/e2e/framework/helpers/common/utils.go:59:14:
> ginkgo.CurrentGinkgoTestDescription is deprecated:
> CurrentGinkgoTestDescription has been replaced with CurrentSpecReport.
> (SA1019)
> test/e2e/framework/helpers/common/utils.go:119:2: rand.Seed has been
> deprecated since Go 1.20 and an alternative has been available since Go 1.0:
> As of Go 1.20 there is no reason to call Seed with a random value. Programs
> that call Seed with a known value to get a specific sequence of results
> should use New(NewSource(seed)) to obtain a local random generator. (SA1019)
> test/e2e/framework/helpers/k8s/events.go:110:8: wait.Poll is deprecated: This
> method does not return errors from context, use PollWithContextTimeout. Note
> that the new method will no longer return ErrWaitTimeout and instead return
> errors defined by the context package. Will be removed in a future release.
> (SA1019)
> test/e2e/framework/helpers/k8s/k8s_utils.go:364:9: wait.PollImmediate is
> deprecated: This method does not return errors from context, use
> PollWithContextTimeout. Note that the new method will no longer return
> ErrWaitTimeout and instead return errors defined by the context package. Will
> be removed in a future release. (SA1019){noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]