Hello Everyone I created array with key value pai...
# general
b
Hello Everyone I created array with key value pair
Copy code
let testdata: { [key: string]: string } = {};
        testdata["namespace"] = "pulumi";
assign it to configMap
Copy code
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.
Copy code
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?