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?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by