sparse-intern-71089
11/21/2021, 7:35 AMsparse-student-54516
11/21/2021, 7:47 AMsparse-student-54516
11/21/2021, 7:47 AMsparse-student-54516
11/21/2021, 7:50 AM.apply ((<anyname>) => anyname;
orange-kite-80991
11/21/2021, 8:01 AMconst frontendIp = frontend.status.loadBalancer.ingress[0].apply((ip) => `${ip}`)
That line is accepted but the result is still an Output<string>. When I go to use it I still get
'Output<string>' is not assignable to type 'Input<Input<string>[]>'
miniature-king-36473
11/21/2021, 11:10 AM[frontendIp]
when you use itmagnificent-lifeguard-15082
11/21/2021, 11:26 AMwonderful-twilight-70958
11/21/2021, 12:07 PMorange-kite-80991
11/21/2021, 5:11 PMlittle-cartoon-10569
11/21/2021, 8:11 PM.apply ((<anyname>) => anyname;
and `frontend.status.loadBalancer.ingress[0].apply((ip) => ${ip}
)` doesn't change anything. Can you paste your current code (maybe using the text snippet tool?little-cartoon-10569
11/21/2021, 8:12 PMorange-kite-80991
11/21/2021, 8:31 PMrecords: [frontendIp]
const postgresqlChart = new k8s.helm.v3.Chart(
'postgresql',
{
chart: 'postgresql',
version: '10.5.0',
namespace: namespace.metadata.name,
fetchOpts: { repo: '<https://charts.bitnami.com/bitnami/>' },
values: {
postgresqlPostgresPassword: rootPassword,
postgresqlDatabase: key,
postgresqlUsername: key,
postgresqlPassword: password,
service: {
type: 'LoadBalancer',
annotations: {
'<http://external-dns.alpha.kubernetes.io/hostname|external-dns.alpha.kubernetes.io/hostname>': desiredFQDN,
},
},
metrics: {
enabled: true,
},
},
},
{ provider: infra.provider },
)
// Export the IP
const frontend = postgresqlChart.getResource("v1/Service", "postgresql");
const frontendIp = frontend.status.loadBalancer.ingress[0].ip
const aRecord = new azure.dns.ARecord( desiredHostname,
name: desiredHostname,
zoneName: dnsRootDomain,
resourceGroupName: dnsRootResourceGroup,
ttl: 30,
records: [frontendIp],
})
I have verified that Pulumi can find the ip field. If I put a typo in the path, I get an error.sparse-student-54516
11/22/2021, 3:38 AM