kubernetes-deploy 0.12.0 → 0.12.1
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/.gitignore +3 -0
- data/Gemfile +3 -1
- data/dev/flamegraph-from-tests +35 -0
- data/lib/kubernetes-deploy/kubernetes_resource/daemon_set.rb +1 -1
- data/lib/kubernetes-deploy/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c20a5acd35ec91b8e4b2512a82b2d02b686de5a2
|
|
4
|
+
data.tar.gz: 4a19d08b989731002c6b6d18b1ecb428a70a61c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 330f996992f1fd338f7d4723804a1b31c1a07c08c784606a787d6f989cae2f2b0205a067bbef0cf6a7f006d217b7c4b07d0901b685d99e746573b23bda39d39f
|
|
7
|
+
data.tar.gz: 7a9a2118a699b2ea430b146ad545bf091284a0af36a1b6c1bb32db52cab8c322e0db36933f5a88fb6e9168b8bcb6254eaf7f273e0099ad352fa5277312a7240b
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
SVG_FILENAME="dev/flamegraph.svg"
|
|
3
|
+
PROFILE_FILENAME="dev/profile"
|
|
4
|
+
FLAMEGRAPH_PL="dev/flamegraph.pl"
|
|
5
|
+
|
|
6
|
+
if [[ -z $1 ]]; then
|
|
7
|
+
echo "Usage: `basename "$0"` TEST_NAME_OR_REGEX"
|
|
8
|
+
exit 1
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
if ! [[ -s $FLAMEGRAPH_PL ]]; then
|
|
12
|
+
echo "Downloading flamegraph.pl"
|
|
13
|
+
curl -Lo $FLAMEGRAPH_PL https://raw.githubusercontent.com/brendangregg/FlameGraph/master/flamegraph.pl
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [[ -f $SVG_FILENAME ]]; then
|
|
17
|
+
rm $SVG_FILENAME
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
if [[ -f $PROFILE_FILENAME ]]; then
|
|
21
|
+
rm $PROFILE_FILENAME
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
echo "Running test(s) with profiling"
|
|
25
|
+
PROFILE=1 bundle exec ruby -I test test/integration/kubernetes_deploy_test.rb -n /$1/ > /dev/null
|
|
26
|
+
|
|
27
|
+
echo "Processing profile"
|
|
28
|
+
cat $PROFILE_FILENAME | perl -w $FLAMEGRAPH_PL --countname=ms --width=1500 --title=$1 > $SVG_FILENAME
|
|
29
|
+
|
|
30
|
+
if [[ -f $SVG_FILENAME ]]; then
|
|
31
|
+
echo "Done. Opening ${SVG_FILENAME}"
|
|
32
|
+
open $SVG_FILENAME
|
|
33
|
+
else
|
|
34
|
+
echo "Done, but ${SVG_FILENAME} does not exist. Something went wrong."
|
|
35
|
+
fi
|
|
@@ -77,7 +77,7 @@ module KubernetesDeploy
|
|
|
77
77
|
owners.any? { |ref| ref["uid"] == ds_data["metadata"]["uid"] } &&
|
|
78
78
|
pod["metadata"]["labels"]["pod-template-generation"].to_i == template_generation.to_i
|
|
79
79
|
end
|
|
80
|
-
return unless latest_pods.present?
|
|
80
|
+
return [] unless latest_pods.present?
|
|
81
81
|
|
|
82
82
|
latest_pods.each_with_object([]) do |pod_data, relevant_pods|
|
|
83
83
|
pod = Pod.new(
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kubernetes-deploy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Katrina Verey
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-08-
|
|
12
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -197,6 +197,7 @@ files:
|
|
|
197
197
|
- Rakefile
|
|
198
198
|
- bin/ci
|
|
199
199
|
- bin/setup
|
|
200
|
+
- dev/flamegraph-from-tests
|
|
200
201
|
- exe/kubernetes-deploy
|
|
201
202
|
- exe/kubernetes-restart
|
|
202
203
|
- exe/kubernetes-run
|