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 +4 -4
- data/lib/fluent/plugin/filter_nais_kubewatch.rb +3 -1
- data/lib/fluent/plugin/nais/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce07a84b1507d670d2ff3ab3b6703c94d6bd66fe
|
4
|
+
data.tar.gz: 7c892cb0d6744389c32d1c8c2ce571cd02e23445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,})
|
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'
|
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.
|
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-
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|