Skip to content

Commit

Permalink
1.1.11 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
hvaghani221 authored Mar 29, 2022
1 parent 44e3e88 commit 0cbba60
Show file tree
Hide file tree
Showing 12 changed files with 1,079 additions and 27 deletions.
26 changes: 15 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
PATH
remote: .
specs:
fluent-plugin-kubernetes-objects (1.1.10)
fluent-plugin-kubernetes-objects (1.1.11)
fluentd (>= 1.9.1)
http_parser.rb (= 0.5.3)
kubeclient (~> 4.6.0)
kubeclient (~> 4.9.3)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
concurrent-ruby (1.1.9)
concurrent-ruby (1.1.10)
cool.io (1.7.1)
crack (0.4.5)
rexml
Expand All @@ -22,12 +22,12 @@ GEM
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
rake
fluentd (1.14.4)
fluentd (1.14.5)
bundler
cool.io (>= 1.4.5, < 2.0.0)
http_parser.rb (>= 0.5.1, < 0.9.0)
msgpack (>= 1.3.1, < 2.0.0)
serverengine (>= 2.2.2, < 3.0.0)
serverengine (>= 2.2.5, < 3.0.0)
sigdump (~> 0.2.2)
strptime (>= 0.2.4, < 1.0.0)
tzinfo (>= 1.0, < 3.0)
Expand All @@ -47,15 +47,19 @@ GEM
http-parser (1.2.3)
ffi-compiler (>= 1.0, < 2.0)
http_parser.rb (0.5.3)
kubeclient (4.6.0)
jsonpath (1.1.0)
multi_json
kubeclient (4.9.3)
http (>= 3.0, < 5.0)
recursive-open-struct (~> 1.0, >= 1.0.4)
jsonpath (~> 1.0)
recursive-open-struct (~> 1.1, >= 1.1.1)
rest-client (~> 2.0)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
minitest (5.14.4)
msgpack (1.4.4)
msgpack (1.4.5)
multi_json (1.15.0)
netrc (0.11.0)
power_assert (2.0.1)
public_suffix (4.0.6)
Expand All @@ -81,11 +85,11 @@ GEM
power_assert
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2021.5)
tzinfo-data (1.2022.1)
tzinfo (>= 1.0.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8)
unf_ext (0.0.8.1)
webmock (3.14.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
Expand All @@ -106,4 +110,4 @@ DEPENDENCIES
webmock (~> 3.5)

BUNDLED WITH
2.2.30
2.2.32
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.10
1.1.11
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN yum update -y \
&& bundle install \
&& bundle update i18n \
&& gem uninstall -i /usr/share/gems i18n --version 1.8.11 \
&& rpm -e --nodeps python3-pip-wheel python3-urllib3-* python3-requests-* python3-libxml2-* python3-dmidecode-* subscription-manager-* libwebp-* libwebp-devel-* glib2-* libjpeg-turbo-devel-* libjpeg-turbo-* mariadb-connector-c-config-* mariadb-connector-c-* mariadb-connector-c-devel-* rsync-* sqlite-libs-* sqlite-devel-* sqlite-* libxml2-* libxml2-devel-* libX11-* libX11-common-* libX11-devel-* libX11-xcb-* nettle-* libsolv-* file-libs-* dbus-daemon-* tar-* qt5-srpm-macros-* perl-parent-* git-* bsdtar-* openssh-clients-* json-c-* binutils-* libtiff-devel-* libtiff-* || true
&& rpm -e --nodeps python3-pip-wheel python3-urllib3-* python3-requests-* python3-libxml2-* python3-dmidecode-* subscription-manager-* libwebp-* libwebp-devel-* libjpeg-turbo-devel-* libjpeg-turbo-* mariadb-connector-c-config-* mariadb-connector-c-* mariadb-connector-c-devel-* rsync-* libX11-* libX11-common-* libX11-devel-* libX11-xcb-* dbus-daemon-* tar-* qt5-srpm-macros-* perl-parent-* git-* bsdtar-* openssh-clients-* binutils-* libtiff-devel-* libtiff-* || true

RUN groupadd -r $FLUENT_USER && \
useradd -r -g $FLUENT_USER $FLUENT_USER && \
Expand Down
2 changes: 1 addition & 1 deletion docker/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gem "fluent-plugin-jq", "= 0.5.1"
gem "oj", "= 3.10.18"
gem 'multi_json', '>= 1.14.1'
gem 'bigdecimal', '>= 2.0.0'
gem 'kubeclient', '>= 4.6.0'
gem 'kubeclient', '>= 4.9.3'
gem 'http_parser.rb', '>= 0.5.3'

gem "fluent-plugin-splunk-hec", ">= 1.2.5"
Expand Down
21 changes: 12 additions & 9 deletions docker/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PATH
remote: gem
specs:
fluent-plugin-kubernetes-objects (1.1.10)
fluent-plugin-kubernetes-objects (1.1.11)
fluentd (>= 1.9.1)
http_parser.rb (= 0.5.3)
kubeclient (~> 4.6.0)
kubeclient (~> 4.9.3)

GEM
remote: https://rubygems.org/
Expand All @@ -27,7 +27,7 @@ GEM
cool.io (1.7.1)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
ffi (1.15.4)
ffi (1.15.5)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
rake
Expand All @@ -43,7 +43,7 @@ GEM
prometheus-client (>= 2.1.0)
fluent-plugin-record-modifier (2.1.0)
fluentd (>= 1.0, < 2)
fluent-plugin-splunk-hec (1.2.11)
fluent-plugin-splunk-hec (1.2.12)
fluentd (>= 1.4)
multi_json (~> 1.13)
net-http-persistent (~> 3.1)
Expand Down Expand Up @@ -80,16 +80,19 @@ GEM
activesupport (>= 4.2)
aes_key_wrap
bindata
kubeclient (4.6.0)
jsonpath (1.1.0)
multi_json
kubeclient (4.9.3)
http (>= 3.0, < 5.0)
recursive-open-struct (~> 1.0, >= 1.0.4)
jsonpath (~> 1.0)
recursive-open-struct (~> 1.1, >= 1.1.1)
rest-client (~> 2.0)
lru_redux (1.1.0)
mail (2.7.1)
mini_mime (>= 0.1.1)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2021.1115)
mime-types-data (3.2022.0105)
mini_mime (1.1.2)
minitest (5.15.0)
msgpack (1.4.2)
Expand Down Expand Up @@ -138,7 +141,7 @@ GEM
tzinfo (>= 1.0.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8)
unf_ext (0.0.8.1)
validate_email (0.1.6)
activemodel (>= 3.0)
mail (>= 2.2.5)
Expand All @@ -164,7 +167,7 @@ DEPENDENCIES
fluent-plugin-splunk-hec (>= 1.2.5)
fluentd (>= 1.14.2)
http_parser.rb (>= 0.5.3)
kubeclient (>= 4.6.0)
kubeclient (>= 4.9.3)
multi_json (>= 1.14.1)
oj (= 3.10.18)

Expand Down
2 changes: 1 addition & 1 deletion fluent-plugin-kubernetes-objects.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.required_ruby_version = '>= 2.3.0'
spec.add_runtime_dependency 'fluentd', '>= 1.9.1'
spec.add_runtime_dependency 'kubeclient', '~> 4.6.0'
spec.add_runtime_dependency 'kubeclient', '~> 4.9.3'
spec.add_runtime_dependency 'http_parser.rb', '= 0.5.3'

spec.add_development_dependency 'bundler', '~> 2.0'
Expand Down
5 changes: 4 additions & 1 deletion lib/fluent/plugin/in_kubernetes_objects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class KubernetesObjectsInput < Fluent::Plugin::Input
desc 'Kubernetes API version.'
config_param :api_version, :string, default: 'v1'

desc 'Kubernetes API endpoint.'
config_param :api_endpoint, :string, default: 'api'

desc 'Path to the certificate file for this client.'
config_param :client_cert, :string, default: nil

Expand Down Expand Up @@ -139,7 +142,7 @@ def initialize_client
env_host = ENV['KUBERNETES_SERVICE_HOST']
env_port = ENV['KUBERNETES_SERVICE_PORT']
if env_host && env_port
@kubernetes_url = "https://#{env_host}:#{env_port}/#{@api_version == 'v1' ? 'api' : 'apis'}"
@kubernetes_url = "https://#{env_host}:#{env_port}/#{@api_endpoint.delete_prefix('/')}"
end
end

Expand Down
Loading

0 comments on commit 0cbba60

Please sign in to comment.