@@ -78,15 +78,22 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.config</code></h1>
7878 num_gpus: int = 0
7979 template: str = f"{dir}/templates/base-template.yaml"
8080 instascale: bool = False
81- mcad: bool = True
81+ mcad: bool = False
8282 envs: dict = field(default_factory=dict)
8383 image: str = ""
8484 local_interactive: bool = False
8585 image_pull_secrets: list = field(default_factory=list)
8686 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 >
9097</ details >
9198</ section >
9299< section >
@@ -100,7 +107,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
100107< dl >
101108< dt id ="codeflare_sdk.cluster.config.ClusterConfiguration "> < code class ="flex name class ">
102109< 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 >
104111</ code > </ dt >
105112< dd >
106113< 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>
130137 num_gpus: int = 0
131138 template: str = f"{dir}/templates/base-template.yaml"
132139 instascale: bool = False
133- mcad: bool = True
140+ mcad: bool = False
134141 envs: dict = field(default_factory=dict)
135142 image: str = ""
136143 local_interactive: bool = False
137144 image_pull_secrets: list = field(default_factory=list)
138145 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 >
142156</ details >
143157< h3 > Class variables</ h3 >
144158< dl >
@@ -174,19 +188,15 @@ <h3>Class variables</h3>
174188< dd >
175189< div class ="desc "> </ div >
176190</ 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 >
182192< dd >
183193< div class ="desc "> </ div >
184194</ 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 >
186196< dd >
187197< div class ="desc "> </ div >
188198</ 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 >
190200< dd >
191201< div class ="desc "> </ div >
192202</ dd >
@@ -230,11 +240,15 @@ <h3>Class variables</h3>
230240< dd >
231241< div class ="desc "> </ div >
232242</ 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 >
234248< dd >
235249< div class ="desc "> </ div >
236250</ 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 >
238252< dd >
239253< div class ="desc "> </ div >
240254</ dd >
@@ -267,10 +281,9 @@ <h4><code><a title="codeflare_sdk.cluster.config.ClusterConfiguration" href="#co
267281< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.head_memory " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.head_memory "> head_memory</ a > </ code > </ li >
268282< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.image " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.image "> image</ a > </ code > </ li >
269283< 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 >
272284< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.instascale " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.instascale "> instascale</ a > </ code > </ li >
273285< 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 >
274287< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.machine_types " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.machine_types "> machine_types</ a > </ code > </ li >
275288< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.max_cpus " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.max_cpus "> max_cpus</ a > </ code > </ li >
276289< 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
281294< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.namespace " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.namespace "> namespace</ a > </ code > </ li >
282295< li > < code > < a title ="codeflare_sdk.cluster.config.ClusterConfiguration.num_gpus " href ="#codeflare_sdk.cluster.config.ClusterConfiguration.num_gpus "> num_gpus</ a > </ code > </ li >
283296< 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 >
285297< 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 >
286300</ ul >
287301</ li >
288302</ ul >
0 commit comments