sparse-intern-71089
12/18/2019, 10:09 PMbitter-dentist-28132
12/18/2019, 10:10 PMconfig.yml
gentle-diamond-70147
12/18/2019, 10:11 PMwhite-balloon-205
bitter-dentist-28132
12/19/2019, 6:12 PM.apply
any pulumi input/output stuff?bitter-dentist-28132
12/19/2019, 7:14 PMgentle-diamond-70147
12/19/2019, 7:29 PMbitter-dentist-28132
12/19/2019, 8:23 PMlet clientSecret = config.requireSecret('clientSecret');
const config = {client_secret: clientSecret};
const cm = new kx.ConfigMap("vouch-cm", {
data: {"config.yml": yaml.dump(config)}
});
there's more structure to the config, but that's the relevant partwhite-balloon-205
let clientSecret = config.requireSecret('clientSecret');
const cm = new kx.ConfigMap("vouch-cm", {
data: {"config.yml": clientSecret.apply(s => yaml.dump({client_secret: s})}
});
bitter-dentist-28132
12/19/2019, 10:03 PMbitter-dentist-28132
12/19/2019, 10:03 PMYAMLException: unacceptable kind of an object to dump [object Promise]
white-balloon-205
bitter-dentist-28132
12/19/2019, 10:04 PMbitter-dentist-28132
12/19/2019, 10:04 PM