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'}
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