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

Commit

Permalink
fix wrong api version when delete pytorchjob (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
wackxu authored and k8s-ci-robot committed Jun 19, 2019
1 parent e775742 commit 213df9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller.v1/pytorch/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (pc *PyTorchController) cleanupPyTorchJob(job *pyv1.PyTorchJob) error {

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

func getTotalReplicas(job *pyv1.PyTorchJob) int32 {
Expand Down

0 comments on commit 213df9c

Please sign in to comment.