fluent-plugin-nais 0.31.0 → 0.32.0

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: 4416fb906c89fd3d36e929f15681b6bc531a62e7
4
- data.tar.gz: 431ac16c27e69af77f1cc864ecf3ffc8742c576b
3
+ metadata.gz: 0dc9e2362edd09cccb62c9c8c7b001bdd0284778
4
+ data.tar.gz: a63075ef1f0652c47aeaab69a0159ebc1f2ca45e
5
5
  SHA512:
6
- metadata.gz: 7fcae511ef4fb9c1909789f9cad69f5d6de11fa61170b54e212fb3607b929984f1a2fd425ce13bbe531ad75ad2de7ec51597ae7542fb89de50863ab95034016b
7
- data.tar.gz: 4c0f4b59f253f4a3519e3b01e61faffc54b9eaf29670ea2d5a5264dbfe2b895b71412bc0b0f13bf3925f73a1394c202a3ed403278c163c1ee3b9c8aad43c7a5a
6
+ metadata.gz: 29e054b9727f027f50c78c95bf6ac6ccfcfdfa9f3e25e845fcb26e0ac1fe3b54364a14566c91a264170a06fce649aca7c79c79e5056ee8278bedc3c257f2af35
7
+ data.tar.gz: 91dfed1c4ee5de6ebea7d9219188601f98fbc0437dd02e615e43e2ce5b67ea0008b47972a7042321a13009a6342b647c866f6a5f65a100a53964f41cef9d44df
@@ -24,7 +24,9 @@ module Fluent::Plugin
24
24
  if record["kubernetes"]["labels"].is_a?(Hash)
25
25
  unless @labels.nil? || @labels == ""
26
26
  @labels.split(',').each {|label|
27
- record[label] = record["kubernetes"]["labels"][label] if record["kubernetes"]["labels"].has_key?(label)
27
+ if record["kubernetes"]["labels"].has_key?(label) && !record["kubernetes"]["labels"][label].nil? && record["kubernetes"]["labels"][label] != ""
28
+ record[label] = record["kubernetes"]["labels"][label]
29
+ end
28
30
  }
29
31
  end
30
32
  end
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.31.0"
4
+ VERSION = "0.32.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-nais
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Sannum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-03 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd