Skip to content

Commit 86c47c1

Browse files
author
zhongzichao
authored
fix bug for pvc namespace absent (#231)
1 parent dd4157f commit 86c47c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/job/runtime/kubernetes/executor/kubernetes_job.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func NewKubeJob(job *api.PFJob, dynamicClientOpt *k8s.DynamicClientOption) (api.
9191
log.Debugf("create kubernetes job: %#v", job)
9292
pvcName := ""
9393
if job.FSID != "" {
94-
pvcName = fmt.Sprintf("pfs-%s-pvc", job.FSID)
94+
pvcName = fmt.Sprintf("pfs-%s-%s-pvc", job.FSID, job.Namespace)
9595
}
9696

9797
kubeJob := KubeJob{

0 commit comments

Comments
 (0)