https://pulumi.com logo
Title
i

important-zebra-56988

04/19/2021, 6:32 PM
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
"volumes": 
                    [{
                        "name": "prometheus-config-volume",
                        "config_map": {
                            "default_mode": 420,
                            "name": "prometheus-config",
                        },
                    }]
            },
yields a:
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
+ volumes         : [
                  +     [0]: {
                          + name: "prometheus-config-volume"
                        }
                    ]
                }