You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception: setting args: copying input "file": expected a pulumi.String, got a asset
To me there are two possible solutions
allow file= to be a file-like object , or StringAsset in addition to the str (file-path)
introduce a new parameter to ConfigFile like content= where you can pass the computed manifest
Add a new concept like kubernetes.yaml.v2.Manifest() where we can pass the manifest content without having a file (allowing the manifest content to be a computed string )
Affected area/feature
The text was updated successfully, but these errors were encountered:
Hello!
Issue details
It would be nice if
kubernetes.yaml.v2.ConfigFile
would allow assets (specificallypulumi.StringAsset
) to be passed in thefile
parameter.that way I could have an output that render yaml via jinja2 and returns an
StringAsset
and pass it toConfigFile
like thisthe above code now raises
To me there are two possible solutions
file=
to be a file-like object , orStringAsset
in addition to thestr
(file-path)ConfigFile
likecontent=
where you can pass the computed manifestkubernetes.yaml.v2.Manifest()
where we can pass the manifest content without having a file (allowing the manifest content to be a computed string )Affected area/feature
The text was updated successfully, but these errors were encountered: