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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddfda1cafbe9880627b625361ac04b52b7acaef9
|
4
|
+
data.tar.gz: dd8aae9b32d9f0541c0244341f06fcb1d0f76650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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
|
-
|
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
|