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

Commit b9e45ab

Browse files
authored
whitesource (#73)
* whitesource * Release 1.1.3
1 parent 6686464 commit b9e45ab

15 files changed

+220
-49
lines changed

.circleci/build_and_push.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

.circleci/build_and_push_to_dockerhub.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/usr/bin/env bash
22
set -e
3-
FLUENTD_HEC_GEM_VERSION=`cat docker/FLUENTD_HEC_GEM_VERSION`
43
echo "Building docker image..."
54
cp /tmp/pkg/fluent-plugin-kubernetes-metrics-*.gem docker
65
echo "Copying licenses to be included in the docker image..."
7-
mkdir licenses
8-
cp -rp LICENSE licenses/
6+
mkdir docker/licenses
7+
cp -rp LICENSE docker/licenses/
98
VERSION=`cat VERSION`
10-
docker build --build-arg VERSION=$FLUENTD_HEC_GEM_VERSION --no-cache -t splunk/fluent-plugin-kubernetes-metrics:ci ./docker
9+
docker build --build-arg VERSION=$VERSION --no-cache -t splunk/fluent-plugin-kubernetes-metrics:ci ./docker
1110
docker tag splunk/fluent-plugin-kubernetes-metrics:ci splunk/${DOCKERHUB_REPO_NAME}:${VERSION}
1211
docker tag splunk/fluent-plugin-kubernetes-metrics:ci splunk/${DOCKERHUB_REPO_NAME}:latest
1312
echo "Push docker image to splunk dockerhub..."

.circleci/check_version_trigger_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ if [ $VERSION_COMMIT = $LATEST_COMMIT ];
2121
git checkout -b release/$VERSION origin/develop
2222
git push https://$RELEASE_GITHUB_USER:$RELEASE_GITHUB_PASS@github.com/splunk/fluent-plugin-kubernetes-metrics.git release/$VERSION
2323
git checkout master
24-
git merge --no-edit release/$VERSION
24+
git merge --no-edit -X theirs release/$VERSION
2525
git push https://$RELEASE_GITHUB_USER:$RELEASE_GITHUB_PASS@github.com/splunk/fluent-plugin-kubernetes-metrics.git master
2626
fi

.circleci/config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ workflows:
129129
- unit_test
130130
- check_version:
131131
requires:
132-
- func_test_master
133-
- func_test_develop
132+
- unit_test
134133
filters:
135134
branches:
136135
only: develop
@@ -151,5 +150,4 @@ workflows:
151150
- unit_test
152151
- release:
153152
requires:
154-
- func_test_master
155-
- func_test_develop
153+
- unit_test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ vendor
33
pkg
44
coverage/
55
.idea/
6+
docker/gems/
7+
docker/licenses/
8+
/.bundle/
9+
docker/.bundle/

Gemfile.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
PATH
22
remote: .
33
specs:
4-
fluent-plugin-kubernetes-metrics (1.1.2)
4+
fluent-plugin-kubernetes-metrics (1.1.3)
55
fluentd (~> 1.9.1)
6+
http_parser.rb (= 0.5.3)
67
kubeclient (~> 4.6.0)
78
multi_json (~> 1.14.1)
89
oj (~> 3.10.2)
@@ -12,7 +13,7 @@ GEM
1213
specs:
1314
addressable (2.6.0)
1415
public_suffix (>= 2.0.2, < 4.0)
15-
concurrent-ruby (1.1.5)
16+
concurrent-ruby (1.1.6)
1617
cool.io (1.6.0)
1718
crack (0.4.3)
1819
safe_yaml (~> 1.0.0)
@@ -23,7 +24,7 @@ GEM
2324
ffi-compiler (1.0.1)
2425
ffi (>= 1.0.0)
2526
rake
26-
fluentd (1.9.1)
27+
fluentd (1.9.2)
2728
cool.io (>= 1.4.5, < 2.0.0)
2829
http_parser.rb (>= 0.5.1, < 0.7.0)
2930
msgpack (>= 1.3.1, < 2.0.0)
@@ -45,7 +46,7 @@ GEM
4546
http-form_data (2.2.0)
4647
http-parser (1.2.1)
4748
ffi-compiler (>= 1.0, < 2.0)
48-
http_parser.rb (0.6.0)
49+
http_parser.rb (0.5.3)
4950
json (2.1.0)
5051
kubeclient (4.6.0)
5152
http (>= 3.0, < 5.0)
@@ -54,7 +55,7 @@ GEM
5455
mime-types (3.3.1)
5556
mime-types-data (~> 3.2015)
5657
mime-types-data (3.2019.1009)
57-
msgpack (1.3.1)
58+
msgpack (1.3.3)
5859
multi_json (1.14.1)
5960
netrc (0.11.0)
6061
oj (3.10.2)

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ namespace :docker do
2424
raise 'Argument `tag` was not provided.' unless args.tag
2525

2626
cp Dir['pkg/fluent-plugin-kubernetes-metrics-*.gem'], 'docker/'
27-
sh "docker build --no-cache -t splunk/connect-for-kubernetes:#{args.tag} ./docker"
27+
sh "docker build --build-arg VERSION=$(cat VERSION) --no-cache -t splunk/connect-for-kubernetes:#{args.tag} ./docker"
2828
end
2929
end

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.2
1+
1.1.3

docker/Dockerfile

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ FROM registry.access.redhat.com/ubi8/ruby-25
22

33
MAINTAINER DataEdge [email protected]
44

5+
ARG VERSION
6+
57
LABEL name="Splunk Connect for Kubernetes Metrics container" \
68
maintainer="[email protected]" \
79
vendor="Splunk Inc." \
8-
version="1.1.3" \
9-
release="1.1.3" \
10+
version=${VERSION} \
11+
release=${VERSION} \
1012
summary="Splunk Connect for Kubernetes Metrics container" \
1113
description="Splunk Connect for Kubernetes Metrics container"
1214

13-
ARG VERSION
1415
ENV VERSION=${VERSION}
1516
ENV FLUENT_USER fluent
1617

@@ -19,15 +20,10 @@ USER root
1920
COPY *.gem /tmp/
2021
COPY licenses /licenses
2122

22-
RUN gem install -N fluentd:1.9.1 \
23-
fluent-plugin-prometheus:1.7.0 \
24-
fluent-plugin-record-modifier:2.1.0 \
25-
fluent-plugin-splunk-hec:${VERSION} \
26-
oj:3.10.2 \
27-
multi_json:1.14.1 \
28-
bigdecimal:2.0.0 \
29-
kubeclient:4.6.0 && \
30-
gem install -N /tmp/*.gem
23+
COPY Gemfile* ./
24+
RUN gem install bundler \
25+
&& bundle install \
26+
&& bundle exec gem install /tmp/*.gem
3127

3228
RUN groupadd -r $FLUENT_USER && \
3329
useradd -r -g $FLUENT_USER $FLUENT_USER && \

docker/FLUENTD_HEC_GEM_VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)