Hi, I am trying to create a program with multiple ...
# getting-started
t
Hi, I am trying to create a program with multiple independent steps with Java/Kotlin. how can I concatenate sequentially the various stacks?
s
If I’m understanding your question correctly (you want to automate/orchestrate operations against multiple stacks), you’ll want to use Pulumi’s Automation API. It will let you write code that will programmatically invoke Pulumi operations against other stacks.
l
Or write a script that cds into the right directories and runs
pulumi up
in the right order 🙂
s
Exactly, write a script...using the Automation API 😄
t
Hi Scott,
thanks. Does an automation api java/kotlin client exists?
or it is a bash script bonanza?
s
I don't think we have Java/Kotlin support in Automation API, but the language you use for the Pulumi program doesn't necessarily have to match the language you use with Automation API. So you could use Go (for example) with Java/Kotlin Pulumi programs. I know that's not ideal, but that's the workaround currently.
t
How about Helm Chart support with Java/Kotlin libraries?
s
The Pulumi Kubernetes provider (see https://github.com/pulumi/pulumi-kubernetes) does have a Java SDK, so the support should be there.
t
Great. The documentation refers to com.pulumi.kubernetes.helm.v3.Chart but I can't see it
s
In browsing
<https://github.com/pulumi/pulumi-kubernetes/blob/master/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/Release.java>
it looks like there may be only
Helmv3.Release
support (which we generally recommend using over
Helmv3.Chart
). I am not a Java expert, though, so I may have missed it.
t
Thanks. It makes sense. Have a great weekend
s
You too!