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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sshkube
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: Access kubernetes clusters over ssh
5
5
  Author: Daniel J. B. Clarke
6
6
  Author-email: u8sand@gmail.com
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sshkube"
3
- version = "0.2.1"
3
+ version = "0.2.3"
4
4
  description = "Access kubernetes clusters over ssh"
5
5
  authors = [
6
6
  {name = "Daniel J. B. Clarke",email = "u8sand@gmail.com"}
@@ -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
- identity_file and f" IdentitiesOnly yes",
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}",
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
- print(
222
- f"export KUBECONFIG={workdir/'proxy.kube.config'}",
223
- sep='\n',
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