Commit 9690e08 1 parent 804a148 commit 9690e08 Copy full SHA for 9690e08
File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,7 @@ imageVersions:
33
33
image : # @ image_reference("conda-environment")
34
34
- name : secrets-manager
35
35
image : # @ image_reference("secrets-manager")
36
+ - name : rancher-k3s
37
+ image : " rancher/k3s:v1.23.3-k3s1"
38
+ - name : loftsh-vcluster
39
+ image : " loftsh/vcluster:0.7.1"
Original file line number Diff line number Diff line change 1
1
from .helpers import xget
2
2
3
- from .operator_config import OPERATOR_API_GROUP , CLUSTER_STORAGE_GROUP
3
+ from .operator_config import (
4
+ OPERATOR_API_GROUP ,
5
+ CLUSTER_STORAGE_GROUP ,
6
+ RANCHER_K3S_IMAGE ,
7
+ LOFTSH_VCLUSTER_IMAGE ,
8
+ )
4
9
5
10
6
11
def vcluster_workshop_spec_patches (application_properties ):
@@ -338,7 +343,7 @@ def vcluster_session_objects_list(application_properties):
338
343
},
339
344
"containers" : [
340
345
{
341
- "image" : "rancher/k3s:v1.23.3-k3s1" ,
346
+ "image" : RANCHER_K3S_IMAGE ,
342
347
"name" : "vcluster" ,
343
348
"command" : ["/bin/sh" ],
344
349
"args" : [
@@ -361,7 +366,7 @@ def vcluster_session_objects_list(application_properties):
361
366
},
362
367
{
363
368
"name" : "syncer" ,
364
- "image" : "loftsh/vcluster:0.7.1" ,
369
+ "image" : LOFTSH_VCLUSTER_IMAGE ,
365
370
"args" : [
366
371
"--name=my-vcluster" ,
367
372
"--target-namespace=$(session_namespace)" ,
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ def image_reference(name):
141
141
TRAINING_PORTAL_IMAGE = image_reference ("training-portal" )
142
142
DOCKER_IN_DOCKER_IMAGE = image_reference ("docker-in-docker" )
143
143
DOCKER_REGISTRY_IMAGE = image_reference ("docker-registry" )
144
+
144
145
BASE_ENVIRONMENT_IMAGE = image_reference ("base-environment" )
145
146
JDK8_ENVIRONMENT_IMAGE = image_reference ("jdk8-environment" )
146
147
JDK11_ENVIRONMENT_IMAGE = image_reference ("jdk11-environment" )
@@ -153,6 +154,8 @@ def image_reference(name):
153
154
"conda-environment:*" : CONDA_ENVIRONMENT_IMAGE ,
154
155
}
155
156
157
+ RANCHER_K3S_IMAGE = image_reference ("rancher-k3s" )
158
+ LOFTSH_VCLUSTER_IMAGE = image_reference ("loftsh-vcluster" )
156
159
157
160
def resolve_workshop_image (name ):
158
161
if name in workshop_images_table :
You can’t perform that action at this time.
0 commit comments