fluent-plugin-append-kubernetes-annotations-to-tag 0.1.0.pre.10 → 0.1.0.pre.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7e061cfb5050c9e05ce0d534656212e93167af1
4
- data.tar.gz: 08a4db41a84637749b6a97db33e88521342de25b
3
+ metadata.gz: 6d540c230a7919479c548b1512206fb991e82574
4
+ data.tar.gz: 94d56443535c398066e3bb4ebf55905da36a1b63
5
5
  SHA512:
6
- metadata.gz: 43ed32ee9022fcc54e55ac9103a39c5339f2b1439102f65ecf3786c2a9bc1bcc3a87b6d281ba7ad66602d8d2b4bded3c02daa4fed6e1fe639da112bf4730780f
7
- data.tar.gz: c23615390cde4767cc99010cbb53943ad64ed535c4aded9d22cb57be1c13b72c094a299b6f1c9c2cb66b4e2a48bf18a329e132d69a1912d416c0997f08aecfb5
6
+ metadata.gz: dbd834d915147d184ba603d55928ec69f2bda437a3326ad808370773fe680ecbccdbd04a1dfc03ea7b24a24ea2d947dbfa4e9fa1927b1ea85ce8c8d0e46c1d80
7
+ data.tar.gz: c53eef537e1b5a56f0aa728f87c5f80224b8b450f096c919e235187c1bde7437c478071bc7928157572460c8b9d701007d862175e4fe0760a33927e6284f410f
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "fluent-plugin-append-kubernetes-annotations-to-tag"
7
- gem.version = "0.1.0-10"
7
+ gem.version = "0.1.0-11"
8
8
  gem.authors = ["Redbubble Delivery Engineering Team"]
9
9
  gem.email = ["delivery-engineers@redbubble.com"]
10
10
  gem.description = %q{Plugin to append Kubernetes annotations to Fluentd tags}
@@ -13,12 +13,14 @@ module Fluent
13
13
  end
14
14
 
15
15
  def emit(tag, es, chain)
16
- chain.next
17
16
  es.each do |time, record|
18
17
  new_tag = process_tag(tag, record)
18
+ next if new_tag == tag
19
+
19
20
  router.emit(new_tag, time, record)
20
21
  end
21
22
 
23
+ chain.next
22
24
  rescue => exception
23
25
  log.error "Failed to re-format docker record #{tag}"
24
26
  log.error exception
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-append-kubernetes-annotations-to-tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.10
4
+ version: 0.1.0.pre.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Redbubble Delivery Engineering Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-04 00:00:00.000000000 Z
11
+ date: 2017-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd