Skip to content

Commit

Permalink
mount configuration secret to '/tmp/minio-config' (#824)
Browse files Browse the repository at this point in the history
Co-authored-by: Lenin Alevski <[email protected]>
  • Loading branch information
harshavardhana and Alevsk authored Sep 10, 2021
1 parent 076aaa4 commit eb78c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/resources/statefulsets/minio-statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func minioEnvironmentVars(t *miniov2.Tenant, wsSecret *v1.Secret, hostsTemplate
if t.HasConfigurationSecret() {
envVars = append(envVars, corev1.EnvVar{
Name: "MINIO_CONFIG_ENV_FILE",
Value: miniov2.TmpPath + "/config.env",
Value: miniov2.TmpPath + "/minio-config/config.env",
})
}

Expand Down Expand Up @@ -258,7 +258,7 @@ func volumeMounts(t *miniov2.Tenant, pool *miniov2.Pool, operatorTLS bool) (moun
if t.HasConfigurationSecret() {
mounts = append(mounts, corev1.VolumeMount{
Name: "configuration",
MountPath: miniov2.TmpPath,
MountPath: miniov2.TmpPath + "/minio-config",
})
}

Expand Down

0 comments on commit eb78c83

Please sign in to comment.