Skip to content

Commit

Permalink
nasa-veda: Enable dynamic image building
Browse files Browse the repository at this point in the history
This enables dynamic image building for both staging
and prod.

Fixes 2i2c-org#4691
  • Loading branch information
yuvipanda committed Nov 28, 2024
1 parent 5bb9010 commit c9a11eb
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
7 changes: 7 additions & 0 deletions config/clusters/nasa-veda/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ basehub:
profile_options:
image:
display_name: Environment
dynamic_image_building:
enabled: true
unlisted_choice:
enabled: True
display_name: "Custom image"
Expand Down Expand Up @@ -252,6 +254,8 @@ basehub:
profile_options:
image:
display_name: Environment
dynamic_image_building:
enabled: true
unlisted_choice:
enabled: true
display_name: "Custom image"
Expand Down Expand Up @@ -285,3 +289,6 @@ basehub:
scheduling:
userScheduler:
enabled: true

binderhub-service:
enabled: true
17 changes: 14 additions & 3 deletions config/clusters/nasa-veda/enc-prod.secret.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ basehub:
GitHubOAuthenticator:
client_id: ENC[AES256_GCM,data:H0O+Ha2N/Ax3K6luitZ37k6EQdk=,iv:CP5BGeDMmE6uznVB6utuW78+UeP8Ge5CnDmocZIkSXU=,tag:Q4QG+b8Nq36bbANHIAfpuA==,type:str]
client_secret: ENC[AES256_GCM,data:a0Xm3m7cHRCrBdV5q22ohFMYjdolj9dDnQhg9cG5E9W47Toqxwj2Gg==,iv:/1CHsZez3j26A8ODvlYgbjXtaRsKbGraxTzgoF2ZURs=,tag:cN59IZ+9J48QxSJ0IiqsAQ==,type:str]
imagePullSecret:
create: ENC[AES256_GCM,data:VXMGYw==,iv:t29RaK0WDSGUo1KPPIY1S6usrhOzVURi9MS/TjtrZ2c=,tag:gv/lFMGpl8itOtk1FKzVLg==,type:bool]
registry: ENC[AES256_GCM,data:wD9XWkyngg==,iv:p+Wg1KsEn2BOQaVXsCJdnJjJLOhbcuG3I6NAHGNe908=,tag:M6X4ER4BLw0/J6FaKKlEUg==,type:str]
username: ENC[AES256_GCM,data:kj2Vy/zG6JqxzB/dHVZ5ykuH3HgQ7ImGvg==,iv:nFnIPz/JdHNCGPTvzJmQpRpb+5Y3sMMU1h9k0Znf/Oo=,tag:LtW+KyPMbwa5aqgw5s5F2Q==,type:str]
password: ENC[AES256_GCM,data:UFunKFYLFnGaXuTLtHd/FSeuUKATJugvVm437efr7tqBxnTsAi9BY6P9jUoyrI0F/gbETcW8XcZ43ilM5P4vrA==,iv:hS01n8afHI7p7KKduPQEq45U83IT9npF6Rw/f0B7PXQ=,tag:Wf8gSXFJeY/kpcPDAMv4qA==,type:str]
binderhub-service:
buildPodsRegistryCredentials:
password: ENC[AES256_GCM,data:ciFabSeOnYdm0qz82hQbDRhk4zMf3r0lyhWzrmw5pRUs635Kl3jfAW3Edg/C1wmYrk5b4MeGCHUPsZDxI2yZQQ==,iv:Y1XI64eDVQI2MVmlZPS/9hay7JBWZgGxriIXd6PudwY=,tag:i7W7PA0R4s15otnPKdKdyw==,type:str]
config:
DockerRegistry:
password: ENC[AES256_GCM,data:T3G3WXoOvwR6wgQ0L2iC0j/fjWInhVWoce7McZAqdVmkikpSmHd5vub3Jn97VYTo2NjdT+dxcs7VKYcMeIEGyQ==,iv:KsI5iA2b0txa5kGjg8lsSdvMHi5rUbUucApz38aA+R0=,tag:3G2sEmnQSnZg7mxJ8JzoZw==,type:str]
sops:
kms: []
gcp_kms:
Expand All @@ -14,8 +25,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2023-01-26T14:57:40Z"
mac: ENC[AES256_GCM,data:57DrEJDR9q4W9O7SJXo/R0XjriaoTmwTSkWtkdAKkXpxIjT37ynN6sSANlk+zi+q8WbdITbk5K6hsHgOnS3VJrKnjTi8mpo0FJ6vAxIRIIr80NSzA1vhWXKn5rvSFWPNL1eh0XJK8HLoqsKBtNLMTis9jgKmAg4lME8uHgh6yxQ=,iv:Gkr554YmGLgT9ScNyxNcHhPq62C3GYph7L+MILyKN2E=,tag:e5k1BNZRscw+IK4eRtfZrA==,type:str]
lastmodified: "2024-10-19T04:19:27Z"
mac: ENC[AES256_GCM,data:/o1UMKj1UkYJZfnnyMde7hvSxGQgConsBKKFBQCQUqW4TyOtv+ajEpuT1gDI8ooWcCetzcdDVvQp+1WwxH862u1T41JwWspqOWmm+QHVPersoasIxqrbX4fhzoWs65Y5vRN2ZeHW1d4AMZvKUhAai/cmLvfcS39ndS/GP5mZ5SU=,iv:6cP1euO6h/jZeFO4SwdUQChzlW9mAVTIVYzN8bHxbpI=,tag:hm+qDxr2ttNZwff6REYSvw==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
version: 3.8.1
20 changes: 20 additions & 0 deletions config/clusters/nasa-veda/prod.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,23 @@ basehub:
extraPodConfig:
nodeSelector:
2i2c/hub-name: prod

binderhub-service:
dockerApi:
nodeSelector:
2i2c/hub-name: prod
config:
KubernetesBuildExecutor:
node_selector:
node.kubernetes.io/instance-type: r5.xlarge
2i2c/hub-name: prod
BinderHub:
# something like <region>-docker.pkg.dev/<project-name>/<repository-name> for grc.io
# or quay.io/org/repo/cluster-hub/ for quay.io
image_prefix: quay.io/veda-binder/prod-
DockerRegistry:
url: &url https://quay.io
username: &username veda-binder+image_builder
buildPodsRegistryCredentials:
server: *url
username: *username
1 change: 0 additions & 1 deletion config/clusters/nasa-veda/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ basehub:
imagePullSecrets: [{ name: image-pull-secret }]

binderhub-service:
enabled: true
dockerApi:
nodeSelector:
2i2c/hub-name: staging
Expand Down

0 comments on commit c9a11eb

Please sign in to comment.