vidar 1.14.0 → 1.15.0

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: 2d0c42b82a92d063338917e37b4753df319ea1ace8151c371e44cd8841e5cb16
4
- data.tar.gz: dc92d552487202142dc02c4d3c9a655e140e6af267d627ddfe0753e7aefe7915
3
+ metadata.gz: 0c01018404cc849be395df92d01c21d2de70673edc6ae4d58a6283e1b8bf6987
4
+ data.tar.gz: f341847d26d3a47ea72247259a00285d6642f09fcdb82a637eed791562909937
5
5
  SHA512:
6
- metadata.gz: 6b28a76a1d18c583d85725374c47bd90bfbf562ca96960d2886feab30eb14a99c92a6b4b00ddd1f65149608ee3f3c23a1e3e7593fe46e37c844e5e47ea70fc32
7
- data.tar.gz: 0b62e5a6915e305b9acdfe6b40268c75fd6fd7fd213e5ffe62a331044611c6090e5bcf274c1a8939e80844e9ff7644edfe65f7e18a1afaeeacc7a048bf58872e
6
+ metadata.gz: 4a80eb75d78c8686764010f4f224941355041ac51211efeaf9d75772f234d818623e0aa41623821ca77c76df8300ce984c96ae3323f8dc26bb3d3bad3d76d6ed
7
+ data.tar.gz: c03c0acb76ec876031f094819af6c13a70f0e601087df1c065c734811ca102cbd366b06763beddeec0e8330398a8d0357ac76a94d83e86b9d07d434f6f108c92
data/.bundler-version CHANGED
@@ -1 +1,2 @@
1
- 2.6.3
1
+ 2.6.9
2
+
@@ -2,5 +2,5 @@
2
2
  <!--- Describe your changes in detail -->
3
3
  <!--- Why is this change required? What problem does it solve? -->
4
4
 
5
- ## Related issue(s) or PR(s)
6
- <!--- GH issue number -->
5
+ ## Related tickets(s), PR(s) or slack message:
6
+ <!--- Ticket/Issue/PR number or URL -->
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 1.14.0 - 2025-04-05
3
+ ## 1.15.0 - 2025-06-23
4
+
5
+ Don't stop watining and mark deployment as failed, when any container is still in a waiting state
6
+
7
+ ## 1.14.0 - 2025-02-05
4
8
 
5
9
  Ruby 3.4 support. Drop ruby 3.2 support.
6
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (1.14.0)
4
+ vidar (1.15.0)
5
5
  colorize
6
6
  faraday
7
7
  thor (~> 1.0)
@@ -11,77 +11,83 @@ GEM
11
11
  specs:
12
12
  addressable (2.8.7)
13
13
  public_suffix (>= 2.0.2, < 7.0)
14
- ast (2.4.2)
14
+ ast (2.4.3)
15
15
  awesome_print (1.9.2)
16
- bigdecimal (3.1.9)
16
+ bigdecimal (3.2.2)
17
17
  coderay (1.1.3)
18
18
  colorize (1.1.0)
19
19
  crack (1.0.0)
20
20
  bigdecimal
21
21
  rexml
22
- diff-lcs (1.5.1)
23
- faraday (2.12.2)
22
+ diff-lcs (1.6.2)
23
+ faraday (2.13.1)
24
24
  faraday-net_http (>= 2.0, < 3.5)
25
25
  json
26
26
  logger
27
- faraday-net_http (3.4.0)
27
+ faraday-net_http (3.4.1)
28
28
  net-http (>= 0.5.0)
29
- hashdiff (1.1.2)
30
- json (2.9.1)
31
- language_server-protocol (3.17.0.4)
32
- logger (1.6.5)
29
+ hashdiff (1.2.0)
30
+ json (2.12.2)
31
+ language_server-protocol (3.17.0.5)
32
+ lint_roller (1.1.0)
33
+ logger (1.7.0)
33
34
  method_source (1.1.0)
34
35
  net-http (0.6.0)
35
36
  uri
36
- parallel (1.26.3)
37
- parser (3.3.7.1)
37
+ parallel (1.27.0)
38
+ parser (3.3.8.0)
38
39
  ast (~> 2.4.1)
39
40
  racc
41
+ prism (1.4.0)
40
42
  pry (0.15.2)
41
43
  coderay (~> 1.1)
42
44
  method_source (~> 1.0)
43
- public_suffix (6.0.1)
45
+ public_suffix (6.0.2)
44
46
  racc (1.8.1)
45
47
  rainbow (3.1.1)
46
- rake (13.2.1)
48
+ rake (13.3.0)
47
49
  regexp_parser (2.10.0)
48
- rexml (3.4.0)
49
- rspec (3.13.0)
50
+ rexml (3.4.1)
51
+ rspec (3.13.1)
50
52
  rspec-core (~> 3.13.0)
51
53
  rspec-expectations (~> 3.13.0)
52
54
  rspec-mocks (~> 3.13.0)
53
- rspec-core (3.13.2)
55
+ rspec-core (3.13.4)
54
56
  rspec-support (~> 3.13.0)
55
- rspec-expectations (3.13.3)
57
+ rspec-expectations (3.13.5)
56
58
  diff-lcs (>= 1.2.0, < 2.0)
57
59
  rspec-support (~> 3.13.0)
58
- rspec-mocks (3.13.2)
60
+ rspec-mocks (3.13.5)
59
61
  diff-lcs (>= 1.2.0, < 2.0)
60
62
  rspec-support (~> 3.13.0)
61
- rspec-support (3.13.2)
62
- rubocop (1.71.2)
63
+ rspec-support (3.13.4)
64
+ rubocop (1.77.0)
63
65
  json (~> 2.3)
64
- language_server-protocol (>= 3.17.0)
66
+ language_server-protocol (~> 3.17.0.2)
67
+ lint_roller (~> 1.1.0)
65
68
  parallel (~> 1.10)
66
69
  parser (>= 3.3.0.2)
67
70
  rainbow (>= 2.2.2, < 4.0)
68
71
  regexp_parser (>= 2.9.3, < 3.0)
69
- rubocop-ast (>= 1.38.0, < 2.0)
72
+ rubocop-ast (>= 1.45.1, < 2.0)
70
73
  ruby-progressbar (~> 1.7)
71
74
  unicode-display_width (>= 2.4.0, < 4.0)
72
- rubocop-ast (1.38.0)
73
- parser (>= 3.3.1.0)
74
- rubocop-rake (0.6.0)
75
- rubocop (~> 1.0)
76
- rubocop-rspec (3.4.0)
77
- rubocop (~> 1.61)
75
+ rubocop-ast (1.45.1)
76
+ parser (>= 3.3.7.2)
77
+ prism (~> 1.4)
78
+ rubocop-rake (0.7.1)
79
+ lint_roller (~> 1.1)
80
+ rubocop (>= 1.72.1)
81
+ rubocop-rspec (3.6.0)
82
+ lint_roller (~> 1.1)
83
+ rubocop (~> 1.72, >= 1.72.1)
78
84
  ruby-progressbar (1.13.0)
79
85
  thor (1.3.2)
80
86
  unicode-display_width (3.1.4)
81
87
  unicode-emoji (~> 4.0, >= 4.0.4)
82
88
  unicode-emoji (4.0.4)
83
- uri (1.0.2)
84
- webmock (3.24.0)
89
+ uri (1.0.3)
90
+ webmock (3.25.1)
85
91
  addressable (>= 2.8.0)
86
92
  crack (>= 0.3.2)
87
93
  hashdiff (>= 0.4.0, < 2.0.0)
data/lib/vidar/cli.rb CHANGED
@@ -128,8 +128,8 @@ module Vidar
128
128
  destination = options[:destination]
129
129
  container = options[:container]
130
130
  all = options[:all]
131
- Log.info "Set kubectl image for #{all ? 'all ' : ''}#{destination} container=#{container}..."
132
- Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{all ? '--all' : ''}"
131
+ Log.info "Set kubectl image for #{'all ' if all}#{destination} container=#{container}..."
132
+ Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{'--all' if all}"
133
133
  end
134
134
 
135
135
  desc "set_image", "Set image for k8s deployment"
@@ -146,8 +146,8 @@ module Vidar
146
146
  destination = options[:destination]
147
147
  container = options[:container]
148
148
  all = options[:all]
149
- Log.info "Set kubectl image for #{all ? 'all ' : ''}#{destination} container=#{container}..."
150
- Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{all ? '--all' : ''}"
149
+ Log.info "Set kubectl image for #{'all ' if all}#{destination} container=#{container}..."
150
+ Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{'--all' if all}"
151
151
  end
152
152
 
153
153
  desc "release", "Build and publish docker images"
@@ -34,7 +34,7 @@ module Vidar
34
34
  until pod_set.deployed?
35
35
  tries += 1
36
36
  sleep(SLEEP)
37
- if tries > max_tries
37
+ if tries > max_tries && !pod_set.waiting?
38
38
  break
39
39
  end
40
40
  end
@@ -10,6 +10,10 @@ module Vidar
10
10
  containers.any?
11
11
  end
12
12
 
13
+ def waiting?
14
+ containers.any?(&:waiting?)
15
+ end
16
+
13
17
  def deployed?
14
18
  if items.empty?
15
19
  Log.error "Could not fetch pod list"
data/lib/vidar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '1.14.0'.freeze
2
+ VERSION = '1.15.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
8
8
  - RenoFi Engineering Team
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-05 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.6.3
119
+ rubygems_version: 3.6.9
120
120
  specification_version: 4
121
121
  summary: K8s deployment tools based on thor
122
122
  test_files: []