Skip to content

Commit 55fcdbc

Browse files
jiukerjiuker
andauthored
fix:use tenant namespace instead minioJob Namespace (#2296)
fix:use tenant namespace instead minioJob Namespace Co-authored-by: jiuker <[email protected]>
1 parent 45110b9 commit 55fcdbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/utils/miniojob/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (jobCommand *MinIOIntervalJobCommand) createJob(_ context.Context, _ client
199199
Namespace: jobCR.Namespace,
200200
},
201201
StringData: map[string]string{
202-
"MC_HOST_myminio": fmt.Sprintf("%s://$(ACCESS_KEY):$(SECRET_KEY)@minio.%s.svc.%s", scheme, jobCR.Namespace, miniov2.GetClusterDomain()),
202+
"MC_HOST_myminio": fmt.Sprintf("%s://$(ACCESS_KEY):$(SECRET_KEY)@minio.%s.svc.%s", scheme, t.Namespace, miniov2.GetClusterDomain()),
203203
"MC_STS_ENDPOINT_myminio": fmt.Sprintf("https://sts.%s.svc.%s:%d/sts/%s", miniov2.GetNSFromFile(), miniov2.GetClusterDomain(), stsPort, t.Namespace),
204204
"MC_WEB_IDENTITY_TOKEN_FILE_myminio": "/var/run/secrets/kubernetes.io/serviceaccount/token",
205205
},

0 commit comments

Comments
 (0)