sshkube 0.2.1__tar.gz → 0.2.3__tar.gz
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.
- {sshkube-0.2.1 → sshkube-0.2.3}/PKG-INFO +1 -1
- {sshkube-0.2.1 → sshkube-0.2.3}/pyproject.toml +1 -1
- {sshkube-0.2.1 → sshkube-0.2.3}/sshkube/__main__.py +13 -7
- {sshkube-0.2.1 → sshkube-0.2.3}/LICENSE +0 -0
- {sshkube-0.2.1 → sshkube-0.2.3}/README.md +0 -0
- {sshkube-0.2.1 → sshkube-0.2.3}/sshkube/__init__.py +0 -0
- {sshkube-0.2.1 → sshkube-0.2.3}/sshkube/socat.py +0 -0
|
@@ -124,10 +124,10 @@ def _install(*, server, user, use_env, identity_file, verify, verbose):
|
|
|
124
124
|
(workdir/'config').write_text('\n'.join(filter(None, [
|
|
125
125
|
f"Host {server}",
|
|
126
126
|
user and f" User {user}",
|
|
127
|
+
f" IdentitiesOnly yes",
|
|
127
128
|
identity_file and f" IdentityFile {identity_file}",
|
|
128
|
-
|
|
129
|
-
use_env and f" ProxyCommand
|
|
130
|
-
(not use_env) and f" ProxyCommand {sys.executable} -m {__package__} openssl -s {server} --verify={verify}",
|
|
129
|
+
use_env and f" ProxyCommand env \"PYTHONPATH={':'.join(sys.path)}\" \"{sys.executable}\" -m {__package__} openssl -s {server} --verify={verify}",
|
|
130
|
+
(not use_env) and f" ProxyCommand \"{sys.executable}\" -m {__package__} openssl -s {server} --verify={verify}",
|
|
131
131
|
]))+'\n')
|
|
132
132
|
|
|
133
133
|
# verify connection
|
|
@@ -218,10 +218,16 @@ def _init(*, server):
|
|
|
218
218
|
pid = PidFile.read()
|
|
219
219
|
assert pid is not None
|
|
220
220
|
#
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
if sys.platform == 'win32':
|
|
222
|
+
print(
|
|
223
|
+
f"set KUBECONFIG={workdir/'proxy.kube.config'}",
|
|
224
|
+
sep='\n',
|
|
225
|
+
)
|
|
226
|
+
else:
|
|
227
|
+
print(
|
|
228
|
+
f"export KUBECONFIG={workdir/'proxy.kube.config'}",
|
|
229
|
+
sep='\n',
|
|
230
|
+
)
|
|
225
231
|
|
|
226
232
|
@cli.command(context_settings=dict(
|
|
227
233
|
ignore_unknown_options=True,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|