fluent-plugin-kubernetes-objects 1.1.1 → 1.1.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4aae816406243c2739dc9b849522ca0fd8fed9e58e17df93de18e748b11b6758
|
|
4
|
+
data.tar.gz: da9469b542011a7b1f26572862d72ba94683f511458dcca47c083d95e9b2960f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c390d0544d347cfce5c8a06e374ccd27d55d61dba8785069505615ecccf6b22bc2c1063aa2aaba4f3c2ca4d98c160a837e6939fd62333503f9ff3591b5c72cd
|
|
7
|
+
data.tar.gz: 464880a76e0e38103e71587ad40e1dde8629183e458a16096508b07c8b7ec8a49f6b000ee617c2f6759983ba9d46fc2dab8383e77a88e2e57ae87c1e9a498162
|
|
@@ -11,12 +11,12 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
|
|
12
12
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
|
13
13
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
# if spec.respond_to?(:metadata)
|
|
15
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
|
16
|
+
# else
|
|
17
|
+
# raise 'RubyGems 2.0 or newer is required to protect against ' \
|
|
18
|
+
# 'public gem pushes.'
|
|
19
|
+
# end
|
|
20
20
|
|
|
21
21
|
spec.require_paths = ['lib']
|
|
22
22
|
spec.test_files = Dir.glob('test/**/**.rb')
|
|
@@ -5,7 +5,7 @@ require 'kubeclient'
|
|
|
5
5
|
|
|
6
6
|
module Fluent::Plugin
|
|
7
7
|
class KubernetesObjectsInput < Fluent::Plugin::Input
|
|
8
|
-
VERSION = '1.1.
|
|
8
|
+
VERSION = '1.1.2'.freeze
|
|
9
9
|
|
|
10
10
|
Fluent::Plugin.register_input('kubernetes_objects', self)
|
|
11
11
|
|
|
@@ -181,9 +181,7 @@ module Fluent::Plugin
|
|
|
181
181
|
|
|
182
182
|
version = @storage.get(resource_name)
|
|
183
183
|
o[:resource_version] = version if version
|
|
184
|
-
|
|
185
|
-
create_watcher_thread resource_name, watcher, watch_interval
|
|
186
|
-
end
|
|
184
|
+
create_watcher_thread resource_name, o, watch_interval
|
|
187
185
|
end
|
|
188
186
|
end
|
|
189
187
|
|
|
@@ -229,8 +227,8 @@ module Fluent::Plugin
|
|
|
229
227
|
|
|
230
228
|
def create_watcher_thread(object_name, watcher, interval)
|
|
231
229
|
thread_create(:"watch_#{object_name}") do
|
|
232
|
-
|
|
233
|
-
|
|
230
|
+
@client.public_send("watch_#{object_name}", watcher).tap { |watcher|
|
|
231
|
+
tag = generate_tag "#{object_name}.watch"
|
|
234
232
|
watcher.each do |entity|
|
|
235
233
|
log.trace { "Received new object from watching #{object_name}" }
|
|
236
234
|
entity = JSON.parse(entity)
|
|
@@ -238,7 +236,7 @@ module Fluent::Plugin
|
|
|
238
236
|
@storage.put object_name, entity['object']['metadata']['resourceVersion']
|
|
239
237
|
sleep(interval)
|
|
240
238
|
end
|
|
241
|
-
|
|
239
|
+
}
|
|
242
240
|
end
|
|
243
241
|
end
|
|
244
242
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-kubernetes-objects
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Splunk Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fluentd
|
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
152
|
- !ruby/object:Gem::Version
|
|
153
153
|
version: '0'
|
|
154
154
|
requirements: []
|
|
155
|
-
rubygems_version: 3.0.
|
|
155
|
+
rubygems_version: 3.0.2
|
|
156
156
|
signing_key:
|
|
157
157
|
specification_version: 4
|
|
158
158
|
summary: Fluentd Plugin for Kubernetes Objects.
|