broad-dog-22463
08/12/2020, 12:14 PMlimited-rainbow-51650
08/12/2020, 12:33 PMbroad-dog-22463
08/12/2020, 1:26 PMfamous-kite-69533
08/12/2020, 1:27 PMwhite-balloon-205
famous-kite-69533
08/12/2020, 2:56 PMmillions-judge-24978
08/12/2020, 3:07 PMprehistoric-account-60014
08/12/2020, 3:44 PMrepoDir
?white-balloon-205
Will the operator support monorepos (i.e., a monorepo with multiple Pulumi.yaml) or is the expectation that one would create multiple stack resources for each stack in the monorepo and simply use a differentYou will in general want to have one?repoDir
Stack
resource in Kuberetes for each Pulumi stack you want to manage. The code (project) for those stacks can come from any repo and any directory in that repo - so it's totally fine to have a monorepo that houses all your code. I've used the operator for example to deploy two stacks out of our pulumi/examples
repo (which is very much a monorepo!), each at different commits.limited-rainbow-51650
08/12/2020, 4:25 PMwhite-balloon-205
follow up question on the monorepo one: if I layer my code in multiple stacks, can the operator “notify” from a lower stack to a higher stack to re-run pulumi?There's currently not a direct way to do this - though it's something we've talked a lot about! It's very natural to model in the Operator, but we haven't come up with quite the right way to model it in the Kubernetes resource model yet. It's also something we're looking to address more deeply as part of https://github.com/pulumi/pulumi/issues/2309 and https://github.com/pulumi/pulumi/issues/2209. Would you mind opening an issue in the Operator repo with your use case where we can discuss further? https://github.com/pulumi/pulumi-kubernetes-operator
fast-dinner-32080
08/12/2020, 6:32 PMwhite-balloon-205
Does or will the operator allow storing/tracking Pulumi stack state in Kubernetes similar to how helm does it or will we still have to use an external state store?Not yet - and it's in many ways an orthogonal feature that we want to support independently of the Operator as well - but it's something we're definitely interested in supporting. Interestingly though - I have personally found when using the Operator that the Pulumi Console becomes even more valuable - as it becomes the primary interface to view what updates are being performed, what the details (and detailed logs!) of those updates are, etc. So although you can definitely still manage state in other backends or in the Kube cluster itself - there is even more incremental benefit to being able to store state inside the Pulumi service to provide richer insight into everything the Operator is automating on your behalf.