narrow-judge-54785
03/01/2022, 4:34 PMSnapshot Handle
from the volumesnapshotcontent resource that is generated automatically when making a new snapshot. Because it's generated automatically it is not a pulumi resource, so as far as I know I can't get that value using pulumi. I wanted to use pulumi for it so I can save it as a stackreference and use it in different places in my infrastructure. I tried using query-kubernetes, because I can get the name of this volumesnapshotcontent from the volumesnapshot itself, but this package does not support crd's.
Anyone an idea on how I could achieve this? (I thought of using a kubectl container to get it, but I would prefer to keep it all pulumi)crooked-pillow-11944
03/01/2022, 4:37 PMnarrow-judge-54785
03/01/2022, 4:41 PMcrooked-pillow-11944
03/01/2022, 4:45 PMmysql-connector-python
module, it's referred to in requirements
You can use any upstream code base and/or build your own that can be called when running your stacknarrow-judge-54785
03/01/2022, 4:57 PMcrooked-pillow-11944
03/01/2022, 5:02 PMnarrow-judge-54785
03/01/2022, 5:07 PMconst k8sApi = kc.makeApiClient(CustomObjectsApi);
const volumeSnapshotContents = await k8sApi.listClusterCustomObject("<http://snapshot.storage.k8s.io|snapshot.storage.k8s.io>","v1","volumesnapshotcontents");