I want to create a secret with Pulumi in Typescript it should contain the following data:
remote_write:
- url: "example.com"
basic_auth:
username: "user"
password: "XXX"
the code looks like:
const databaseSecret = new k8s.core.v1.Secret(
"secret-config",
{
data: {
remote_write: [
{
url: "example.com",
basic_auth:
{
username: "user",
password: "XXX",
}
}
],
}
},
k8sOpts
);
But this shows the follwing error message:
"Type '{ url: string; basic_auth: { username: string; password: string; }; }[]' is not assignable to type 'Input'"
I dont know how i can fix this? How do I get such nested data into a secret ?