https://pulumi.com logo
Title
a

adorable-alligator-23779

03/22/2021, 3:46 PM
Hey all. i’m trying to make a small GO-CLI that will deploy to k8s using Pulumi. i keep getting error: no resource plugin ‘kubernetes’ found in the workspace or on your $PATH any ideas?, Github issues has no info :() im trying to use the automation api described here: Thttps://www.pulumi.com/blog/automation-api/ and https://www.pulumi.com/blog/deploy-kubernetes-and-apps-with-go/ i use auto.NewStackInlineSourceand feed it with a pulumi.RunFunc where i do all the pulumi “magic” and the plugin is installed according to pulumi:
pulumi plugin ls
NAME        KIND      VERSION  SIZE    INSTALLED       LAST USED
aws         resource  3.26.1   260 MB  5 days ago      5 days ago
kubernetes  resource  2.8.3    67 MB   10 minutes ago  10 minutes ago
essentially - for inline automation it seems you need to pass on the plugins directly 😉
a

adorable-alligator-23779

03/22/2021, 4:54 PM
nice. gotta love incomplete documentation 😄 ❤️
b

better-shampoo-48884

03/22/2021, 4:55 PM
examples are the way for now 😉
a

adorable-alligator-23779

03/22/2021, 4:56 PM
yeah, i’m probably not gonna be recommending this to any feint of heart
i got it working by creating a pulumi k8s project in a tmp folder and that installed the plugin..
Implicit behaviour is the best 🙂
b

better-shampoo-48884

03/22/2021, 4:56 PM
think there's a reason this is an /x/ at the moment, with docs basically inaccessible through navigation from the main page
heh - excellent
a

adorable-alligator-23779

03/22/2021, 4:57 PM
yeah im getting a feeling as well that the stuff im trying to do is not really production ready 😞
Which worries me even more cause it’s for a assignment for a job i am applying to xD
but thank you very much for pointing me to a working example! ❤️
i’m going to be needing that plugin code in it so the people who test it doesnt run into the same problem 😄
b

better-shampoo-48884

03/22/2021, 5:01 PM
hah 😄 well absolute best of luck to you - any job that's doing this kind of stuff might just be worth trying to get 😉
a

adorable-alligator-23779

03/22/2021, 5:01 PM
well. i am working with the exact same things already 😆
But i use terraform and a pipeline i built mysef 🙂
Shameless self promoton
b

better-shampoo-48884

03/22/2021, 5:02 PM
sweet