Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 472242a

Browse files
authored
libupdate (#89)
* libupdate
1 parent 9ee190c commit 472242a

File tree

7 files changed

+42
-47
lines changed

7 files changed

+42
-47
lines changed

Gemfile.lock

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
fluent-plugin-kubernetes-metrics (1.1.5)
4+
fluent-plugin-kubernetes-metrics (1.1.6)
55
fluentd (>= 1.9.1)
66
kubeclient (~> 4.6.0)
77
multi_json (~> 1.14.1)
@@ -10,29 +10,30 @@ PATH
1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
addressable (2.7.0)
13+
addressable (2.8.0)
1414
public_suffix (>= 2.0.2, < 5.0)
15-
concurrent-ruby (1.1.8)
15+
concurrent-ruby (1.1.9)
1616
cool.io (1.7.1)
1717
crack (0.4.5)
1818
rexml
19-
docile (1.3.5)
19+
docile (1.4.0)
2020
domain_name (0.5.20190701)
2121
unf (>= 0.0.5, < 1.0.0)
22-
ffi (1.14.2)
22+
ffi (1.15.3)
2323
ffi-compiler (1.0.1)
2424
ffi (>= 1.0.0)
2525
rake
26-
fluentd (1.12.1)
26+
fluentd (1.13.2)
2727
bundler
2828
cool.io (>= 1.4.5, < 2.0.0)
29-
http_parser.rb (>= 0.5.1, < 0.7.0)
29+
http_parser.rb (>= 0.5.1, < 0.8.0)
3030
msgpack (>= 1.3.1, < 2.0.0)
3131
serverengine (>= 2.2.2, < 3.0.0)
3232
sigdump (~> 0.2.2)
3333
strptime (>= 0.2.2, < 1.0.0)
3434
tzinfo (>= 1.0, < 3.0)
3535
tzinfo-data (~> 1.0)
36+
webrick (>= 1.4.2, < 1.8.0)
3637
yajl-ruby (~> 1.0)
3738
hashdiff (1.0.1)
3839
http (4.4.1)
@@ -41,35 +42,35 @@ GEM
4142
http-form_data (~> 2.2)
4243
http-parser (~> 1.2.0)
4344
http-accept (1.7.0)
44-
http-cookie (1.0.3)
45+
http-cookie (1.0.4)
4546
domain_name (~> 0.5)
4647
http-form_data (2.3.0)
4748
http-parser (1.2.3)
4849
ffi-compiler (>= 1.0, < 2.0)
49-
http_parser.rb (0.6.0)
50+
http_parser.rb (0.7.0)
5051
json (2.5.1)
5152
kubeclient (4.6.0)
5253
http (>= 3.0, < 5.0)
5354
recursive-open-struct (~> 1.0, >= 1.0.4)
5455
rest-client (~> 2.0)
5556
mime-types (3.3.1)
5657
mime-types-data (~> 3.2015)
57-
mime-types-data (3.2021.0225)
58+
mime-types-data (3.2021.0704)
5859
msgpack (1.4.2)
5960
multi_json (1.14.1)
6061
netrc (0.11.0)
6162
oj (3.10.18)
6263
power_assert (2.0.0)
6364
public_suffix (4.0.6)
64-
rake (13.0.3)
65+
rake (13.0.6)
6566
recursive-open-struct (1.1.3)
6667
rest-client (2.1.0)
6768
http-accept (>= 1.7.0, < 2.0)
6869
http-cookie (>= 1.0.2, < 2.0)
6970
mime-types (>= 1.16, < 4.0)
7071
netrc (~> 0.8)
71-
rexml (3.2.4)
72-
serverengine (2.2.3)
72+
rexml (3.2.5)
73+
serverengine (2.2.4)
7374
sigdump (~> 0.2.2)
7475
sigdump (0.2.4)
7576
simplecov (0.16.1)
@@ -91,6 +92,7 @@ GEM
9192
addressable (>= 2.3.6)
9293
crack (>= 0.3.2)
9394
hashdiff
95+
webrick (1.7.0)
9496
yajl-ruby (1.4.1)
9597

9698
PLATFORMS

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
VERSION := $(shell sh -c 'cat VERSION')
2-
NODEJS_VERSION := 14.15.1
32

43
clean_pkg:
54
@rm -rf pkg/* docker/*.gem
@@ -17,7 +16,7 @@ docker: build install-deps
1716
@cp pkg/fluent-plugin-*.gem docker
1817
@mkdir -p docker/licenses
1918
@cp -rp LICENSE docker/licenses/
20-
@docker build --no-cache --pull --build-arg VERSION=$(VERSION) --build-arg NODEJS_VERSION=$(NODEJS_VERSION) -t splunk/k8s-metrics:$(VERSION) ./docker
19+
@docker build --no-cache --pull --build-arg VERSION=$(VERSION) -t splunk/k8s-metrics:$(VERSION) ./docker
2120

2221
unit-test:
2322
@bundle exec rake test

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.5
1+
1.1.6

docker/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM registry.access.redhat.com/ubi8/ruby-27
22

33
ARG VERSION
4-
ARG NODEJS_VERSION
54

65
LABEL name="Splunk Connect for Kubernetes Metrics container" \
76
maintainer="[email protected]" \
@@ -21,9 +20,7 @@ COPY licenses /licenses
2120

2221
COPY Gemfile* ./
2322
RUN yum update -y \
24-
&& npm install -g n \
25-
&& yum remove -y nodejs \
26-
&& n ${NODEJS_VERSION} \
23+
&& yum remove -y nodejs npm \
2724
&& gem install bundler \
2825
&& gem unpack /tmp/*.gem --target gem \
2926
&& bundle install

docker/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
44
# for kubernetes log collection agent
55
# List all required gems here and install via bundler to resolve dependencies
66
gem "fluentd", "=1.11.5"
7-
gem "fluent-plugin-prometheus", "=1.8.5"
7+
gem "fluent-plugin-prometheus", ">=2.0"
88
gem "fluent-plugin-record-modifier", "=2.1.0"
99
gem "fluent-plugin-kubernetes_metadata_filter", "=2.5.3"
1010
gem "fluent-plugin-jq", "=0.5.1"

docker/Gemfile.lock

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: gem
33
specs:
4-
fluent-plugin-kubernetes-metrics (1.1.5)
4+
fluent-plugin-kubernetes-metrics (1.1.6)
55
fluentd (>= 1.9.1)
66
kubeclient (~> 4.6.0)
77
multi_json (~> 1.14.1)
@@ -10,26 +10,26 @@ PATH
1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
activemodel (6.1.3)
14-
activesupport (= 6.1.3)
15-
activesupport (6.1.3)
13+
activemodel (6.1.4)
14+
activesupport (= 6.1.4)
15+
activesupport (6.1.4)
1616
concurrent-ruby (~> 1.0, >= 1.0.2)
1717
i18n (>= 1.6, < 2)
1818
minitest (>= 5.1)
1919
tzinfo (~> 2.0)
2020
zeitwerk (~> 2.3)
21-
addressable (2.7.0)
21+
addressable (2.8.0)
2222
public_suffix (>= 2.0.2, < 5.0)
2323
aes_key_wrap (1.1.0)
2424
attr_required (1.0.1)
2525
bigdecimal (3.0.0)
26-
bindata (2.4.8)
27-
concurrent-ruby (1.1.8)
28-
connection_pool (2.2.3)
26+
bindata (2.4.10)
27+
concurrent-ruby (1.1.9)
28+
connection_pool (2.2.5)
2929
cool.io (1.7.1)
3030
domain_name (0.5.20190701)
3131
unf (>= 0.0.5, < 1.0.0)
32-
ffi (1.14.2)
32+
ffi (1.15.3)
3333
ffi-compiler (1.0.1)
3434
ffi (>= 1.0.0)
3535
rake
@@ -40,17 +40,17 @@ GEM
4040
fluentd (>= 0.14.0, < 1.12)
4141
kubeclient (< 5)
4242
lru_redux
43-
fluent-plugin-prometheus (1.8.5)
43+
fluent-plugin-prometheus (2.0.1)
4444
fluentd (>= 1.9.1, < 2)
45-
prometheus-client (< 0.10)
45+
prometheus-client (>= 2.1.0)
4646
fluent-plugin-record-modifier (2.1.0)
4747
fluentd (>= 1.0, < 2)
48-
fluent-plugin-splunk-hec (1.2.5)
48+
fluent-plugin-splunk-hec (1.2.7)
4949
fluentd (>= 1.4)
5050
multi_json (~> 1.13)
5151
net-http-persistent (~> 3.1)
5252
openid_connect (~> 1.1.8)
53-
prometheus-client (< 0.10.0)
53+
prometheus-client (>= 2.1.0)
5454
fluentd (1.11.5)
5555
cool.io (>= 1.4.5, < 2.0.0)
5656
http_parser.rb (>= 0.5.1, < 0.7.0)
@@ -67,14 +67,14 @@ GEM
6767
http-form_data (~> 2.2)
6868
http-parser (~> 1.2.0)
6969
http-accept (1.7.0)
70-
http-cookie (1.0.3)
70+
http-cookie (1.0.4)
7171
domain_name (~> 0.5)
7272
http-form_data (2.3.0)
7373
http-parser (1.2.3)
7474
ffi-compiler (>= 1.0, < 2.0)
7575
http_parser.rb (0.5.3)
7676
httpclient (2.8.3)
77-
i18n (1.8.9)
77+
i18n (1.8.10)
7878
concurrent-ruby (~> 1.0)
7979
json-jwt (1.13.0)
8080
activesupport (>= 4.2)
@@ -89,8 +89,8 @@ GEM
8989
mini_mime (>= 0.1.1)
9090
mime-types (3.3.1)
9191
mime-types-data (~> 3.2015)
92-
mime-types-data (3.2021.0225)
93-
mini_mime (1.0.2)
92+
mime-types-data (3.2021.0704)
93+
mini_mime (1.1.0)
9494
minitest (5.14.4)
9595
msgpack (1.4.2)
9696
multi_json (1.14.1)
@@ -108,25 +108,23 @@ GEM
108108
validate_email
109109
validate_url
110110
webfinger (>= 1.0.1)
111-
prometheus-client (0.9.0)
112-
quantile (~> 0.2.1)
111+
prometheus-client (2.1.0)
113112
public_suffix (4.0.6)
114-
quantile (0.2.1)
115113
rack (2.2.3)
116-
rack-oauth2 (1.16.0)
114+
rack-oauth2 (1.17.0)
117115
activesupport
118116
attr_required
119117
httpclient
120118
json-jwt (>= 1.11.0)
121119
rack (>= 2.1.0)
122-
rake (13.0.3)
120+
rake (13.0.6)
123121
recursive-open-struct (1.1.3)
124122
rest-client (2.1.0)
125123
http-accept (>= 1.7.0, < 2.0)
126124
http-cookie (>= 1.0.2, < 2.0)
127125
mime-types (>= 1.16, < 4.0)
128126
netrc (~> 0.8)
129-
serverengine (2.2.3)
127+
serverengine (2.2.4)
130128
sigdump (~> 0.2.2)
131129
sigdump (0.2.4)
132130
strptime (0.2.5)
@@ -161,7 +159,7 @@ DEPENDENCIES
161159
fluent-plugin-jq (= 0.5.1)
162160
fluent-plugin-kubernetes-metrics!
163161
fluent-plugin-kubernetes_metadata_filter (= 2.5.3)
164-
fluent-plugin-prometheus (= 1.8.5)
162+
fluent-plugin-prometheus (>= 2.0)
165163
fluent-plugin-record-modifier (= 2.1.0)
166164
fluent-plugin-splunk-hec (>= 1.2.5)
167165
fluentd (= 1.11.5)

docker/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22
set -e
33
TAG=$1
4-
NODEJS_VERSION=14.15.1
54

65
# Install dependecies
76
gem install bundler
@@ -17,4 +16,4 @@ VERSION=`cat VERSION`
1716
echo "Copying licenses to be included in the docker image..."
1817
mkdir -p docker/licenses
1918
cp -rp LICENSE docker/licenses/
20-
docker build --no-cache --pull --build-arg VERSION=$VERSION --build-arg NODEJS_VERSION=$NODEJS_VERSION --no-cache -t splunk/k8s-metrics:$TAG ./docker
19+
docker build --no-cache --pull --build-arg VERSION=$VERSION --no-cache -t splunk/k8s-metrics:$TAG ./docker

0 commit comments

Comments
 (0)