worried-city-86458
09/25/2019, 5:41 AMrhythmic-finland-36256
09/25/2019, 12:43 PMmonitoringNamespace.metadata.name
? This is how it works fine for me. I assume that templating is already done for preview and in that case it is missing the resolved output value.const monitoringNamespaceName = "monitoring";
const monitoringNamespace = new k8s.core.v1.Namespace("monitoring", { metadata: { name: monitoringNamespaceName } }, { provider : provider });
const prometheusOperatorChart = new k8s.helm.v2.Chart("po", {
repo: "stable",
chart: "prometheus-operator",
namespace: monitoringNamespaceName,
values: {
alertmanager: { persistentVolume: { storageClass: "gp2" } },
server: { persistentVolume: { storageClass: "gp2" } }
}
}, { provider: provider });
worried-city-86458
09/25/2019, 6:40 PMrhythmic-finland-36256
09/25/2019, 10:51 PMworried-city-86458
09/25/2019, 11:48 PMroot@ebea11107491:/workspaces/workspace/k8s-infra# p up --suppress-outputs
Previewing update (org/dev):
Type Name Plan Info
pulumi:pulumi:Stack k8s-infra-dev
+ ├─ kubernetes:helm.sh:Chart po create 1 message
+ └─ kubernetes:core:Namespace monitoring create
Diagnostics:
kubernetes:helm.sh:Chart (po):
[Can't preview] all chart values must be known ahead of time to generate an accurate preview.
Resources:
+ 2 to create
15 unchanged
namespace: myns.metadata.name
, which is how I expected to be able to refer to the namespace name, with the output being lifted.stocky-island-3676
11/08/2019, 3:28 PM