konduktor-nightly 0.1.0.dev20250515104942__py3-none-any.whl → 0.1.0.dev20250515213403__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- konduktor/__init__.py +2 -2
- konduktor/templates/pod.yaml.j2 +18 -14
- {konduktor_nightly-0.1.0.dev20250515104942.dist-info → konduktor_nightly-0.1.0.dev20250515213403.dist-info}/METADATA +1 -1
- {konduktor_nightly-0.1.0.dev20250515104942.dist-info → konduktor_nightly-0.1.0.dev20250515213403.dist-info}/RECORD +7 -7
- {konduktor_nightly-0.1.0.dev20250515104942.dist-info → konduktor_nightly-0.1.0.dev20250515213403.dist-info}/LICENSE +0 -0
- {konduktor_nightly-0.1.0.dev20250515104942.dist-info → konduktor_nightly-0.1.0.dev20250515213403.dist-info}/WHEEL +0 -0
- {konduktor_nightly-0.1.0.dev20250515104942.dist-info → konduktor_nightly-0.1.0.dev20250515213403.dist-info}/entry_points.txt +0 -0
konduktor/__init__.py
CHANGED
@@ -14,7 +14,7 @@ __all__ = [
|
|
14
14
|
]
|
15
15
|
|
16
16
|
# Replaced with the current commit when building the wheels.
|
17
|
-
_KONDUKTOR_COMMIT_SHA = '
|
17
|
+
_KONDUKTOR_COMMIT_SHA = '4423217b6e17ef650ab478d3d9f60e28708ccc29'
|
18
18
|
os.makedirs(os.path.expanduser('~/.konduktor'), exist_ok=True)
|
19
19
|
|
20
20
|
|
@@ -48,5 +48,5 @@ def _get_git_commit():
|
|
48
48
|
|
49
49
|
|
50
50
|
__commit__ = _get_git_commit()
|
51
|
-
__version__ = '1.0.0.dev0.1.0.
|
51
|
+
__version__ = '1.0.0.dev0.1.0.dev20250515213403'
|
52
52
|
__root_dir__ = os.path.dirname(os.path.abspath(__file__))
|
konduktor/templates/pod.yaml.j2
CHANGED
@@ -243,40 +243,44 @@ kubernetes:
|
|
243
243
|
# set default port to 2222
|
244
244
|
$(prefix_cmd) sed -i 's/#Port 22/Port 2222/' /etc/ssh/sshd_config
|
245
245
|
|
246
|
-
echo "Exposing ENV variables"
|
247
|
-
env -0 | awk -v RS='\0' '
|
248
|
-
{
|
249
|
-
gsub(/\\/,"\\\\"); # escape existing backslashes first
|
250
|
-
gsub(/"/,"\\\""); # escape any double quotes
|
251
|
-
gsub(/\n/,"\\n"); # turn real newlines into the two characters \n
|
252
|
-
sub(/=/,"=\""); # open the value-quoting
|
253
|
-
print $0 "\""; # close the quote and add a newline record separator
|
254
|
-
}
|
255
|
-
' > /etc/environment
|
256
|
-
echo "set -a; source /etc/environment; set +a;" >> /root/.bashrc
|
257
|
-
|
258
246
|
$(prefix_cmd) mkdir /run/sshd
|
259
247
|
$(prefix_cmd) chmod 0755 /run/sshd
|
260
248
|
|
261
249
|
$(prefix_cmd) service ssh start
|
262
250
|
$(prefix_cmd) echo "sshd service started"
|
263
251
|
}
|
252
|
+
export TS_HOSTNAME=$(echo "$POD_NAME" | sed 's/-[^-]*$//')
|
253
|
+
echo "Exposing ENV variables"
|
254
|
+
$(prefix_cmd) env -0 | awk -v RS='\0' '
|
255
|
+
{
|
256
|
+
gsub(/\\/,"\\\\"); # escape existing backslashes first
|
257
|
+
gsub(/"/,"\\\""); # escape any double quotes
|
258
|
+
gsub(/\n/,"\\n"); # turn real newlines into the two characters \n
|
259
|
+
sub(/=/,"=\""); # open the value-quoting
|
260
|
+
print $0 "\""; # close the quote and add a newline record separator
|
261
|
+
}
|
262
|
+
' > /etc/environment
|
263
|
+
|
264
|
+
$(prefix_cmd) echo "TS_HOSTNAME=${TS_HOSTNAME}" >> /etc/environment
|
265
|
+
$(prefix_cmd) echo "set -a; source /etc/environment; set +a;" >> $HOME/.bashrc
|
264
266
|
|
265
267
|
InstallSSH
|
266
268
|
{% endif %}
|
267
269
|
{% if tailscale_secret %}
|
268
270
|
function InstallTailscale {
|
271
|
+
set -x
|
269
272
|
if ! command -v tailscale >/dev/null 2>&1; then
|
270
|
-
|
273
|
+
$(prefix_cmd) mkdir -p /var/run/tailscale /var/cache/tailscale /var/lib/tailscale
|
271
274
|
$(prefix_cmd) curl -fsSL https://tailscale.com/install.sh | DEBIAN_FRONTEND=noninteractive $(prefix_cmd) sh > ~/.konduktor/tmp/tailscale-install.log 2>&1
|
272
275
|
$(prefix_cmd) tailscaled --tun=userspace-networking >/dev/null 2>&1 &
|
273
276
|
while ! tailscale status >/dev/null 2>&1; do
|
274
277
|
$(prefix_cmd) timeout 5 tailscale up --auth-key=${TS_AUTHKEY} --ssh --hostname=${TS_HOSTNAME}
|
275
278
|
sleep 1
|
276
279
|
done
|
280
|
+
$(prefix_cmd) echo "Tailscale is up"
|
277
281
|
fi
|
278
282
|
}
|
279
|
-
InstallTailscale &
|
283
|
+
InstallTailscale | tee ~/.konduktor/tmp/tailscale-out.log &
|
280
284
|
{% endif %}
|
281
285
|
end_epoch=$(date +%s);
|
282
286
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
konduktor/__init__.py,sha256=
|
1
|
+
konduktor/__init__.py,sha256=v7yVCQmKapxaIVAfqCM-xN8DCNtMjE1PnFvW8uS2klw,1540
|
2
2
|
konduktor/adaptors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
konduktor/adaptors/aws.py,sha256=s47Ra-GaqCQibzVfmD0pmwEWHif1EGO5opMbwkLxTCU,8244
|
4
4
|
konduktor/adaptors/common.py,sha256=ZIqzjx77PIHUwpjfAQ1uX8B2aX78YMuGj4Bppd-MdyM,4183
|
@@ -71,7 +71,7 @@ konduktor/manifests/pod_cleanup_controller.yaml,sha256=hziL1Ka1kCAEL9R7Tjvpb80iw
|
|
71
71
|
konduktor/resource.py,sha256=w2PdIrmQaJWA-GLSmVBcg4lxwuxvPulz35_YSKa5o24,19254
|
72
72
|
konduktor/task.py,sha256=ofwd8WIhfD6C3ThLcv6X3GUzQHyZ6ddjUagE-umF4K0,35207
|
73
73
|
konduktor/templates/jobset.yaml.j2,sha256=onYiHtXAgk-XBtji994hPu_g0hxnLzvmfxwjbdKdeZc,960
|
74
|
-
konduktor/templates/pod.yaml.j2,sha256=
|
74
|
+
konduktor/templates/pod.yaml.j2,sha256=QE2oS8c9ZmjEQ4sq3x7fYHgwpriojE1Rj3F_FTb-azE,17646
|
75
75
|
konduktor/usage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
76
76
|
konduktor/usage/constants.py,sha256=gCL8afIHZhO0dcxbJGpESE9sCC1cBSbeRnQ8GwNOY4M,612
|
77
77
|
konduktor/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -91,8 +91,8 @@ konduktor/utils/schemas.py,sha256=2fHsTi3t9q3LXqOPrcpkmPsMbaoJBnuJstd6ULmDiUo,16
|
|
91
91
|
konduktor/utils/subprocess_utils.py,sha256=WoFkoFhGecPR8-rF8WJxbIe-YtV94LXz9UG64SDhCY4,9448
|
92
92
|
konduktor/utils/ux_utils.py,sha256=czCwiS1bDqgeKtzAJctczpLwFZzAse7WuozdvzEFYJ4,7437
|
93
93
|
konduktor/utils/validator.py,sha256=tgBghVyedyzGx84-U2Qfoh_cJBE3oUk9gclMW90ORks,691
|
94
|
-
konduktor_nightly-0.1.0.
|
95
|
-
konduktor_nightly-0.1.0.
|
96
|
-
konduktor_nightly-0.1.0.
|
97
|
-
konduktor_nightly-0.1.0.
|
98
|
-
konduktor_nightly-0.1.0.
|
94
|
+
konduktor_nightly-0.1.0.dev20250515213403.dist-info/LICENSE,sha256=MuuqTZbHvmqXR_aNKAXzggdV45ANd3wQ5YI7tnpZhm0,6586
|
95
|
+
konduktor_nightly-0.1.0.dev20250515213403.dist-info/METADATA,sha256=U3jl1ZGtxkq0RnIZQXUKsknx085Wz7XGxle51jH1tqc,4366
|
96
|
+
konduktor_nightly-0.1.0.dev20250515213403.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
97
|
+
konduktor_nightly-0.1.0.dev20250515213403.dist-info/entry_points.txt,sha256=k3nG5wDFIJhNqsZWrHk4d0irIB2Ns9s47cjRWYsTCT8,48
|
98
|
+
konduktor_nightly-0.1.0.dev20250515213403.dist-info/RECORD,,
|
File without changes
|
File without changes
|