https://pulumi.com logo
Title
q

quiet-wolf-18467

10/07/2020, 11:14 AM
I'm working on Cluster API integrations and I need to store this YAML as data keys within ConfigMaps and Secrets 🙂
l

limited-rainbow-51650

10/07/2020, 11:41 AM
@quiet-wolf-18467 this is how I do it in Pulumi+TypeScript:
const config = 
pulumi.interpolate `log:
  stdout: true
  level: "debug,info"
...
`

const temporalConfigMap = new kubernetes.core.v1.ConfigMap("config", {
    apiVersion: "v1",
    kind: "ConfigMap",
    metadata: {
        namespace: appNamespace.metadata.name,
    },
    data: {
        "config_template.yaml": config,
    },
});