sparse-intern-71089
01/04/2022, 2:39 AMbillowy-army-68599
config.yaml
? if it's just a Kubernetes configmap, you can use this:
https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configfile/ripe-shampoo-80285
01/04/2022, 3:10 AMbillowy-army-68599
billowy-army-68599
dat, err := ioutil.ReadFile("assets/config.yaml")
if err != nil {
return err
}
_, err = corev1.NewConfigMap(ctx, "example", &corev1.ConfigMapArgs{
Data: pulumi.StringMap{"data": pulumi.String(string(dat))},
})
if err != nil {
return err
}
billowy-army-68599
ripe-shampoo-80285
01/04/2022, 3:21 AMripe-shampoo-80285
01/04/2022, 3:42 AMbillowy-army-68599