Merge branch 'dev' of code.gitlink.org.cn:ci4s/ci4sManagement-cloud into dev
This commit is contained in:
commit
8ecc77dc04
|
@ -268,7 +268,7 @@ public class K8sClientUtil {
|
|||
.withName(podName)
|
||||
.withLabels(selector)
|
||||
.endMetadata()
|
||||
.withNewSpec().withSchedulerName("0 */4 * * *")//默认不被操作4小时后删除
|
||||
.withNewSpec() //默认不被操作4小时后删除
|
||||
.addNewContainer()
|
||||
.withName(podName)
|
||||
.withImage(image)
|
||||
|
@ -278,7 +278,7 @@ public class K8sClientUtil {
|
|||
.addNewVolume()
|
||||
.withName("workspace").withPersistentVolumeClaim(new V1PersistentVolumeClaimVolumeSource().claimName(pvc.getMetadata().getName()))
|
||||
.endVolume()
|
||||
// .withTerminationGracePeriodSeconds(14400L) //默认不被操作4小时后删除
|
||||
.withTerminationGracePeriodSeconds(14400L) //默认不被操作4小时后删除
|
||||
.endSpec()
|
||||
.build();
|
||||
|
||||
|
|
Loading…
Reference in New Issue