Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 213df9c

Browse files
wackxuk8s-ci-robot
authored andcommitted
fix wrong api version when delete pytorchjob (#179)
1 parent e775742 commit 213df9c

File tree

1 file changed

+1
-1
lines changed
  • pkg/controller.v1/pytorch

1 file changed

+1
-1
lines changed

pkg/controller.v1/pytorch/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (pc *PyTorchController) cleanupPyTorchJob(job *pyv1.PyTorchJob) error {
197197

198198
// deletePyTorchJob deletes the given PyTorchJob.
199199
func (pc *PyTorchController) deletePyTorchJob(job *pyv1.PyTorchJob) error {
200-
return pc.jobClientSet.KubeflowV1beta2().PyTorchJobs(job.Namespace).Delete(job.Name, &metav1.DeleteOptions{})
200+
return pc.jobClientSet.KubeflowV1().PyTorchJobs(job.Namespace).Delete(job.Name, &metav1.DeleteOptions{})
201201
}
202202

203203
func getTotalReplicas(job *pyv1.PyTorchJob) int32 {

0 commit comments

Comments
 (0)