fluent-plugin-nais 0.16.1 → 0.16.2

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: 3ec76bbfad23a0aa37df11f8d00cf77d978ee304
4
- data.tar.gz: 7ce6e2de426d918e8b4fa5ce16addd0d33a6d90c
3
+ metadata.gz: ce07a84b1507d670d2ff3ab3b6703c94d6bd66fe
4
+ data.tar.gz: 7c892cb0d6744389c32d1c8c2ce571cd02e23445
5
5
  SHA512:
6
- metadata.gz: f1a0465bf3bdc0cce0ec2847ebecb6507b59d5ebea6fc98429a954f38359487ecaf6fd8103502dfa3784db8abb39304712662fb1a7e608c9cd76380dfa3602f4
7
- data.tar.gz: daa449b5a99a25cad4126ad8348f719c754f1c3562773fee311fe002f813f041f7d6e850dc0a912be5c97c8d93026c09b61bf60af6392d15549e5bce08c7ff1e
6
+ metadata.gz: 88f61aa5c742cc9df4f9d26d28e50da4b760e04a64b256362b5975624df19a8cb2976745db6233ab333cdb1bfb1b86e1333dad1c934329d2a384803513f27490
7
+ data.tar.gz: 4c8f780bb824dccc1a21fc9939c26be0503f3f538ed51e494a957df13036eba7b96adf7b5825b78ecf30cb2a16b02902410b6ac71f0e26c28b120f4c6a2a5999
@@ -24,7 +24,9 @@ module Fluent
24
24
  end
25
25
  if record.has_key?('involvedObject')
26
26
  if (record['involvedObject']['fieldPath'] =~ /^spec.containers\{([^\}]+)\}$/ ||
27
- record['involvedObject']['name'] =~ /^(.+?)(?:-[0-9a-f]{8,})?-[0-9a-z]{5}$/)
27
+ record['involvedObject']['name'] =~ /^(.+?)(?:-[0-9a-f]{8,})?(?:-[0-9a-z]{5})?$/ ||
28
+ (record['involvedObject']['kind'] == 'ReplicaSet' && record['involvedObject']['name'] =~ /^(.+?)(?:-[0-9a-f]{8,})?$/) ||
29
+ (record['involvedObject']['kind'] =~ /(?:Deployment|DaemonSet)/ && record['involvedObject']['name'] =~ /^(.+)$/))
28
30
  record['application'] = $1
29
31
  record['namespace'] = record['involvedObject']['namespace']
30
32
  if record['involvedObject']['kind'] == 'Pod'
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.16.1"
4
+ VERSION = "0.16.2"
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.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Sannum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-20 00:00:00.000000000 Z
11
+ date: 2017-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd