fluent-plugin-kubernetes-metrics 1.1.2 → 1.1.4
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 +4 -4
- data/Gemfile.lock +34 -30
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/fluent-plugin-kubernetes-metrics.gemspec +14 -12
- data/lib/fluent/plugin/in_kubernetes_metrics.rb +3 -3
- data/test/helper.rb +2 -2
- metadata +16 -51
- data/.circleci/build_and_push.sh +0 -11
- data/.circleci/build_and_push_to_dockerhub.sh +0 -12
- data/.circleci/build_and_push_to_github_release.sh +0 -11
- data/.circleci/check_version_trigger_release.sh +0 -26
- data/.circleci/config.yml +0 -133
- data/.circleci/install_dep.sh +0 -5
- data/.circleci/push_gem.sh +0 -8
- data/.circleci/push_gems_to_rubygems.sh +0 -7
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -29
- data/.github/ISSUE_TEMPLATE/enhancement_request.md +0 -14
- data/.github/ISSUE_TEMPLATE/failing_test.md +0 -18
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -23
- data/.gitignore +0 -5
- data/CLA.md +0 -18
- data/CONTRIBUTING.md +0 -20
- data/CONTRIBUTORS.md +0 -15
- data/docker/CONTRIBUTING.md +0 -20
- data/docker/Dockerfile +0 -52
- data/docker/FLUENTD_HEC_GEM_VERSION +0 -1
- data/docker/LICENSE +0 -201
- data/docker/README.md +0 -4
- data/docker/entrypoint.sh +0 -27
- data/examples/daemonset.yaml +0 -114
- data/test/api.json +0 -8
- data/test/metrics_cadvisor.txt +0 -1715
- data/test/stats.json +0 -3536
- data/test/unit.json +0 -199
- data/test/unit_without_time.json +0 -178
- data/test/v1.json +0 -488
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca11780c53ec485dd7470ee5b0d644983f75b25d55f7625666fd682868a0e361
|
4
|
+
data.tar.gz: 90a5ffe9e4430c108e863e26fc3dfdeb4c6b667e7683a1de7d1d05de8825e06b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e236979695bbf3cf714d9fc8e43fa9a0214deeb7e033ef039f81c19290c5cffd090567a72dc9bc57be3cf201e5a656cf38ba924c5439c7f33978eeeb21f21af5
|
7
|
+
data.tar.gz: 60d7d6b96b01f92a1754bfdf9e152eff7f07987f6a85ab00cdbfde23001ee19356a8b89d62da9f9be47b95d07fc1a8b7194efd00bdc610e7b4a3ce3328827881
|
data/Gemfile.lock
CHANGED
@@ -1,61 +1,66 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluent-plugin-kubernetes-metrics (1.1.
|
5
|
-
fluentd (~> 1.
|
6
|
-
kubeclient (~> 4.
|
7
|
-
multi_json (~> 1.
|
8
|
-
oj (~> 3.
|
4
|
+
fluent-plugin-kubernetes-metrics (1.1.4)
|
5
|
+
fluentd (~> 1.9.1)
|
6
|
+
kubeclient (~> 4.6.0)
|
7
|
+
multi_json (~> 1.14.1)
|
8
|
+
oj (~> 3.10.2)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
13
|
addressable (2.6.0)
|
14
14
|
public_suffix (>= 2.0.2, < 4.0)
|
15
|
-
|
15
|
+
concurrent-ruby (1.1.6)
|
16
|
+
cool.io (1.6.0)
|
16
17
|
crack (0.4.3)
|
17
18
|
safe_yaml (~> 1.0.0)
|
18
|
-
dig_rb (1.0.1)
|
19
19
|
docile (1.3.1)
|
20
20
|
domain_name (0.5.20190701)
|
21
21
|
unf (>= 0.0.5, < 1.0.0)
|
22
|
-
|
22
|
+
ffi (1.12.2)
|
23
|
+
ffi-compiler (1.0.1)
|
24
|
+
ffi (>= 1.0.0)
|
25
|
+
rake
|
26
|
+
fluentd (1.9.2)
|
23
27
|
cool.io (>= 1.4.5, < 2.0.0)
|
24
|
-
dig_rb (~> 1.0.0)
|
25
28
|
http_parser.rb (>= 0.5.1, < 0.7.0)
|
26
|
-
msgpack (>=
|
29
|
+
msgpack (>= 1.3.1, < 2.0.0)
|
27
30
|
serverengine (>= 2.0.4, < 3.0.0)
|
28
31
|
sigdump (~> 0.2.2)
|
29
32
|
strptime (>= 0.2.2, < 1.0.0)
|
30
|
-
tzinfo (
|
33
|
+
tzinfo (>= 1.0, < 3.0)
|
31
34
|
tzinfo-data (~> 1.0)
|
32
35
|
yajl-ruby (~> 1.0)
|
33
36
|
hashdiff (0.3.8)
|
34
|
-
http (
|
37
|
+
http (4.3.0)
|
35
38
|
addressable (~> 2.3)
|
36
39
|
http-cookie (~> 1.0)
|
37
|
-
http-form_data (~> 2.
|
38
|
-
|
40
|
+
http-form_data (~> 2.2)
|
41
|
+
http-parser (~> 1.2.0)
|
39
42
|
http-accept (1.7.0)
|
40
43
|
http-cookie (1.0.3)
|
41
44
|
domain_name (~> 0.5)
|
42
|
-
http-form_data (2.
|
45
|
+
http-form_data (2.2.0)
|
46
|
+
http-parser (1.2.1)
|
47
|
+
ffi-compiler (>= 1.0, < 2.0)
|
43
48
|
http_parser.rb (0.6.0)
|
44
|
-
json (2.1
|
45
|
-
kubeclient (4.
|
46
|
-
http (
|
49
|
+
json (2.3.1)
|
50
|
+
kubeclient (4.6.0)
|
51
|
+
http (>= 3.0, < 5.0)
|
47
52
|
recursive-open-struct (~> 1.0, >= 1.0.4)
|
48
53
|
rest-client (~> 2.0)
|
49
|
-
mime-types (3.3)
|
54
|
+
mime-types (3.3.1)
|
50
55
|
mime-types-data (~> 3.2015)
|
51
56
|
mime-types-data (3.2019.1009)
|
52
|
-
msgpack (1.3.
|
53
|
-
multi_json (1.
|
57
|
+
msgpack (1.3.3)
|
58
|
+
multi_json (1.14.1)
|
54
59
|
netrc (0.11.0)
|
55
|
-
oj (3.
|
60
|
+
oj (3.10.2)
|
56
61
|
power_assert (1.1.3)
|
57
62
|
public_suffix (3.0.3)
|
58
|
-
rake (
|
63
|
+
rake (13.0.1)
|
59
64
|
recursive-open-struct (1.1.0)
|
60
65
|
rest-client (2.1.0)
|
61
66
|
http-accept (>= 1.7.0, < 2.0)
|
@@ -63,7 +68,7 @@ GEM
|
|
63
68
|
mime-types (>= 1.16, < 4.0)
|
64
69
|
netrc (~> 0.8)
|
65
70
|
safe_yaml (1.0.4)
|
66
|
-
serverengine (2.
|
71
|
+
serverengine (2.2.1)
|
67
72
|
sigdump (~> 0.2.2)
|
68
73
|
sigdump (0.2.4)
|
69
74
|
simplecov (0.16.1)
|
@@ -74,9 +79,8 @@ GEM
|
|
74
79
|
strptime (0.2.3)
|
75
80
|
test-unit (3.3.0)
|
76
81
|
power_assert
|
77
|
-
|
78
|
-
|
79
|
-
thread_safe (~> 0.1)
|
82
|
+
tzinfo (2.0.1)
|
83
|
+
concurrent-ruby (~> 1.0)
|
80
84
|
tzinfo-data (1.2019.3)
|
81
85
|
tzinfo (>= 1.0.0)
|
82
86
|
unf (0.1.4)
|
@@ -92,12 +96,12 @@ PLATFORMS
|
|
92
96
|
ruby
|
93
97
|
|
94
98
|
DEPENDENCIES
|
95
|
-
bundler (~> 2.0
|
99
|
+
bundler (~> 2.0)
|
96
100
|
fluent-plugin-kubernetes-metrics!
|
97
|
-
rake (~>
|
101
|
+
rake (~> 13.0)
|
98
102
|
simplecov (~> 0.16.1)
|
99
103
|
test-unit (~> 3.3.0)
|
100
104
|
webmock (~> 3.5.1)
|
101
105
|
|
102
106
|
BUNDLED WITH
|
103
|
-
2.
|
107
|
+
2.1.4
|
data/Rakefile
CHANGED
@@ -24,6 +24,6 @@ namespace :docker do
|
|
24
24
|
raise 'Argument `tag` was not provided.' unless args.tag
|
25
25
|
|
26
26
|
cp Dir['pkg/fluent-plugin-kubernetes-metrics-*.gem'], 'docker/'
|
27
|
-
sh "docker build
|
27
|
+
sh "docker build --no-cache --pull --build-arg VERSION=$(cat VERSION) --no-cache -t splunk/connect-for-kubernetes:#{args.tag} ./docker"
|
28
28
|
end
|
29
29
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.4
|
@@ -10,20 +10,22 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.description = 'A fluentd input plugin that collects node and container metrics from a kubernetes cluster.'
|
11
11
|
spec.homepage = 'https://github.com/splunk/fluent-plugin-kubernetes-metrics'
|
12
12
|
spec.license = 'Apache-2.0'
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
|
14
|
+
spec.files = %w[
|
15
|
+
metrics-information.md README.md LICENSE
|
16
|
+
fluent-plugin-kubernetes-metrics.gemspec
|
17
|
+
Gemfile Gemfile.lock
|
18
|
+
Rakefile VERSION
|
19
|
+
] + Dir.glob('lib/**/**').reject(&File.method(:directory?))
|
20
|
+
spec.test_files = Dir.glob('test/**/**.rb')
|
19
21
|
spec.require_paths = ['lib']
|
20
|
-
spec.add_development_dependency 'bundler', '~> 2.0
|
21
|
-
spec.add_development_dependency 'rake', '~>
|
22
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
23
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
22
24
|
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
23
25
|
spec.add_development_dependency 'test-unit', '~> 3.3.0'
|
24
26
|
spec.add_development_dependency 'webmock', '~> 3.5.1'
|
25
|
-
spec.add_runtime_dependency 'fluentd', '~> 1.
|
26
|
-
spec.add_runtime_dependency 'kubeclient', '~> 4.
|
27
|
-
spec.add_runtime_dependency 'multi_json', '~> 1.
|
28
|
-
spec.add_runtime_dependency 'oj', '~> 3.
|
27
|
+
spec.add_runtime_dependency 'fluentd', '~> 1.9.1'
|
28
|
+
spec.add_runtime_dependency 'kubeclient', '~> 4.6.0'
|
29
|
+
spec.add_runtime_dependency 'multi_json', '~> 1.14.1'
|
30
|
+
spec.add_runtime_dependency 'oj', '~> 3.10.2'
|
29
31
|
end
|
@@ -202,11 +202,11 @@ module Fluent
|
|
202
202
|
if env_host && env_port
|
203
203
|
if @use_rest_client_ssl
|
204
204
|
@kubelet_url = "https://#{env_host}:#{env_port}/stats/summary"
|
205
|
-
@kubelet_url_stats = "https://#{env_host}:#{env_port}/stats
|
205
|
+
@kubelet_url_stats = "https://#{env_host}:#{env_port}/stats"
|
206
206
|
@cadvisor_url = "https://#{env_host}:#{env_port}/metrics/cadvisor"
|
207
207
|
else
|
208
208
|
@kubelet_url = "http://#{env_host}:#{env_port}/stats/summary"
|
209
|
-
@kubelet_url_stats = "http://#{env_host}:#{env_port}/stats
|
209
|
+
@kubelet_url_stats = "http://#{env_host}:#{env_port}/stats"
|
210
210
|
@cadvisor_url = "http://#{env_host}:#{env_port}/metrics/cadvisor"
|
211
211
|
end
|
212
212
|
end
|
@@ -275,7 +275,7 @@ module Fluent
|
|
275
275
|
@stats_api =
|
276
276
|
begin
|
277
277
|
@client.discover unless @client.discovered
|
278
|
-
@client.rest_client["/nodes/#{node}:#{@kubelet_port}/proxy/stats
|
278
|
+
@client.rest_client["/nodes/#{node}:#{@kubelet_port}/proxy/stats"].tap do |endpoint|
|
279
279
|
log.info("Use URL #{endpoint.url} for scraping stats metrics")
|
280
280
|
end
|
281
281
|
end
|
data/test/helper.rb
CHANGED
@@ -34,7 +34,7 @@ module PluginTestHelper
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def kubelet_stats_api_url
|
37
|
-
'http://generics-aws-node-name:10255/stats
|
37
|
+
'http://generics-aws-node-name:10255/stats'
|
38
38
|
end
|
39
39
|
|
40
40
|
def kubelet_cadvisor_api_url
|
@@ -113,7 +113,7 @@ module PluginTestHelper
|
|
113
113
|
|
114
114
|
def stub_metrics_proxy_stats
|
115
115
|
open(File.expand_path('stats.json', __dir__)).tap do |f|
|
116
|
-
stub_request(:get, "#{k8s_url}/v1/nodes/generics-aws-node-name:10255/proxy/stats
|
116
|
+
stub_request(:get, "#{k8s_url}/v1/nodes/generics-aws-node-name:10255/proxy/stats")
|
117
117
|
.to_return(body: f.read)
|
118
118
|
end.close
|
119
119
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-kubernetes-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Splunk Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.0
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: simplecov
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,56 +86,56 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
89
|
+
version: 1.9.1
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
96
|
+
version: 1.9.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: kubeclient
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 4.
|
103
|
+
version: 4.6.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 4.
|
110
|
+
version: 4.6.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: multi_json
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.14.1
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.14.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: oj
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 3.
|
131
|
+
version: 3.10.2
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 3.
|
138
|
+
version: 3.10.2
|
139
139
|
description: A fluentd input plugin that collects node and container metrics from
|
140
140
|
a kubernetes cluster.
|
141
141
|
email:
|
@@ -144,47 +144,18 @@ executables: []
|
|
144
144
|
extensions: []
|
145
145
|
extra_rdoc_files: []
|
146
146
|
files:
|
147
|
-
- ".circleci/build_and_push.sh"
|
148
|
-
- ".circleci/build_and_push_to_dockerhub.sh"
|
149
|
-
- ".circleci/build_and_push_to_github_release.sh"
|
150
|
-
- ".circleci/check_version_trigger_release.sh"
|
151
|
-
- ".circleci/config.yml"
|
152
|
-
- ".circleci/install_dep.sh"
|
153
|
-
- ".circleci/push_gem.sh"
|
154
|
-
- ".circleci/push_gems_to_rubygems.sh"
|
155
|
-
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
156
|
-
- ".github/ISSUE_TEMPLATE/enhancement_request.md"
|
157
|
-
- ".github/ISSUE_TEMPLATE/failing_test.md"
|
158
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
159
|
-
- ".gitignore"
|
160
|
-
- CLA.md
|
161
|
-
- CONTRIBUTING.md
|
162
|
-
- CONTRIBUTORS.md
|
163
147
|
- Gemfile
|
164
148
|
- Gemfile.lock
|
165
149
|
- LICENSE
|
166
150
|
- README.md
|
167
151
|
- Rakefile
|
168
152
|
- VERSION
|
169
|
-
- docker/CONTRIBUTING.md
|
170
|
-
- docker/Dockerfile
|
171
|
-
- docker/FLUENTD_HEC_GEM_VERSION
|
172
|
-
- docker/LICENSE
|
173
|
-
- docker/README.md
|
174
|
-
- docker/entrypoint.sh
|
175
|
-
- examples/daemonset.yaml
|
176
153
|
- fluent-plugin-kubernetes-metrics.gemspec
|
177
154
|
- lib/fluent/plugin/in_kubernetes_metrics.rb
|
178
155
|
- metrics-information.md
|
179
|
-
- test/api.json
|
180
156
|
- test/helper.rb
|
181
|
-
- test/metrics_cadvisor.txt
|
182
157
|
- test/plugin/test_in_kubernetes_metrics.rb
|
183
158
|
- test/plugin/test_missing_timestamps.rb
|
184
|
-
- test/stats.json
|
185
|
-
- test/unit.json
|
186
|
-
- test/unit_without_time.json
|
187
|
-
- test/v1.json
|
188
159
|
homepage: https://github.com/splunk/fluent-plugin-kubernetes-metrics
|
189
160
|
licenses:
|
190
161
|
- Apache-2.0
|
@@ -204,17 +175,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
175
|
- !ruby/object:Gem::Version
|
205
176
|
version: '0'
|
206
177
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
178
|
+
rubygems_version: 3.1.1
|
208
179
|
signing_key:
|
209
180
|
specification_version: 4
|
210
181
|
summary: A fluentd input plugin that collects kubernetes cluster metrics.
|
211
182
|
test_files:
|
212
|
-
- test/api.json
|
213
183
|
- test/helper.rb
|
214
|
-
- test/metrics_cadvisor.txt
|
215
|
-
- test/plugin/test_in_kubernetes_metrics.rb
|
216
184
|
- test/plugin/test_missing_timestamps.rb
|
217
|
-
- test/
|
218
|
-
- test/unit.json
|
219
|
-
- test/unit_without_time.json
|
220
|
-
- test/v1.json
|
185
|
+
- test/plugin/test_in_kubernetes_metrics.rb
|
data/.circleci/build_and_push.sh
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -e
|
3
|
-
FLUENTD_HEC_GEM_VERSION=`cat docker/FLUENTD_HEC_GEM_VERSION`
|
4
|
-
aws ecr get-login --region $AWS_REGION --no-include-email | bash
|
5
|
-
echo "Building docker image..."
|
6
|
-
cp /tmp/pkg/fluent-plugin-kubernetes-metrics-*.gem docker
|
7
|
-
docker build --build-arg VERSION=$FLUENTD_HEC_GEM_VERSION --no-cache -t splunk/fluent-plugin-kubernetes-metrics:metrics ./docker
|
8
|
-
docker tag splunk/fluent-plugin-kubernetes-metrics:metrics $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/k8s-ci-metrics:latest
|
9
|
-
echo "Push docker image to ecr..."
|
10
|
-
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/k8s-ci-metrics:latest | awk 'END{print}'
|
11
|
-
echo "Docker image pushed successfully."
|
@@ -1,12 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -e
|
3
|
-
FLUENTD_HEC_GEM_VERSION=`cat docker/FLUENTD_HEC_GEM_VERSION`
|
4
|
-
echo "Building docker image..."
|
5
|
-
cp /tmp/pkg/fluent-plugin-kubernetes-metrics-*.gem docker
|
6
|
-
VERSION=`cat VERSION`
|
7
|
-
docker build --build-arg VERSION=$FLUENTD_HEC_GEM_VERSION --no-cache -t splunk/fluent-plugin-kubernetes-metrics:ci ./docker
|
8
|
-
docker tag splunk/fluent-plugin-kubernetes-metrics:ci splunk/${DOCKERHUB_REPO_NAME}:${VERSION}
|
9
|
-
echo "Push docker image to splunk dockerhub..."
|
10
|
-
docker login --username=$DOCKERHUB_ACCOUNT_ID --password=$DOCKERHUB_ACCOUNT_PASS
|
11
|
-
docker push splunk/${DOCKERHUB_REPO_NAME}:${VERSION} | awk 'END{print}'
|
12
|
-
echo "Docker image pushed successfully to docker-hub."
|
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -e
|
3
|
-
wget https://github.com/tcnksm/ghr/releases/download/v0.12.0/ghr_v0.12.0_linux_amd64.tar.gz
|
4
|
-
tar -xzvf ghr_v0.12.0_linux_amd64.tar.gz
|
5
|
-
sudo chmod +x ghr_v0.12.0_linux_amd64
|
6
|
-
sudo mv ghr_v0.12.0_linux_amd64/ghr /usr/local/bin/ghr
|
7
|
-
|
8
|
-
VERSION=`cat VERSION`
|
9
|
-
echo "Pushing SCK release to github releases...${VERSION}"
|
10
|
-
|
11
|
-
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -n "${RELEASE_TITLE}" -b "${RELEASE_BODY}" -draft ${VERSION} /tmp/pkg/
|
@@ -1,26 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -e
|
3
|
-
|
4
|
-
#!/usr/bin/env bash
|
5
|
-
LATEST_COMMIT=$(git rev-parse HEAD)
|
6
|
-
VERSION_COMMIT=$(git log -1 --format=format:%H VERSION)
|
7
|
-
if [ $VERSION_COMMIT = $LATEST_COMMIT ];
|
8
|
-
then
|
9
|
-
if [ -s VERSION ] # Check if content is empty
|
10
|
-
then
|
11
|
-
VERSION=`cat VERSION`
|
12
|
-
echo "VERSION is changed to $VERSION"
|
13
|
-
else
|
14
|
-
echo "[ERROR] VERSION file is empty."
|
15
|
-
exit 1
|
16
|
-
fi
|
17
|
-
git config user.email "splunk-oss-admin@splunk.com"
|
18
|
-
git config user.name "splunk-oss-admin"
|
19
|
-
git checkout develop
|
20
|
-
git pull origin develop
|
21
|
-
git checkout -b release/$VERSION origin/develop
|
22
|
-
git push https://$RELEASE_GITHUB_USER:$RELEASE_GITHUB_PASS@github.com/splunk/fluent-plugin-kubernetes-metrics.git release/$VERSION
|
23
|
-
git checkout master
|
24
|
-
git merge --no-edit release/$VERSION
|
25
|
-
git push https://$RELEASE_GITHUB_USER:$RELEASE_GITHUB_PASS@github.com/splunk/fluent-plugin-kubernetes-metrics.git master
|
26
|
-
fi
|