vidar 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bundler-version +1 -1
- data/.github/workflows/auto-approve.yml +1 -1
- data/.github/workflows/ci.yml +1 -1
- data/Gemfile.lock +23 -35
- data/README.md +1 -1
- data/lib/vidar/cli.rb +1 -0
- data/lib/vidar/deploy_status.rb +15 -0
- data/lib/vidar/k8s/pod_set.rb +4 -0
- data/lib/vidar/slack_notification.rb +1 -0
- data/lib/vidar/version.rb +1 -1
- data/vidar.gemspec +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c96932c5bdac22862d271b35effda1c137b8217ca1d6f1a5d50f6038afe652c
|
4
|
+
data.tar.gz: dc2c8c2fda51a8c4aa0f923ba68d7c245e7e83c19058fd36b729f439e45ab1c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8d5aaf9e293eafdd64325658dd01a9031da0bf9c61ff6926d4ccb1d8119fb96d84ba8274275f1471a69e9f7472e5510e55995a6aa80c996812af229db77b905
|
7
|
+
data.tar.gz: c9cd0b962a3a6bfea0073ba3b6bd80bf4801227d3cc0d5acf0a221cc3f3fbaa7f9f5efc84a6741c169c50b12dc7fdfc6a3c126bb15b5dc6bf0bbc7971b483cfc
|
data/.bundler-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.5
|
@@ -10,7 +10,7 @@ jobs:
|
|
10
10
|
auto-approve:
|
11
11
|
runs-on: ubuntu-latest
|
12
12
|
steps:
|
13
|
-
- uses: hmarr/auto-approve-action@v2
|
13
|
+
- uses: hmarr/auto-approve-action@v2
|
14
14
|
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
|
15
15
|
with:
|
16
16
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
data/.github/workflows/ci.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vidar (1.4.
|
4
|
+
vidar (1.4.3)
|
5
5
|
colorize
|
6
6
|
faraday
|
7
7
|
thor (~> 1.0)
|
@@ -17,71 +17,55 @@ GEM
|
|
17
17
|
colorize (0.8.1)
|
18
18
|
crack (0.4.5)
|
19
19
|
rexml
|
20
|
-
diff-lcs (1.
|
21
|
-
faraday (1.
|
22
|
-
faraday-
|
23
|
-
faraday-em_synchrony (~> 1.0)
|
24
|
-
faraday-excon (~> 1.1)
|
25
|
-
faraday-httpclient (~> 1.0.1)
|
26
|
-
faraday-net_http (~> 1.0)
|
27
|
-
faraday-net_http_persistent (~> 1.1)
|
28
|
-
faraday-patron (~> 1.0)
|
29
|
-
faraday-rack (~> 1.0)
|
30
|
-
multipart-post (>= 1.2, < 3)
|
20
|
+
diff-lcs (1.5.0)
|
21
|
+
faraday (2.1.0)
|
22
|
+
faraday-net_http (~> 2.0)
|
31
23
|
ruby2_keywords (>= 0.0.4)
|
32
|
-
faraday-
|
33
|
-
faraday-em_synchrony (1.0.0)
|
34
|
-
faraday-excon (1.1.0)
|
35
|
-
faraday-httpclient (1.0.1)
|
36
|
-
faraday-net_http (1.0.1)
|
37
|
-
faraday-net_http_persistent (1.2.0)
|
38
|
-
faraday-patron (1.0.0)
|
39
|
-
faraday-rack (1.0.0)
|
24
|
+
faraday-net_http (2.0.1)
|
40
25
|
hashdiff (1.0.1)
|
41
26
|
method_source (1.0.0)
|
42
|
-
multipart-post (2.1.1)
|
43
27
|
parallel (1.21.0)
|
44
|
-
parser (3.0.
|
28
|
+
parser (3.1.0.0)
|
45
29
|
ast (~> 2.4.1)
|
46
30
|
pry (0.14.1)
|
47
31
|
coderay (~> 1.1)
|
48
32
|
method_source (~> 1.0)
|
49
33
|
public_suffix (4.0.6)
|
50
|
-
rainbow (3.
|
34
|
+
rainbow (3.1.1)
|
51
35
|
rake (13.0.6)
|
52
|
-
regexp_parser (2.
|
36
|
+
regexp_parser (2.2.0)
|
53
37
|
rexml (3.2.5)
|
54
38
|
rspec (3.10.0)
|
55
39
|
rspec-core (~> 3.10.0)
|
56
40
|
rspec-expectations (~> 3.10.0)
|
57
41
|
rspec-mocks (~> 3.10.0)
|
58
|
-
rspec-core (3.10.
|
42
|
+
rspec-core (3.10.2)
|
59
43
|
rspec-support (~> 3.10.0)
|
60
|
-
rspec-expectations (3.10.
|
44
|
+
rspec-expectations (3.10.2)
|
61
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
62
46
|
rspec-support (~> 3.10.0)
|
63
|
-
rspec-mocks (3.10.
|
47
|
+
rspec-mocks (3.10.3)
|
64
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
65
49
|
rspec-support (~> 3.10.0)
|
66
|
-
rspec-support (3.10.
|
67
|
-
rubocop (1.
|
50
|
+
rspec-support (3.10.3)
|
51
|
+
rubocop (1.25.0)
|
68
52
|
parallel (~> 1.10)
|
69
|
-
parser (>= 3.
|
53
|
+
parser (>= 3.1.0.0)
|
70
54
|
rainbow (>= 2.2.2, < 4.0)
|
71
55
|
regexp_parser (>= 1.8, < 3.0)
|
72
56
|
rexml
|
73
|
-
rubocop-ast (>= 1.
|
57
|
+
rubocop-ast (>= 1.15.1, < 2.0)
|
74
58
|
ruby-progressbar (~> 1.7)
|
75
59
|
unicode-display_width (>= 1.4.0, < 3.0)
|
76
|
-
rubocop-ast (1.
|
60
|
+
rubocop-ast (1.15.1)
|
77
61
|
parser (>= 3.0.1.1)
|
78
62
|
rubocop-rake (0.6.0)
|
79
63
|
rubocop (~> 1.0)
|
80
|
-
rubocop-rspec (2.
|
64
|
+
rubocop-rspec (2.8.0)
|
81
65
|
rubocop (~> 1.19)
|
82
66
|
ruby-progressbar (1.11.0)
|
83
67
|
ruby2_keywords (0.0.5)
|
84
|
-
thor (1.1
|
68
|
+
thor (1.2.1)
|
85
69
|
unicode-display_width (2.1.0)
|
86
70
|
webmock (3.14.0)
|
87
71
|
addressable (>= 2.8.0)
|
@@ -89,7 +73,11 @@ GEM
|
|
89
73
|
hashdiff (>= 0.4.0, < 2.0.0)
|
90
74
|
|
91
75
|
PLATFORMS
|
76
|
+
aarch64-linux-musl
|
77
|
+
x86_64-darwin-18
|
78
|
+
x86_64-darwin-19
|
92
79
|
x86_64-darwin-20
|
80
|
+
x86_64-darwin-21
|
93
81
|
x86_64-linux
|
94
82
|
|
95
83
|
DEPENDENCIES
|
@@ -105,4 +93,4 @@ DEPENDENCIES
|
|
105
93
|
webmock
|
106
94
|
|
107
95
|
BUNDLED WITH
|
108
|
-
2.
|
96
|
+
2.3.6
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/vidar.svg)](https://rubygems.org/gems/vidar)
|
2
|
-
[![Build Status](https://
|
2
|
+
[![Build Status](https://github.com/RenoFi/vidar/actions/workflows/ci.yml/badge.svg)](https://github.com/RenoFi/vidar/actions/workflows/ci.yml?query=branch%3Amain)
|
3
3
|
|
4
4
|
# vidar
|
5
5
|
|
data/lib/vidar/cli.rb
CHANGED
@@ -84,6 +84,7 @@ module Vidar
|
|
84
84
|
Run.kubectl "create job deploy-hook --from=#{template_name}"
|
85
85
|
|
86
86
|
deploy_status = Vidar::DeployStatus.new(namespace: Config.get!(:namespace), filter: "deploy-hook")
|
87
|
+
deploy_status.wait_until_up
|
87
88
|
deploy_status.wait_until_completed
|
88
89
|
|
89
90
|
unless deploy_status.success?
|
data/lib/vidar/deploy_status.rb
CHANGED
@@ -12,6 +12,20 @@ module Vidar
|
|
12
12
|
@max_tries = max_tries
|
13
13
|
end
|
14
14
|
|
15
|
+
def wait_until_up
|
16
|
+
tries = 0
|
17
|
+
|
18
|
+
sleep(INITIAL_SLEEP)
|
19
|
+
|
20
|
+
until pod_set.any?
|
21
|
+
tries += 1
|
22
|
+
sleep(SLEEP)
|
23
|
+
if tries > max_tries
|
24
|
+
break
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
15
29
|
def wait_until_completed
|
16
30
|
tries = 0
|
17
31
|
|
@@ -28,6 +42,7 @@ module Vidar
|
|
28
42
|
|
29
43
|
def success?
|
30
44
|
return false unless last_pod_set
|
45
|
+
|
31
46
|
last_pod_set.success?
|
32
47
|
end
|
33
48
|
|
data/lib/vidar/k8s/pod_set.rb
CHANGED
data/lib/vidar/version.rb
CHANGED
data/vidar.gemspec
CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/vidar'
|
16
16
|
spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/vidar'
|
17
17
|
spec.metadata['changelog_uri'] = 'https://github.com/RenoFi/vidar/blob/master/CHANGELOG.md'
|
18
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
18
19
|
|
19
20
|
spec.files = Dir.chdir(__dir__) do
|
20
21
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|
@@ -227,6 +227,7 @@ metadata:
|
|
227
227
|
homepage_uri: https://github.com/RenoFi/vidar
|
228
228
|
source_code_uri: https://github.com/RenoFi/vidar
|
229
229
|
changelog_uri: https://github.com/RenoFi/vidar/blob/master/CHANGELOG.md
|
230
|
+
rubygems_mfa_required: 'true'
|
230
231
|
post_install_message:
|
231
232
|
rdoc_options: []
|
232
233
|
require_paths:
|
@@ -242,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
243
|
- !ruby/object:Gem::Version
|
243
244
|
version: '0'
|
244
245
|
requirements: []
|
245
|
-
rubygems_version: 3.2.
|
246
|
+
rubygems_version: 3.2.32
|
246
247
|
signing_key:
|
247
248
|
specification_version: 4
|
248
249
|
summary: K8s deployment tools based on thor
|