sparse-intern-71089
07/07/2021, 7:00 PMstale-nail-78326
07/07/2021, 7:01 PMvalues
to replicate the YAML file?stale-nail-78326
07/07/2021, 7:04 PM@pulumi/kubernetes
3.4.1
.bored-table-20691
07/07/2021, 7:21 PMdatasources.yaml: | ā¦
FWIW, I have a similar thign for a different Helm chart and it works fine - you just put it there as a string (so you can do JSON.stringify(ā¦) on your object)stale-nail-78326
07/07/2021, 7:23 PMhelm install ... -f values.yml
is:
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: "Cinnamon Prometheus"
type: prometheus
access: proxy
url: <http://prometheus-server.default.svc.cluster.local>
editable: true
stale-nail-78326
07/07/2021, 7:24 PMJSON.stringfy
though.bored-table-20691
07/07/2021, 7:24 PM"extraConfigs": map[string]interface{}{
"datasources-init.yaml": pulumi.Sprintf(`
databases:
Where extraConfigs
is part of my values objectbored-table-20691
07/07/2021, 7:24 PM"datasources.yaml": {
apiVersion: 1,
datasources: {
name: "Cinnamon Prometheus",
type: "prometheus",
access: "proxy",
url: "<http://prometheus-server.default.svc.cluster.local>",
editable: true,
},
},
Try:
"datasources.yaml": JSON.stringify({
apiVersion: 1,
datasources: {
name: "Cinnamon Prometheus",
type: "prometheus",
access: "proxy",
url: "<http://prometheus-server.default.svc.cluster.local>",
editable: true,
},
}),
stale-nail-78326
07/07/2021, 7:25 PMstale-nail-78326
07/07/2021, 11:55 PMbored-table-20691
07/07/2021, 11:55 PMstale-nail-78326
07/07/2021, 11:57 PMdatasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: "Cinnamon Prometheus"
type: prometheus
access: proxy
url: <http://prometheus-server.default.svc.cluster.local>
editable: true
Translate to:
{
datasources: {
"datasources.yaml": {
datasources: [
{
name: "Cinnamon Prometheus",
type: "prometheus",
access: "proxy",
url: "<http://prometheus-server.default.svc.cluster.local>",
editable: true
}
]
}
}
}
stale-nail-78326
07/07/2021, 11:57 PMdatasources
was missing.stale-nail-78326
07/07/2021, 11:57 PM