-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add repo & env var inputs to kubevirt-talos template #12
Comments
To clarify, is this referring to the automated cloning of repositories upon instance creation? |
Yes, and the env vars we set in the environment pod.
…On Wed, 7 Dec 2022 at 5:22 PM, Caleb Woodbine ***@***.***> wrote:
To clarify, is this referring to the automated cloning of repositories
upon instance creation?
—
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAHUYYBFY5OQHY2F37ZMUDWMEL5BANCNFSM6AAAAAASWYEEGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
In pair webui at https://pair.sharing.io/instances/new we can input a list of repos: This gets populated to the environment StatefulSet in .sharing.io/cluster-api/manifests/environment.yaml
INIT_DEFAULT_REPOS is used by the environment pod via pair-init.sh to check out the repos.
Please add a coder_parameter to the kubevirt-talos template allowing INIT_DEFAULT_REPOS to be set during creation. |
In pair webui at https://pair.sharing.io/instances/new we can input a list of environment vars: This form is created by https://github.com/sharingio/pair/blob/aab8af9f0447e1b0725f9f348a8abb4f1467cb24/apps/client/src/client/views.clj#L164-L167:
Processed by packet.clj#text->env-map which is called by launch() when creating an instance spec as :env:
Currently this may get written to However it's fine to just add these directly to the environment Stateful itself similar to the * INIT_DEFAULT_REPOS* above. |
We should be able to process the new |
check out #14 |
We should loop back to ENV vars as well: #12 (comment) It'll be very similar. |
@hh, it is unclear to me why the two topics are grouped together. The way that Pair has performed the templating in the past (through bash variables) is simply not possible with the way that Terraform works. I am currently unsure how the dynamic assigning of environment various could be done |
Both options need us to set env vars for the pod.
|
Bringing in the vars as a terraform variable, but you can do the same with coder_input:
|
When creating a new instance in pair we can provide repositories and environment vars.
This should allow us to expose more features from our pair image to the coder workspace cluster/pod.
The text was updated successfully, but these errors were encountered: