Skip to content

Commit

Permalink
Set the env var MINIO_SERVER_URL (#1650)
Browse files Browse the repository at this point in the history
Operator should set `MINIO_DOMAIN` and `MINIO_SERVER_URL` in the pool statefulset when a domain is specified on Operator console.

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
  • Loading branch information
shtripat committed Jun 22, 2023
1 parent 807335d commit 8c40651
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/resources/statefulsets/minio-statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ func minioEnvironmentVars(t *miniov2.Tenant, skipEnvVars map[string][]byte, opVe
useSchema = "https"
}
serverURL = fmt.Sprintf("%s://%s", useSchema, t.Spec.Features.Domains.Minio[0])
} else {
serverURL = t.Spec.Features.Domains.Minio[0]
}
}
envVarsMap[miniov2.MinIOServerURL] = corev1.EnvVar{
Expand Down

0 comments on commit 8c40651

Please sign in to comment.