is it possible to use to get a resource that isn't...
# kubernetes
b
is it possible to use to get a resource that isn't defined in Pulumi, or do I need to use the standard k8s api ?
i'm trying to get a persistentvolume using python like so
Copy code
pv = PersistentVolumeList.get("volumes", "default")
g
Yeah, the
get
methods should do what you’re asking
I haven’t tried a
List
type, so it could be a bug if that’s not working
b
I think you're right, it's a bug
Copy code
error: Program failed with an unhandled exception:
    error: Traceback (most recent call last):
      File "/usr/local/bin/pulumi-language-python-exec", line 85, in <module>
        loop.run_until_complete(coro)
      File "/Users/lbriggs/.pyenv/versions/3.8.2/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
        return future.result()
      File "/Users/lbriggs/.pyenv/versions/venv-3.8.2/lib/python3.8/site-packages/pulumi/runtime/stack.py", line 81, in run_in_stack
        await run_pulumi_func(lambda: Stack(func))
      File "/Users/lbriggs/.pyenv/versions/venv-3.8.2/lib/python3.8/site-packages/pulumi/runtime/stack.py", line 34, in run_pulumi_func
        func()
      File "/Users/lbriggs/.pyenv/versions/venv-3.8.2/lib/python3.8/site-packages/pulumi/runtime/stack.py", line 81, in <lambda>
        await run_pulumi_func(lambda: Stack(func))
      File "/Users/lbriggs/.pyenv/versions/venv-3.8.2/lib/python3.8/site-packages/pulumi/runtime/stack.py", line 104, in __init__
        func()
      File "/usr/local/bin/pulumi-language-python-exec", line 84, in <lambda>
        coro = pulumi.runtime.run_in_stack(lambda: runpy.run_path(args.PROGRAM, run_name='__main__'))
      File "/Users/lbriggs/.pyenv/versions/3.8.2/lib/python3.8/runpy.py", line 280, in run_path
        return _run_code(code, mod_globals, init_globals,
      File "/Users/lbriggs/.pyenv/versions/3.8.2/lib/python3.8/runpy.py", line 86, in _run_code
        exec(code, run_globals)
      File "./__main__.py", line 39, in <module>
        pvl = PersistentVolumeList.get("volumes", "")
      File "/Users/lbriggs/.pyenv/versions/venv-3.8.2/lib/python3.8/site-packages/pulumi_kubernetes/core/v1/PersistentVolumeList.py", line 106, in get
        return PersistentVolumeList(resource_name, opts)
      File "/Users/lbriggs/.pyenv/versions/venv-3.8.2/lib/python3.8/site-packages/pulumi_kubernetes/core/v1/PersistentVolumeList.py", line 74, in __init__
        raise TypeError('Missing required property items')
    TypeError: Missing required property items
where should I file it?
g
pulumi-kubernetes repo, please
b