vidar 1.4.2 → 1.4.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2221a619a3ec66bc0b9943047ecb39e4976cfd570c495aabe2558daa249d320f
4
- data.tar.gz: df04bae8adbdeedfcac66389265bbd1f6b0e3183224524ffcdd6f167bb7aff7c
3
+ metadata.gz: 3c96932c5bdac22862d271b35effda1c137b8217ca1d6f1a5d50f6038afe652c
4
+ data.tar.gz: dc2c8c2fda51a8c4aa0f923ba68d7c245e7e83c19058fd36b729f439e45ab1c2
5
5
  SHA512:
6
- metadata.gz: b647c0749425f3e3234ebcb4dcb7beb992b6e66980d64e66311115f90ee4234ff518f532cd2b3bb4673f86a9defc5a1a218286b27fdee207f8d6acb4b2116984
7
- data.tar.gz: 052c0c3ddea03b623dd0f0f4b0efbd409c2f254783addff5d43f3b080d270a981ca76d348069c570d7e68e4e059e7635da2c484d4b53f38b455b0a3ec8521d33
6
+ metadata.gz: e8d5aaf9e293eafdd64325658dd01a9031da0bf9c61ff6926d4ccb1d8119fb96d84ba8274275f1471a69e9f7472e5510e55995a6aa80c996812af229db77b905
7
+ data.tar.gz: c9cd0b962a3a6bfea0073ba3b6bd80bf4801227d3cc0d5acf0a221cc3f3fbaa7f9f5efc84a6741c169c50b12dc7fdfc6a3c126bb15b5dc6bf0bbc7971b483cfc
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.2.27
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.0.0
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 }}"
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['2.7', '3.0']
14
+ ruby-version: ['3.0']
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (1.4.2)
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.4.4)
21
- faraday (1.8.0)
22
- faraday-em_http (~> 1.0)
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-em_http (1.0.0)
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.2.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.0.0)
34
+ rainbow (3.1.1)
51
35
  rake (13.0.6)
52
- regexp_parser (2.1.1)
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.1)
42
+ rspec-core (3.10.2)
59
43
  rspec-support (~> 3.10.0)
60
- rspec-expectations (3.10.1)
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.2)
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.2)
67
- rubocop (1.22.0)
50
+ rspec-support (3.10.3)
51
+ rubocop (1.25.0)
68
52
  parallel (~> 1.10)
69
- parser (>= 3.0.0.0)
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.12.0, < 2.0)
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.12.0)
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.5.0)
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.0)
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.2.28
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://travis-ci.org/RenoFi/vidar.svg?branch=master)](https://travis-ci.org/RenoFi/vidar)
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?
@@ -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
 
@@ -6,6 +6,10 @@ module Vidar
6
6
  @filter = filter
7
7
  end
8
8
 
9
+ def any?
10
+ containers.any?
11
+ end
12
+
9
13
  def deployed?
10
14
  if items.empty?
11
15
  Log.error "Could not fetch pod list"
@@ -79,6 +79,7 @@ module Vidar
79
79
 
80
80
  def deploy_link
81
81
  return deploy_name unless deploy_url
82
+
82
83
  "<#{deploy_url}|#{deploy_name}>"
83
84
  end
84
85
 
data/lib/vidar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '1.4.2'.freeze
2
+ VERSION = '1.4.3'.freeze
3
3
  end
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.2
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: 2021-10-07 00:00:00.000000000 Z
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.23
246
+ rubygems_version: 3.2.32
246
247
  signing_key:
247
248
  specification_version: 4
248
249
  summary: K8s deployment tools based on thor