@@ -78,15 +78,22 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.config</code></h1>
78
78
num_gpus: int = 0
79
79
template: str = f"{dir}/templates/base-template.yaml"
80
80
instascale: bool = False
81
- mcad: bool = True
81
+ mcad: bool = False
82
82
envs: dict = field(default_factory=dict)
83
83
image: str = ""
84
84
local_interactive: bool = False
85
85
image_pull_secrets: list = field(default_factory=list)
86
86
dispatch_priority: str = None
87
- openshift_oauth: bool = False # NOTE: to use the user must have permission to create a RoleBinding for system:auth-delegator
88
- ingress_options: dict = field(default_factory=dict)
89
- ingress_domain: str = None</ code > </ pre >
87
+ write_to_file: bool = False
88
+ verify_tls: bool = True
89
+
90
+ def __post_init__(self):
91
+ if not self.verify_tls:
92
+ print(
93
+ "Warning: TLS verification has been disabled - Endpoint checks will be bypassed"
94
+ )
95
+
96
+ local_queue: str = None</ code > </ pre >
90
97
</ details >
91
98
</ section >
92
99
< section >
@@ -100,7 +107,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
100
107
< dl >
101
108
< dt id ="codeflare_sdk.cluster.config.ClusterConfiguration "> < code class ="flex name class ">
102
109
< span > class < span class ="ident "> ClusterConfiguration</ span > </ span >
103
- < span > (</ span > < span > name: str, namespace: str = None, head_info: list = <factory>, head_cpus: int = 2, head_memory: int = 8, head_gpus: int = 0, machine_types: list = <factory>, min_cpus: int = 1, max_cpus: int = 1, num_workers: int = 1, min_memory: int = 2, max_memory: int = 2, num_gpus: int = 0, template: str = '/home/runner/work/codeflare-sdk/codeflare-sdk/src/codeflare_sdk/templates/base-template.yaml', instascale: bool = False, mcad: bool = True , envs: dict = <factory>, image: str = '', local_interactive: bool = False, image_pull_secrets: list = <factory>, dispatch_priority: str = None, openshift_oauth : bool = False, ingress_options: dict = <factory>, ingress_domain : str = None)</ span >
110
+ < span > (</ span > < span > name: str, namespace: str = None, head_info: list = <factory>, head_cpus: int = 2, head_memory: int = 8, head_gpus: int = 0, machine_types: list = <factory>, min_cpus: int = 1, max_cpus: int = 1, num_workers: int = 1, min_memory: int = 2, max_memory: int = 2, num_gpus: int = 0, template: str = '/home/runner/work/codeflare-sdk/codeflare-sdk/src/codeflare_sdk/templates/base-template.yaml', instascale: bool = False, mcad: bool = False , envs: dict = <factory>, image: str = '', local_interactive: bool = False, image_pull_secrets: list = <factory>, dispatch_priority: str = None, write_to_file : bool = False, verify_tls: bool = True, local_queue : str = None)</ span >
104
111
</ code > </ dt >
105
112
< dd >
106
113
< div class ="desc "> < p > This dataclass is used to specify resource requirements and other details, and
@@ -130,15 +137,22 @@ <h2 class="section-title" id="header-classes">Classes</h2>
130
137
num_gpus: int = 0
131
138
template: str = f"{dir}/templates/base-template.yaml"
132
139
instascale: bool = False
133
- mcad: bool = True
140
+ mcad: bool = False
134
141
envs: dict = field(default_factory=dict)
135
142
image: str = ""
136
143
local_interactive: bool = False
137
144
image_pull_secrets: list = field(default_factory=list)
138
145
dispatch_priority: str = None
139
- openshift_oauth: bool = False # NOTE: to use the user must have permission to create a RoleBinding for system:auth-delegator
140
- ingress_options: dict = field(default_factory=dict)
141
- ingress_domain: str = None</ code > </ pre >
146
+ write_to_file: bool = False
147
+ verify_tls: bool = True
148
+
149
+ def __post_init__(self):
150
+ if not self.verify_tls:
151
+ print(
152
+ "Warning: TLS verification has been disabled - Endpoint checks will be bypassed"
153
+ )
154
+
155
+ local_queue: str = None</ code > </ pre >
142
156
</ details >
143
157
< h3 > Class variables</ h3 >
144
158
< dl >
@@ -174,19 +188,15 @@ <h3>Class variables</h3>
174
188
< dd >
175
189
< div class ="desc "> </ div >
176
190
</ dd >
177
- < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.ingress_domain "> < code class ="name "> var < span class ="ident "> ingress_domain</ span > : str</ code > </ dt >
178
- < dd >
179
- < div class ="desc "> </ div >
180
- </ dd >
181
- < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.ingress_options "> < code class ="name "> var < span class ="ident "> ingress_options</ span > : dict</ code > </ dt >
191
+ < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.instascale "> < code class ="name "> var < span class ="ident "> instascale</ span > : bool</ code > </ dt >
182
192
< dd >
183
193
< div class ="desc "> </ div >
184
194
</ dd >
185
- < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.instascale "> < code class ="name "> var < span class ="ident "> instascale </ span > : bool</ code > </ dt >
195
+ < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.local_interactive "> < code class ="name "> var < span class ="ident "> local_interactive </ span > : bool</ code > </ dt >
186
196
< dd >
187
197
< div class ="desc "> </ div >
188
198
</ dd >
189
- < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.local_interactive "> < code class ="name "> var < span class ="ident "> local_interactive </ span > : bool </ code > </ dt >
199
+ < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.local_queue "> < code class ="name "> var < span class ="ident "> local_queue </ span > : str </ code > </ dt >
190
200
< dd >
191
201
< div class ="desc "> </ div >
192
202
</ dd >
@@ -230,11 +240,15 @@ <h3>Class variables</h3>
230
240
< dd >
231
241
< div class ="desc "> </ div >
232
242
</ dd >
233
- < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.openshift_oauth "> < code class ="name "> var < span class ="ident "> openshift_oauth</ span > : bool</ code > </ dt >
243
+ < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.template "> < code class ="name "> var < span class ="ident "> template</ span > : str</ code > </ dt >
244
+ < dd >
245
+ < div class ="desc "> </ div >
246
+ </ dd >
247
+ < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.verify_tls "> < code class ="name "> var < span class ="ident "> verify_tls</ span > : bool</ code > </ dt >
234
248
< dd >
235
249
< div class ="desc "> </ div >
236
250
</ dd >
237
- < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.template "> < code class ="name "> var < span class ="ident "> template </ span > : str </ code > </ dt >
251
+ < dt id ="codeflare_sdk.cluster.config.ClusterConfiguration.write_to_file "> < code class ="name "> var < span class ="ident "> write_to_file </ span > : bool </ code > </ dt >
238
252
< dd >
239
253
< div class ="desc "> </ div >
240
254
</ dd >
@@ -267,10 +281,9 @@ <h4><code><a title="codeflare_sdk.cluster.config.ClusterConfiguration" href="#co
267
281
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.head_memory " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.head_memory "> head_memory</ a > </ code > </ li >
268
282
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.image " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.image "> image</ a > </ code > </ li >
269
283
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.image_pull_secrets " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.image_pull_secrets "> image_pull_secrets</ a > </ code > </ li >
270
- < li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.ingress_domain " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.ingress_domain "> ingress_domain</ a > </ code > </ li >
271
- < li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.ingress_options " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.ingress_options "> ingress_options</ a > </ code > </ li >
272
284
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.instascale " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.instascale "> instascale</ a > </ code > </ li >
273
285
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.local_interactive " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.local_interactive "> local_interactive</ a > </ code > </ li >
286
+ < li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.local_queue " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.local_queue "> local_queue</ a > </ code > </ li >
274
287
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.machine_types " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.machine_types "> machine_types</ a > </ code > </ li >
275
288
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.max_cpus " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.max_cpus "> max_cpus</ a > </ code > </ li >
276
289
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.max_memory " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.max_memory "> max_memory</ a > </ code > </ li >
@@ -281,8 +294,9 @@ <h4><code><a title="codeflare_sdk.cluster.config.ClusterConfiguration" href="#co
281
294
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.namespace " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.namespace "> namespace</ a > </ code > </ li >
282
295
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.num_gpus " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.num_gpus "> num_gpus</ a > </ code > </ li >
283
296
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.num_workers " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.num_workers "> num_workers</ a > </ code > </ li >
284
- < li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.openshift_oauth " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.openshift_oauth "> openshift_oauth</ a > </ code > </ li >
285
297
< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.template " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.template "> template</ a > </ code > </ li >
298
+ < li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.verify_tls " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.verify_tls "> verify_tls</ a > </ code > </ li >
299
+ < li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.write_to_file " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.write_to_file "> write_to_file</ a > </ code > </ li >
286
300
</ ul >
287
301
</ li >
288
302
</ ul >
0 commit comments