https://pulumi.com logo
Title
g

gorgeous-minister-41131

06/11/2021, 10:36 PM
Not sure if this is a Python-specific thing, but is there not a way to modify the values of an Input of an object after-the-fact it has been instantiated? for example:
d = self.create_deployment(
            *args,
            **kwargs,
            extra_annotations={"<http://app.kubernetes.io/group|app.kubernetes.io/group>": "worker"},
            extra_labels={"<http://app.kubernetes.io/group|app.kubernetes.io/group>": "worker"},
        )
        d.spec.replicas = 2
I find myself having to write custom classes that use Mixins to modify object properties before they’re passed to the constructor, to allow the object to be modified (just-before) it’s actually created…