Hi can anyone help me make a multi-level configmap...
# general
b
Hi can anyone help me make a multi-level configmap using
pulumi_kubernetes
package. We have a configmap object that works fine if the data is flat, but it fails to parse the indented
usernameSecret
and
passwordSecret
entries.
Copy code
self.argo_configmap = ConfigMap(
            resource_name='test_cm',
            metadata=ObjectMetaArgs(name='argocd-cm',
                                    namespace='argocd'),
            data={
                "type": "helm",
                "url": "<https://test.com:8085>",
                "name": "test-helm-repo",
                "usernameSecret": {
                    "name": "test-helm-repo-credentials",
                    "key": "username"
                },
                "passwordSecret": {
                    "name": "test-helm-repo-credentials",
                    "key": "password"
                }
            },
I receive error:
Copy code
AssertionError: Unexpected type; expected a value of type `<class 'str'>` but got a value of type `<class 'dict'>` at resource `test_cm`, property `data.passwordSecret`: {'name': 'test-helm-repo-credentials', 'key': 'password'}