Skip to content

Changes in docs for release: v0.12.1 #406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/cluster/cluster.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.cluster</code></h1>
&#34;&#34;&#34;
self.config = config
self.app_wrapper_yaml = self.create_app_wrapper()
self.app_wrapper_name = self.app_wrapper_yaml.split(&#34;.&#34;)[0]
self._job_submission_client = None
self.app_wrapper_name = self.app_wrapper_yaml.replace(&#34;.yaml&#34;, &#34;&#34;).split(&#34;/&#34;)[
-1
]

@property
def _client_headers(self):
Expand Down Expand Up @@ -1051,8 +1053,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
&#34;&#34;&#34;
self.config = config
self.app_wrapper_yaml = self.create_app_wrapper()
self.app_wrapper_name = self.app_wrapper_yaml.split(&#34;.&#34;)[0]
self._job_submission_client = None
self.app_wrapper_name = self.app_wrapper_yaml.replace(&#34;.yaml&#34;, &#34;&#34;).split(&#34;/&#34;)[
-1
]

@property
def _client_headers(self):
Expand Down
19 changes: 17 additions & 2 deletions docs/utils/generate_yaml.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ <h1 class="title">Module <code>codeflare_sdk.utils.generate_yaml</code></h1>

import yaml
import sys
import os
import argparse
import uuid
from kubernetes import client, config
Expand Down Expand Up @@ -537,8 +538,14 @@ <h1 class="title">Module <code>codeflare_sdk.utils.generate_yaml</code></h1>


def write_user_appwrapper(user_yaml, output_file_name):
# Create the directory if it doesn&#39;t exist
directory_path = os.path.dirname(output_file_name)
if not os.path.exists(directory_path):
os.makedirs(directory_path)

with open(output_file_name, &#34;w&#34;) as outfile:
yaml.dump(user_yaml, outfile, default_flow_style=False)

print(f&#34;Written to: {output_file_name}&#34;)


Expand Down Expand Up @@ -706,7 +713,8 @@ <h1 class="title">Module <code>codeflare_sdk.utils.generate_yaml</code></h1>
if openshift_oauth:
enable_openshift_oauth(user_yaml, cluster_name, namespace)

outfile = appwrapper_name + &#34;.yaml&#34;
directory_path = os.path.expanduser(&#34;~/.codeflare/appwrapper/&#34;)
outfile = os.path.join(directory_path, appwrapper_name + &#34;.yaml&#34;)
if not mcad:
write_components(user_yaml, outfile)
else:
Expand Down Expand Up @@ -1019,7 +1027,8 @@ <h2 class="section-title" id="header-functions">Functions</h2>
if openshift_oauth:
enable_openshift_oauth(user_yaml, cluster_name, namespace)

outfile = appwrapper_name + &#34;.yaml&#34;
directory_path = os.path.expanduser(&#34;~/.codeflare/appwrapper/&#34;)
outfile = os.path.join(directory_path, appwrapper_name + &#34;.yaml&#34;)
if not mcad:
write_components(user_yaml, outfile)
else:
Expand Down Expand Up @@ -1541,8 +1550,14 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<span>Expand source code</span>
</summary>
<pre><code class="python">def write_user_appwrapper(user_yaml, output_file_name):
# Create the directory if it doesn&#39;t exist
directory_path = os.path.dirname(output_file_name)
if not os.path.exists(directory_path):
os.makedirs(directory_path)

with open(output_file_name, &#34;w&#34;) as outfile:
yaml.dump(user_yaml, outfile, default_flow_style=False)

print(f&#34;Written to: {output_file_name}&#34;)</code></pre>
</details>
</dd>
Expand Down