https://pulumi.com logo
Title
h

handsome-state-59775

05/10/2021, 8:17 PM
For creating a k8s StorageClass, I'm trying to use the second constructor from here with
StorageClassArgs
, but it errors out with:
File ".../venv/lib/python3.9/site-packages/pulumi_kubernetes/storage/v1/StorageClass.py", line 237, in __init__
        __self__._internal_init(resource_name, *args, **kwargs)
    TypeError: _internal_init() got an unexpected keyword argument 'args'
Call site looks something like this:
pulumi_kubernetes.storage.v1.StorageClass(
            resource_name='string',
            args=pulumi_kubernetes.storage.v1.StorageClassArgs(...),
            opts=pulumi.ResourceOptions(),
)
Any insights please?
r

red-match-15116

05/10/2021, 8:20 PM
What version of pulumi-kubernetes are you using?
h

handsome-state-59775

05/10/2021, 8:22 PM
pulumi-kubernetes==3.1.1
worked around it by using the first constructor. had the same issue with args for ClusterRole and ClusterRoleBinding as well - worked around similarly
r

red-match-15116

05/10/2021, 8:33 PM
That is definitely odd, can you please open an issue? I would expect that to work.
h

handsome-state-59775

05/10/2021, 8:33 PM
will do, thanks
🙏🏽 1