fluent-plugin-kubernetes_metadata_filter 2.4.5 → 2.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e067ab263fb4e86956da0e6ee07540701e8c728b3f658a9e7d27fbca6ac28307
4
- data.tar.gz: 155aff320729d471fe41a09b9a5b838ac70f4bc5d32de39f95735d8ec4cf2213
3
+ metadata.gz: 674303b83893faf1b8188fba478414257e85e78ef3ea92945849950ea56381bf
4
+ data.tar.gz: db56e05f338366b9204f4e94b19062edf230c7357b21ff385da0c3575ad91953
5
5
  SHA512:
6
- metadata.gz: afa694eaa98e032be272fcc94a6a6c9703185255f43d24475c0b1516e2ef3fb4f57040398e67197512701c5b3e14c04946c9516efee1dcefdf922342d592731c
7
- data.tar.gz: 528302e11718e025dbadd349122fd7addd345284781b38c6a03d9bb8815b25d744248ec4cee866324fe13f40b340dedb424cbf33ec9a8e1f6a1782ba851aca29
6
+ metadata.gz: f8c9d1ae8db09db5fe19f7f53aaff882dbad2c7f88a0da88a31f999fb396d642c8315d6f3ca7de6f7df0c88efdf68b615610d6fed629edaa7eb9ce121c1150b4
7
+ data.tar.gz: a0a7e76ad0ad6230c5913d394378a7df7c51ea790f20bbbaa8d507247b5cb0f70d4a6a3d778421c12f501ba2189f0b96f5792bd64376c715d9084c5d77638160
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-kubernetes_metadata_filter (2.4.5)
5
- fluentd (>= 0.14.0, < 2)
4
+ fluent-plugin-kubernetes_metadata_filter (2.4.6)
5
+ fluentd (>= 0.14.0, < 1.10)
6
6
  kubeclient (< 5)
7
7
  lru_redux
8
8
 
@@ -46,7 +46,7 @@ GEM
46
46
  mini_mime (~> 1.0)
47
47
  rugged (>= 0.25.1)
48
48
  hashdiff (1.0.1)
49
- http (4.3.0)
49
+ http (4.4.1)
50
50
  addressable (~> 2.3)
51
51
  http-cookie (~> 1.0)
52
52
  http-form_data (~> 2.2)
@@ -66,7 +66,7 @@ GEM
66
66
  lru_redux (1.1.0)
67
67
  mime-types (3.3.1)
68
68
  mime-types-data (~> 3.2015)
69
- mime-types-data (3.2019.1009)
69
+ mime-types-data (3.2020.0425)
70
70
  mini_mime (1.0.2)
71
71
  minitest (4.7.5)
72
72
  msgpack (1.3.3)
@@ -110,13 +110,13 @@ GEM
110
110
  test-unit-rr (1.0.5)
111
111
  rr (>= 1.1.1)
112
112
  test-unit (>= 2.5.2)
113
- tzinfo (2.0.1)
113
+ tzinfo (2.0.2)
114
114
  concurrent-ruby (~> 1.0)
115
- tzinfo-data (1.2019.3)
115
+ tzinfo-data (1.2020.1)
116
116
  tzinfo (>= 1.0.0)
117
117
  unf (0.1.4)
118
118
  unf_ext
119
- unf_ext (0.0.7.6)
119
+ unf_ext (0.0.7.7)
120
120
  unicode-display_width (1.6.1)
121
121
  vcr (5.1.0)
122
122
  webmock (3.8.3)
data/README.md CHANGED
@@ -47,7 +47,7 @@ This must used named capture groups for `container_name`, `pod_name` & `namespac
47
47
  * *DEPRECATED* `use_journal` - If false, messages are expected to be formatted and tagged as if read by the fluentd in\_tail plugin with wildcard filename. If true, messages are expected to be formatted as if read from the systemd journal. The `MESSAGE` field has the full message. The `CONTAINER_NAME` field has the encoded k8s metadata (see below). The `CONTAINER_ID_FULL` field has the full container uuid. This requires docker to use the `--log-driver=journald` log driver. If unset (the default), the plugin will use the `CONTAINER_NAME` and `CONTAINER_ID_FULL` fields
48
48
  if available, otherwise, will use the tag in the `tag_to_kubernetes_name_regexp` format.
49
49
  * `container_name_to_kubernetes_regexp` - The regular expression used to extract the k8s metadata encoded in the journal `CONTAINER_NAME` field (default: `'^(?<name_prefix>[^_]+)_(?<container_name>[^\._]+)(\.(?<container_hash>[^_]+))?_(?<pod_name>[^_]+)_(?<namespace>[^_]+)_[^_]+_[^_]+$'`
50
- * This corresponds to the definition [in the source](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockertools/docker.go#L317)
50
+ * This corresponds to the definition [in the source](https://github.com/kubernetes/kubernetes/blob/release-1.6/pkg/kubelet/dockertools/docker.go#L317)
51
51
  * `annotation_match` - Array of regular expressions matching annotation field names. Matched annotations are added to a log record.
52
52
  * `allow_orphans` - Modify the namespace and namespace id to the values of `orphaned_namespace_name` and `orphaned_namespace_id`
53
53
  when true (default: `true`)
@@ -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-kubernetes_metadata_filter"
7
- gem.version = "2.4.5"
7
+ gem.version = "2.4.6"
8
8
  gem.authors = ["Jimmi Dyson"]
9
9
  gem.email = ["jimmidyson@gmail.com"]
10
10
  gem.description = %q{Filter plugin to add Kubernetes metadata}
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.required_ruby_version = '>= 2.1.0'
21
21
 
22
- gem.add_runtime_dependency 'fluentd', ['>= 0.14.0', '< 2']
22
+ gem.add_runtime_dependency 'fluentd', ['>= 0.14.0', '< 1.10']
23
23
  gem.add_runtime_dependency "lru_redux"
24
24
  gem.add_runtime_dependency "kubeclient", '< 5'
25
25
 
@@ -62,7 +62,7 @@ module Fluent::Plugin
62
62
  # Field 2 is the container_hash, field 5 is the pod_id, and field 6 is the pod_randhex
63
63
  # I would have included them as named groups, but you can't have named groups that are
64
64
  # non-capturing :P
65
- # parse format is defined here: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockertools/docker.go#L317
65
+ # parse format is defined here: https://github.com/kubernetes/kubernetes/blob/release-1.6/pkg/kubelet/dockertools/docker.go#L317
66
66
  config_param :container_name_to_kubernetes_regexp,
67
67
  :string,
68
68
  :default => '^(?<name_prefix>[^_]+)_(?<container_name>[^\._]+)(\.(?<container_hash>[^_]+))?_(?<pod_name>[^_]+)_(?<namespace>[^_]+)_[^_]+_[^_]+$'
@@ -208,6 +208,8 @@ module Fluent::Plugin
208
208
  end
209
209
  @kubernetes_url = "https://#{env_host}:#{env_port}/api"
210
210
  log.debug "Kubernetes URL is now '#{@kubernetes_url}'"
211
+ else
212
+ log.debug "No Kubernetes URL could be found in config or environ"
211
213
  end
212
214
  end
213
215
 
@@ -29,6 +29,7 @@ module KubernetesMetadata
29
29
  # the configuration.
30
30
  namespace_watcher = start_namespace_watch
31
31
  Thread.current[:namespace_watch_retry_backoff_interval] = @watch_retry_interval
32
+ Thread.current[:namespace_watch_retry_count] = 0
32
33
 
33
34
  # Any failures / exceptions in the followup watcher notice
34
35
  # processing will be swallowed and retried. These failures /
@@ -29,6 +29,7 @@ module KubernetesMetadata
29
29
  # the configuration.
30
30
  pod_watcher = start_pod_watch
31
31
  Thread.current[:pod_watch_retry_backoff_interval] = @watch_retry_interval
32
+ Thread.current[:pod_watch_retry_count] = 0
32
33
 
33
34
  # Any failures / exceptions in the followup watcher notice
34
35
  # processing will be swallowed and retried. These failures /
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kubernetes_metadata_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.5
4
+ version: 2.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmi Dyson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2020-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 0.14.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2'
22
+ version: '1.10'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 0.14.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2'
32
+ version: '1.10'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: lru_redux
35
35
  requirement: !ruby/object:Gem::Requirement