Skip to content

Commit e5cfe35

Browse files
committed
Fixed minor security issue
1 parent b8c7932 commit e5cfe35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/handlers/job.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var (
5454
const (
5555
SupervisorPath = "./supervisor"
5656
NodeSelectorKey = "kubernetes.io/hostname"
57-
MinIOCredentialsPath = "/var/run/secrets/providers/minio.default"
57+
MinIODefaultPath = "/var/run/secrets/providers/minio.default"
5858
MinIOSecretVolumeName = "minio-user"
5959

6060
// Annotations for InterLink nodes
@@ -174,7 +174,7 @@ func MakeJobHandler(cfg *types.Config, kubeClientset kubernetes.Interface, back
174174
podSpec.Containers[0].VolumeMounts = append(podSpec.Containers[0].VolumeMounts, v1.VolumeMount{
175175
Name: MinIOSecretVolumeName,
176176
ReadOnly: true,
177-
MountPath: MinIOCredentialsPath,
177+
MountPath: MinIODefaultPath,
178178
})
179179

180180
// Initialize event envVar and args var

0 commit comments

Comments
 (0)