For creating a k8s StorageClass, I'm trying to use...
# python
h
For creating a k8s StorageClass, I'm trying to use the second constructor from here with
StorageClassArgs
, but it errors out with:
Copy code
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:
Copy code
pulumi_kubernetes.storage.v1.StorageClass(
            resource_name='string',
            args=pulumi_kubernetes.storage.v1.StorageClassArgs(...),
            opts=pulumi.ResourceOptions(),
)
Any insights please?
r
What version of pulumi-kubernetes are you using?
h
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
That is definitely odd, can you please open an issue? I would expect that to work.
h
will do, thanks
🙏🏽 1