icy-controller-6092
10/14/2024, 1:40 AMpulumi up
instead of updating the animation in-place
anyone else seeing these things?little-cartoon-10569
10/14/2024, 3:25 AMicy-controller-6092
10/14/2024, 6:54 AMicy-controller-6092
10/14/2024, 6:55 AM"foo": pulumi.output("bar")
is resulting in:
"foo": "Calling [toJSON] on an [Output<T>] is not supported.\n\nTo get the value of an Output as a JSON value or JSON string consider either:\n 1: o.apply(v => v.toJSON())\n 2: o.apply(v => JSON.stringify(v))\n\nSee <https://www.pulumi.com/docs/concepts/inputs-outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi."
little-cartoon-10569
10/14/2024, 6:58 AMicy-controller-6092
10/14/2024, 7:00 AMnew k8s.helm.v4.Chart(
'dagster',
{
repositoryOpts: {
repo: '<https://dagster-io.github.io/helm>',
},
chart: 'dagster',
values: {
postgresql: {
postgresqlPassword: pulumi.output('test'),
},
},
},
{
transforms: [
args => {
return args
},
],
},
)
icy-controller-6092
10/14/2024, 7:01 AMicy-controller-6092
10/14/2024, 7:02 AMargs
i can see that postgresqlPassword is still a OutputImpl
when it should have been resolved prior to hitting the transform stagelittle-cartoon-10569
10/14/2024, 7:03 AMicy-controller-6092
10/14/2024, 7:04 AMvalues
prop which is just a YAML document and shouldn't have any special processing at the pulumi levellittle-cartoon-10569
10/14/2024, 7:05 AMlittle-cartoon-10569
10/14/2024, 7:05 AMicy-controller-6092
10/14/2024, 7:06 AMlittle-cartoon-10569
10/14/2024, 7:07 AMlittle-cartoon-10569
10/14/2024, 7:08 AMicy-controller-6092
10/14/2024, 7:08 AMpulumi.output(deeplyNestedObject).apply(x => JSON.stringify(x))
where can i find more info?icy-controller-6092
10/14/2024, 7:09 AMlittle-cartoon-10569
10/14/2024, 7:09 AMlittle-cartoon-10569
10/14/2024, 7:10 AMicy-controller-6092
10/14/2024, 7:10 AMvalues: pulumi.output({ ... })
little-cartoon-10569
10/14/2024, 7:13 AMicy-controller-6092
10/14/2024, 7:17 AMlittle-cartoon-10569
10/14/2024, 7:18 AMlittle-cartoon-10569
10/14/2024, 7:27 AMlittle-cartoon-10569
10/14/2024, 7:28 AMicy-controller-6092
10/14/2024, 7:37 AMimport * as pulumi from '@pulumi/pulumi'
import * as k8s from '@pulumi/kubernetes'
import * as random from '@pulumi/random'
const uc = {
env: 'bug'
}
const psql = (() => {
const host = `dagster-postgresql.dagster-${uc.env}`
const user = 'dagstersu'
const rnd = new random.RandomBytes('sasl-password', { length: 32 })
const pass = pulumi.interpolate`dagster_${rnd.hex}`
const db = 'dagster'
return { host, user, pass, db }
})()
new k8s.helm.v4.Chart(
'dagster',
{
repositoryOpts: {
repo: '<https://dagster-io.github.io/helm>',
},
chart: 'dagster',
values: {
postgresql: {
postgresqlHost: psql.host,
postgresqlUsername: psql.user,
postgresqlPassword: psql.pass,
postgresqlDatabase: psql.db,
},
}
},
{
transforms: [
args => {
console.log(args.props.values.postgresql)
return args
}
]
}
)
icy-controller-6092
10/14/2024, 7:37 AMicy-controller-6092
10/14/2024, 7:44 AMlittle-cartoon-10569
10/14/2024, 7:47 AMicy-controller-6092
10/14/2024, 7:49 AMpostgresqlPassword
• using any other type of pulumi.output for password, it seems to be if specifically from Random that it causes this bugicy-controller-6092
10/14/2024, 7:49 AM