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

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: 26c8a69779aeb49e6cc2e01269885c5eb8603e7d
4
- data.tar.gz: b9da3aa2c7500202e96dc02baf6b2d4fd4297ef2
3
+ metadata.gz: ddfda1cafbe9880627b625361ac04b52b7acaef9
4
+ data.tar.gz: dd8aae9b32d9f0541c0244341f06fcb1d0f76650
5
5
  SHA512:
6
- metadata.gz: 432a6e941d6df735a1718009294f6377073e988a9ab9a5535bc414226010a4bba6eba97fd21fe0a01a75c91e75188dbc927849857d342c2a98c9aad33ef28629
7
- data.tar.gz: 3c40d772bb44dc8afa2598251f35da869cec740b110f3860707d3968a9e6d3b234de87396427b32b2ba8f158a3f856c866678b5e441ca10ae60fc8568dd258ca
6
+ metadata.gz: a4c65dec0516466405324b118febbf2c1638ed3056e15f80a5c51c4d2f5a932c3409197591f38ef62ece1d828af5ae0c5d5d5cf879276400719f7acf85de5263
7
+ data.tar.gz: 96afa3ac8804567dfb18e003dbbb0f2b1282186d47e9cfc77294f40e79d90910c1ae2a4056f0f2ea01649f0b62229edf4f92a0e6ebc4d26ae7490aaae7b460d4
@@ -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-5"
7
+ gem.version = "0.1.0-6"
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}
@@ -14,7 +14,10 @@ class KubernetesAnnotationsTagAppender
14
14
  end
15
15
 
16
16
  # Don't re-add tags if they're already present:
17
- uniqs = (tag.split(".") + matches).uniq
17
+ orig_tags = tag.split(".")
18
+
19
+ # Unique with order preservation:
20
+ uniqs = orig_tags + ["annotated"] + matches.reject { |x| orig_tags.include? x }
18
21
  return uniqs.join(".")
19
22
  end
20
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.5
4
+ version: 0.1.0.pre.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Redbubble Delivery Engineering Team