able-dawn-28084
12/12/2024, 3:14 PMThe Stack "git" is invalid: spec.workspaceTemplate.spec.podTemplate.spec.containers: Required value
. Specifying a dummy container works, and is added to the spec, although this should not be possible according to the docs.
2. It seems that when the spec is merged, all entires that are merged put the elements of the patch spec first. This is a problem, because the initContainer for adding a plugin must run after the two default initContainers "bootstrap" and "fetch".
This is the probably very hacky spec I am trying:
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
hallowed-photographer-31251
12/12/2024, 5:14 PMhallowed-photographer-31251
12/12/2024, 5:24 PMable-dawn-28084
12/12/2024, 8:23 PMable-dawn-28084
12/13/2024, 11:29 AMable-dawn-28084
12/13/2024, 11:30 AM