Skip to content

Commit

Permalink
fix:use tenant namespace instead minioJob Namespace (#2296)
Browse files Browse the repository at this point in the history
fix:use tenant namespace instead minioJob Namespace

Co-authored-by: jiuker <jiuker@minio.io>
  • Loading branch information
jiuker and jiuker authored Aug 27, 2024
1 parent 45110b9 commit 55fcdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/miniojob/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (jobCommand *MinIOIntervalJobCommand) createJob(_ context.Context, _ client
Namespace: jobCR.Namespace,
},
StringData: map[string]string{
"MC_HOST_myminio": fmt.Sprintf("%s://$(ACCESS_KEY):$(SECRET_KEY)@minio.%s.svc.%s", scheme, jobCR.Namespace, miniov2.GetClusterDomain()),
"MC_HOST_myminio": fmt.Sprintf("%s://$(ACCESS_KEY):$(SECRET_KEY)@minio.%s.svc.%s", scheme, t.Namespace, miniov2.GetClusterDomain()),
"MC_STS_ENDPOINT_myminio": fmt.Sprintf("https://sts.%s.svc.%s:%d/sts/%s", miniov2.GetNSFromFile(), miniov2.GetClusterDomain(), stsPort, t.Namespace),
"MC_WEB_IDENTITY_TOKEN_FILE_myminio": "/var/run/secrets/kubernetes.io/serviceaccount/token",
},
Expand Down

0 comments on commit 55fcdbc

Please sign in to comment.