hi everyone :slightly_smiling_face: Somewhat new t...
# python
i
hi everyone 🙂 Somewhat new to the Pulumi ecosystem but trying my best to read through what’s available. Curious if any of you may have an idea on an issue I’m seeing with deploying a Stateful set. I took a working vanilla Kubernetes Statefulset yaml and piped it through
kube2pulumi
, and have it set up in my project - but I can’t seem to figure out how to get this ConfigMap to mount as a volume to my containers.
spec.volumes
Copy code
"volumes": 
                    [{
                        "name": "prometheus-config-volume",
                        "config_map": {
                            "default_mode": 420,
                            "name": "prometheus-config",
                        },
                    }]
            },
yields a:
Copy code
for key, value in attr.items():
    TypeError: 'NoneType' object is not callable
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
however - if I comment out the
config_map
nested in that object, I can see that it at least rendered a
volumes
attribute for the PodTemplateSpec
Copy code
+ volumes         : [
                  +     [0]: {
                          + name: "prometheus-config-volume"
                        }
                    ]
                }