bumpy-flag-23122
09/24/2021, 7:07 PMpulumi_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.
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:
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'}