https://pulumi.com logo
#general
Title
# general
o

orange-policeman-59119

04/21/2020, 10:58 PM
Okay, I think I've answered that question by just trying a bunch of things, leaving me with more questions! 1. Is it possible to pass a dynamic (
Input/Output
) value to the
import
property? I am able to pass an Input/Output to the
metadata.name
and
metadata.namespace
into the object args, but I cannot then reference said name and namespace in the
import
arg? 2. Is it possible to pass in a value for
opts: { import: ??? }
that automatically determines what to import? For Kubernetes resources where the name and namespace are part of the resource itself, that is, for any given object defining
{ metadata: ObjectMeta }
we can determine the ID deterministically, so having to repeat it seems un-DRY.