Hello everyone. I'm trying to do the following: - ...
# general
Hello everyone. I'm trying to do the following: • Create a postgres deployment using a helm chart • Create a new user / pass / database in the above helm chart • Connect the database to an application I got stuck with passing the superadmin password to the pulumi kubernetes provider:
Copy code
const postgres = new k8s.helm.v3.Chart("postgres", {
    version: "10.4.6",
    chart: "postgresql",
    fetchOpts: {
        repo: "<https://charts.bitnami.com/bitnami>",

// Cannot read property 'postgresql-password' of undefined
// kubectl get secret --namespace default postgres-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode 
export const dbPassword = new k8s.core.v1.Secret('postgres-postgresql', { metadata: { namespace: 'default' } }).data.apply(data => data['postgresql-password'])
console.log(46, dbPassword)

postgresql.config.username = 'postgres'
postgresql.config.password = dbPassword // yields: Type 'Output<string>' is not assignable to type 'string'
const myDb = new postgresql.Database("my-database");
Any help appreciated!