fluent-plugin-append-kubernetes-annotations-to-tag 0.1.0.pre.4 → 0.1.0.pre.5

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: 9ee16cb16d06bc93c08653552077219cfe3b3018
4
- data.tar.gz: 406c6aff9af91b5aef551a3abac05b59f829073b
3
+ metadata.gz: 26c8a69779aeb49e6cc2e01269885c5eb8603e7d
4
+ data.tar.gz: b9da3aa2c7500202e96dc02baf6b2d4fd4297ef2
5
5
  SHA512:
6
- metadata.gz: a3af3c8683eb30bbde584452d6c835f2184c0edf9d55d3c6c38ae29bda9e24d7df81fa9b3e5be44e68d0cac544c3149a818ea91fd29283f620855785daadb34a
7
- data.tar.gz: fb35f4737419d0717121b1e71abff6361f58f2df816d98b099547feff0a55bf9ec883a6593951daeccc2b9c7abe43acd6f72bcd77870ac7a80789ed3fc6c3043
6
+ metadata.gz: 432a6e941d6df735a1718009294f6377073e988a9ab9a5535bc414226010a4bba6eba97fd21fe0a01a75c91e75188dbc927849857d342c2a98c9aad33ef28629
7
+ data.tar.gz: 3c40d772bb44dc8afa2598251f35da869cec740b110f3860707d3968a9e6d3b234de87396427b32b2ba8f158a3f856c866678b5e441ca10ae60fc8568dd258ca
@@ -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-4"
7
+ gem.version = "0.1.0-5"
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,6 +13,8 @@ class KubernetesAnnotationsTagAppender
13
13
  JSON.parse(json)&.include? container_name
14
14
  end
15
15
 
16
- return ([tag] + matches).join(".")
16
+ # Don't re-add tags if they're already present:
17
+ uniqs = (tag.split(".") + matches).uniq
18
+ return uniqs.join(".")
17
19
  end
18
20
  end
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.4
4
+ version: 0.1.0.pre.5
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-03 00:00:00.000000000 Z
11
+ date: 2017-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd