File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 99
99
cpu : 2
100
100
memory : 8G
101
101
nvidia.com/gpu : 0
102
+ imagePullSecrets :
103
+ - name : unit-test-pull-secret
102
104
rayVersion : 2.1.0
103
105
workerGroupSpecs :
104
106
- groupName : small-group-unit-test-cluster
@@ -148,6 +150,8 @@ spec:
148
150
cpu : 3
149
151
memory : 5G
150
152
nvidia.com/gpu : 7
153
+ imagePullSecrets :
154
+ - name : unit-test-pull-secret
151
155
initContainers :
152
156
- command :
153
157
- sh
Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ def test_config_creation():
213
213
gpu = 7 ,
214
214
instascale = True ,
215
215
machine_types = ["cpu.small" , "gpu.large" ],
216
+ image_pull_secrets = {"unit-test-pull-secret" },
216
217
)
217
218
218
219
assert config .name == "unit-test-cluster" and config .namespace == "ns"
@@ -227,6 +228,7 @@ def test_config_creation():
227
228
assert config .template == f"{ parent } /src/codeflare_sdk/templates/base-template.yaml"
228
229
assert config .instascale
229
230
assert config .machine_types == ["cpu.small" , "gpu.large" ]
231
+ assert config .image_pull_secrets == {"unit-test-pull-secret" }
230
232
return config
231
233
232
234
You can’t perform that action at this time.
0 commit comments