sielaq commented on issue #349:
URL:
https://github.com/apache/incubator-devlake-helm-chart/issues/349#issuecomment-3242617637
One way
to be able to move it to `configmap` like
```
apiVersion: v1
data:
DB_CHARSET: utf8mb4
DB_LOCATION: UTC
DB_PARSE_TIME: "True"
DB_URL:
mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@${MYSQL_SERVER}:3306/${MYSQL_DATABASE}?charset=${DB_CHARSET}&parseTime=${DB_PARSE_TIME}&loc=${DB_LOCATION}
...
```
is to fix in `incubator-devlake`
https://github.com/apache/incubator-devlake/blob/main/backend/core/runner/db.go#L84
https://github.com/apache/incubator-devlake/blob/main/backend/helpers/migrationhelper/migrationhelper.go#L130
(and other similar files) instead:
```
dbUrl := configReader.GetString("DB_URL")
#dbUrl := basicRes.GetConfig("DB_URL")
```
just to expand it like:
```
dbUrl := os.ExpandEnv(configReader.GetString("DB_URL"))
#dbUrl := os.ExpandEnv(basicRes.GetConfig("DB_URL"))
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]