green-vegetable-15659
02/11/2025, 10:31 AMCustomResource in python and the doc states that inputs properties are implicitly available as output properties but how to access them?green-vegetable-15659
02/11/2025, 10:40 AMcr.__getattribute__('metadata')['name'] seems to work but not sure if that's quite correct in regards to being an outputstocky-restaurant-98004
02/11/2025, 7:13 PMstocky-restaurant-98004
02/11/2025, 7:15 PMkubernetes.apiextensions.CustomResource is a CRD.
pulumi.CustomResource is the base class for any resource managed by Pulumigreen-vegetable-15659
02/12/2025, 7:03 AMstocky-restaurant-98004
02/12/2025, 3:27 PMkind in this case) can also available as an output. Sometimes the default value will be set by the cloud API, it may not be known until after the resource is created.stocky-restaurant-98004
02/12/2025, 3:28 PMgreen-vegetable-15659
02/13/2025, 9:33 AMmetadata which is a default inputs, thanks anyway, my ugly hack seems to be working fine so i ll stick with it for nowstocky-restaurant-98004
02/13/2025, 2:51 PMcustom_resource.metadata should definitely be there. I am not sure if you need custom_resource.metadata.name or if you need an apply to get name.