https://pulumi.com logo
Title
a

average-market-57523

11/02/2021, 6:04 PM
I wanted to use an api in my k8s config like monitoring.coreos.com/v1, the solution would be to write it as a yaml file and use yaml.configFile but i also want to insert some variables into it.... how would i approach this?
b

billowy-army-68599

11/02/2021, 6:06 PM
you don't need to use
yaml
to do this, you can use the custom resource option
however, if you really want to manage it with yaml, you can use a transformation, see here: https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configfile/
a

average-market-57523

11/02/2021, 6:09 PM
thanks for the help, really didnt notice that
w

worried-city-86458

11/02/2021, 6:31 PM
FWIW, you could also use a text templating engine.