Hi, we're deploying `CustomResource` objects (spec...
# general
f
Hi, we're deploying
CustomResource
objects (specifically fluxCD
Receiver
) with the Kubernetes provider. Is there a way to get its
.status
field when it's been created? There is some information we need. In general, it seems like there are no
get
functions to retrieve API objects, is that right?
r
Have you tried returning it as an output
export const ...
you might find there's some useful untyped stuff, a bit like my example above which is a helm chart - that is typed as
CustomResource
but is also a dictionary of the resources deployed
f
Oh thanks for those suggestions! The crd2pulumi tools works and VS Code recognises all the type hints. When I do
pulumi up
i get an importError, though
Copy code
Traceback (most recent call last):
      File "/workspace/clusters/_main_.py", line 45, in <module>
        from clusters.infrastructure_modules.project import Project
      File "/workspace/clusters/clusters/infrastructure_modules/project.py", line 25, in <module>
        from fluxcd import pulumi_crds as fluxcd
      File "/workspace/clusters/fluxcd/pulumi_crds/_init_.py", line 5, in <module>
        from . import _utilities
      File "/workspace/clusters/fluxcd/pulumi_crds/_utilities.py", line 102, in <module>
        _version = _get_semver_version()
                   ^^^^^^^^^^^^^^^^^^^^^
      File "/workspace/clusters/fluxcd/pulumi_crds/_utilities.py", line 81, in _get_semver_version
        pep440_version_string = importlib.metadata.version(root_package)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.12/importlib/metadata/_init_.py", line 889, in version
        return distribution(distribution_name).version
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.12/importlib/metadata/_init_.py", line 862, in distribution
        return Distribution.from_name(distribution_name)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.12/importlib/metadata/_init_.py", line 399, in from_name
        raise PackageNotFoundError(name)
    importlib.metadata.PackageNotFoundError: No package metadata was found for fluxcd
any ideas? There is a pyproject toml file for the pulumi_crds package but it seems something is missing
ah nvmd I think it's an issue with our poetry setup 🙄