https://pulumi.com logo
#python
Title
b

better-actor-92669

04/29/2021, 9:08 AM
Hello guys! Due to this issue https://github.com/pulumi/pulumi-kubernetes/issues/800 I have to use a transformation below to install helm charts' CRDS
Copy code
def remove_crds_status(obj):
    if obj["kind"] == "CustomResourceDefinition" and "status" in obj:
        del obj["status"]
or TypeError is raised
Copy code
TypeError: _internal_init() got an unexpected keyword argument 'status'
However, after I upgraded to Pulumi 3.0, remove_crds_status() transformation raises an exception
Copy code
AssertionError: Unexpected type. Expected 'dict' got 'typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, bool, typing.Awaitable[typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, bool]], pulumi.output.Output[~T], NoneType]'
Can you please help me find a workaround?
Sorry to disturb you @red-match-15116, can you check this out please?
m

microscopic-pilot-97530

04/29/2021, 4:33 PM
Hi dz, we’re looking into this issue. It’s being tracked at https://github.com/pulumi/pulumi-kubernetes/issues/1541
b

better-actor-92669

04/30/2021, 9:30 AM
thank you @microscopic-pilot-97530