https://pulumi.com logo
#kubernetes
Title
# kubernetes
f

faint-motherboard-95438

05/18/2020, 9:31 PM
Hello there, I have a weird issue with a chart, I’m using https://github.com/bitnami/charts/tree/master/bitnami/postgresql-ha, everything works fine so far, but each time I
pulumi up
a
Secret
created by the chart (namely the
pgpool
one) keeps getting replaced each time for a
~data
diff reason. Anyone would know the reason and how to make it permanent please ? (Never had this issue with any other chart I use)
b

billowy-army-68599

05/18/2020, 9:34 PM
hi! I think this is because we use
helm template
to render these charts, and the chart generates a random string on each `helm template`: https://github.com/bitnami/charts/blob/f105cbc56a2fdec2f9a7ff5bbaa08e94934663ba/bitnami/postgresql-ha/templates/_helpers.tpl#L320
I'd recommend using
pulumi-random
to generate a password and pass it to the helm chart, the value will still be random, but won't change on each diff/preview
f

faint-motherboard-95438

05/18/2020, 9:35 PM
But i’m actually setting all passwords values in the chart configuration, so it shouldn’t generate one, right ?
nevermind I just spot there was a typo somewhere in the
values
object.. sorry for the noise and thanks for your quick reply @billowy-army-68599
👍 1
5 Views