big-psychiatrist-43588
08/08/2022, 11:21 AMlet testdata: { [key: string]: string } = {};
testdata["namespace"] = "pulumi";
assign it to configMap
new k8s.core.v1.ConfigMap("testingConfigMap", {
metadata: {
labels: appLabels,
name: "client-default",
namespace: this.namespace
},
data: { "default.conf": testdata.toString() }
}, { provider: this.provider });
when i access the configMap, I see the data is coming in the form of binary not as a plain text.
kubectl describe cm -n thx client-default
Name: client-default
Namespace: pulumi
Labels: app=testingConfigMap
<http://app.kubernetes.io/managed-by=pulumi|app.kubernetes.io/managed-by=pulumi>
Data
====
default.conf:
----
[object Object]
BinaryData
====
Events: <none>
Can someone guide me here?