Skip to content

Commit

Permalink
fix: remove ttl for job of creating bucket (#694)
Browse files Browse the repository at this point in the history
Signed-off-by: He Weiwei <hweiwei@vmware.com>
  • Loading branch information
heww committed Jul 3, 2021
1 parent de9c415 commit 89ee304
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/cluster/controllers/storage/job.go
Expand Up @@ -3,7 +3,6 @@ package storage
import (
"context"
"fmt"
"time"

goharborv1 "github.com/goharbor/harbor-operator/apis/goharbor.io/v1beta1"
"github.com/goharbor/harbor-operator/pkg/cluster/controllers/common"
Expand Down Expand Up @@ -59,8 +58,6 @@ func (m *MinIOController) generateMinIOInitJob(ctx context.Context, harborcluste

minioEndpoint := fmt.Sprintf("http://%s.%s.svc:%d", m.getTenantsServiceName(harborcluster), harborcluster.Namespace, m.getServicePort())

ttlSecondsAfterFinished := int32(time.Minute * 5 / time.Second)

job := &batchv1.Job{
ObjectMeta: metav1.ObjectMeta{
Name: m.getMinIONamespacedName(harborcluster).Name,
Expand All @@ -73,7 +70,6 @@ func (m *MinIOController) generateMinIOInitJob(ctx context.Context, harborcluste
},
},
Spec: batchv1.JobSpec{
TTLSecondsAfterFinished: &ttlSecondsAfterFinished,
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{
Expand Down

0 comments on commit 89ee304

Please sign in to comment.