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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26c8a69779aeb49e6cc2e01269885c5eb8603e7d
|
4
|
+
data.tar.gz: b9da3aa2c7500202e96dc02baf6b2d4fd4297ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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
|
-
|
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
|
+
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-
|
11
|
+
date: 2017-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|