fluent-plugin-append-kubernetes-labels-to-tag 0.0.3.pre.alpha4 → 0.0.3.pre.alpha5
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: 1fda8228cd8c7bb50b9212f582819ed492bfe08d
|
4
|
+
data.tar.gz: 99d1463c72db90c3f69155bbcb901f9fb77d8a2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 295cc688894c4a709507ec98d1b20718a751e9a5f2ec61dd9fa7b1be140aec727dcb1fcf5fa0000bba8455ab1e5630b939f7778e8ae18b8cc1f4b2aaac57856a
|
7
|
+
data.tar.gz: 9570bcbad80149f0ae2bcbf690358d5bb1386667a52c753de4d58c44d4d4970492c122a791703ff0775a85307e1c137310832c10165af86aa7980f777ef9c7bc
|
@@ -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-labels-to-tag"
|
7
|
-
gem.version = "0.0.3-
|
7
|
+
gem.version = "0.0.3-alpha5"
|
8
8
|
gem.authors = ["Redbubble Delivery Engineering Team"]
|
9
9
|
gem.email = ["delivery-engineers@redbubble.com"]
|
10
10
|
gem.description = %q{Filter plugin to append certain Kubernetes labels to the Fluentd tag}
|
@@ -1,4 +1,7 @@
|
|
1
1
|
class KubernetesLabelsTagAppender
|
2
|
+
class ReEmitException < Exception
|
3
|
+
end
|
4
|
+
|
2
5
|
attr_reader :labels
|
3
6
|
|
4
7
|
def initialize(labels)
|
@@ -18,6 +21,8 @@ class KubernetesLabelsTagAppender
|
|
18
21
|
tag
|
19
22
|
end
|
20
23
|
|
24
|
+
raise ReEmitException.new('Will not re-emit because the tag has not changed.') if new_tag == tag
|
25
|
+
|
21
26
|
[
|
22
27
|
new_tag,
|
23
28
|
time,
|
metadata
CHANGED