Skip to content

Commit

Permalink
Fix patch ownerReference (#1004)
Browse files Browse the repository at this point in the history
Signed-off-by: Syulin7 <735122171@qq.com>
  • Loading branch information
Syulin7 authored Oct 13, 2023
1 parent a577b6d commit c4d37ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkg/apis/config/kubeclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func initKubeClient(kubeconfig string) (clientcmd.ClientConfig, *rest.Config, *k
if err != nil {
return nil, nil, nil, err
}
restConfig.QPS = 10
restConfig.Burst = 20
// create the clientset
clientset, err := kubernetes.NewForConfig(restConfig)
if err != nil {
Expand Down
3 changes: 1 addition & 2 deletions pkg/workflow/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ func SubmitJob(name string, trainingType string, namespace string, values interf
trainingType == string(types.PytorchTrainingJob) {
err := kubectl.PatchOwnerReferenceWithAppInfoFile(name, trainingType, appInfoFileName, namespace)
if err != nil {
log.Warnf("Failed to patch ownerReference %s due to %v`", name, err)
return err
log.Debugf("Failed to patch ownerReference %s due to %v`", name, err)
}
}

Expand Down

0 comments on commit c4d37ef

Please sign in to comment.