k8s-ruby 0.17.0 → 0.17.1
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.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/VERSION +1 -1
- data/k8s-ruby.gemspec +1 -2
- data/lib/k8s/resource_client.rb +4 -2
- data/lib/k8s/ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fa98756521985595b9431153e2835ac7b52d85997610f0d6e8e5236e51f1de5
|
4
|
+
data.tar.gz: 3f024921180350a153995ef782f924e390e8cd6aacfe7be753a703d96426d34b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2d9a64c1a8410796b0c14d7074746f52ca59ee5cf42be952b87258c42666031d226b3e1e52901a53e29b07f730ba2ba054d7d79a319f6ba8b2c04d5f4ef5435
|
7
|
+
data.tar.gz: 71fdbba2af07f589984e01f6985d3954e17a7433e8aa032b63a87019ff22e7883745618343d9fdf2ad21ed29deb18d3951c3e6dc0de40373a2a90b97cc61abf2
|
data/README.md
CHANGED
@@ -226,6 +226,15 @@ client.api('v1').resource('pods', namespace: 'default').watch(labelSelector: {'r
|
|
226
226
|
end
|
227
227
|
```
|
228
228
|
|
229
|
+
|
230
|
+
### Exec into running containers
|
231
|
+
> **WARNING:** This feature is currently supported only on Linux based platforms. Windows platforms are NOT supported.
|
232
|
+
|
233
|
+
#### This opens a new shell in the `test-pod` container
|
234
|
+
```ruby
|
235
|
+
client.api('v1').resource('pods', namespace: 'default').exec(name: 'test-pod', container: 'shell', command: '/bin/sh')
|
236
|
+
```
|
237
|
+
|
229
238
|
## Contributing
|
230
239
|
|
231
240
|
Bug reports and pull requests are welcome on GitHub at [k8s-ruby/k8s-ruby](https://github.com/k8s-ruby/k8s-ruby).
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.17.
|
1
|
+
0.17.1
|
data/k8s-ruby.gemspec
CHANGED
@@ -35,8 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_runtime_dependency "base64"
|
36
36
|
spec.add_runtime_dependency "eventmachine", "~> 1.2"
|
37
37
|
spec.add_runtime_dependency "faye-websocket", "~> 0.11"
|
38
|
-
spec.add_runtime_dependency "ruby-termios", "~> 1.1"
|
39
|
-
|
38
|
+
spec.add_runtime_dependency "ruby-termios", "~> 1.1" unless Gem::Platform.local.os =~ /mingw|mswin|windows/
|
40
39
|
spec.add_development_dependency "bundler", ">= 1.17", "< 3.0"
|
41
40
|
spec.add_development_dependency "rake", ">= 12.3.3"
|
42
41
|
spec.add_development_dependency "rspec", "~> 3.7"
|
data/lib/k8s/resource_client.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "resource_client/exec"
|
3
|
+
require_relative "resource_client/exec" unless Gem::Platform.local.os =~ /mingw|mswin|windows/
|
4
4
|
|
5
5
|
module K8s
|
6
6
|
# Per-APIResource type client.
|
@@ -39,8 +39,10 @@ module K8s
|
|
39
39
|
include Utils
|
40
40
|
extend Utils
|
41
41
|
|
42
|
+
# Don't support Exec for windows since
|
43
|
+
# it depends on ruby-termios which is not supported for Windows platforms
|
42
44
|
# @!parse include K8s::ResourceClient::Exec
|
43
|
-
include Exec
|
45
|
+
include Exec if defined?(Exec)
|
44
46
|
|
45
47
|
# Pipeline list requests for multiple resource types.
|
46
48
|
#
|
data/lib/k8s/ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: k8s-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rdx.net
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: excon
|