-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a podTemplate inside the workspaceTemplate #774
Comments
I'll add some context for this from the slack conversation: I was trying to add a pulumi plugin (for scala support) in my Stack custom resource for the operator. I found this issue/comment which suggests adding an init container to achieve this. (I assume Stack.spec.workspaceTemplate.spec.podTemplate.spec) So far I've come across two issues with this approach, but I was just trying to get this to work relatively quickly so I may have missing something.
This is the quick & dirty spec I was trying to get to work: workspaceTemplate:
spec:
podTemplate:
spec:
initContainers:
- name: install-scala-cli-and-plugin
image: curlimages/curl:latest
command:
- "/bin/sh"
- "-c"
- |
cd /share/workspace
curl -sSLf https://scala-cli.virtuslab.org/get | sh
pulumi plugin install language scala 0.3.2 --server github://api.github.com/VirtusLab/besom
containers:
- name: "dummy"
image: busybox:latest This is the resulting updated spec, which puts the custom initContainer before the others:
|
We currently expect a fully-formed Pod spec, but we should use an apply configuration instead.
I have a branch where I started this work but I ran into a number of issues.
#713 (comment)
The text was updated successfully, but these errors were encountered: