incubator-devlake-helm-chart icon indicating copy to clipboard operation
incubator-devlake-helm-chart copied to clipboard

No values passed from helm chart for pgsql

Open ashwilson opened this issue 1 year ago • 5 comments

I'm trying to add a helm deployment via terraform provider

With the postgres external option set, it does not appear to have the values passed from the helm chart; stops on checking database - from the statefulset devlake-lake:

initContainers": [
      {
        "name": "waiting-database-ready",
        "image": "alpine:3.16",
        "command": [
          "sh",
          "-c",
          "until nc -z -w 2   ; do\n  echo wait for database ready ...\n  sleep 2\ndone\necho database is ready\n"
        ],
        "resources": {},

Using the section

....
    pgsql: {
      useExternal: true,
      externalServer: "postgres.${var.domain_name}",
      username: "devlake",
      password: data.aws_secretsmanager_secret_version.postgres.secret_string,
      database: "devlake"
    },
    option: {
      database: "pgsql"
    },
....

Could be that the values are passed to the initi container in the chart?

ashwilson avatar Jun 27 '23 14:06 ashwilson

@IronCore864 please take a look

klesh avatar Jun 28 '23 12:06 klesh

Postgresql option is disabled and not supported for the moment. Please @IronCore864 correct me if I'm wrong. @ashwilson may I suggest using MySQL?

JorgeGar avatar Jun 28 '23 13:06 JorgeGar

@JorgeGar yes, exactly, postgresql option is disabled and not supported for the moment. It used to be supported for a period, but the time cost on it was too high, so disabled

ZhangNing10 avatar Jun 28 '23 14:06 ZhangNing10

But is postgres itself supported in devlake?

Split174 avatar Aug 15 '23 05:08 Split174

@Split174 devlake itself supports pg, but not the grafana dashboards, they were all designed based on MySQL syntax

klesh avatar Aug 15 '23 09:08 klesh