vidar 1.13.4 → 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 +4 -4
- data/.bundler-version +2 -1
- data/.github/PULL_REQUEST_TEMPLATE.md +2 -2
- data/.github/workflows/auto-approve.yml +1 -1
- data/.github/workflows/auto-merge.yml +13 -1
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +50 -44
- data/lib/vidar/cli.rb +9 -7
- data/lib/vidar/deploy_status.rb +1 -1
- data/lib/vidar/k8s/pod_set.rb +4 -0
- data/lib/vidar/version.rb +1 -1
- data/vidar.gemspec +1 -1
- metadata +4 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c01018404cc849be395df92d01c21d2de70673edc6ae4d58a6283e1b8bf6987
|
4
|
+
data.tar.gz: f341847d26d3a47ea72247259a00285d6642f09fcdb82a637eed791562909937
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a80eb75d78c8686764010f4f224941355041ac51211efeaf9d75772f234d818623e0aa41623821ca77c76df8300ce984c96ae3323f8dc26bb3d3bad3d76d6ed
|
7
|
+
data.tar.gz: c03c0acb76ec876031f094819af6c13a70f0e601087df1c065c734811ca102cbd366b06763beddeec0e8330398a8d0357ac76a94d83e86b9d07d434f6f108c92
|
data/.bundler-version
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
2.
|
1
|
+
2.6.9
|
2
|
+
|
@@ -9,6 +9,6 @@ jobs:
|
|
9
9
|
runs-on: ubuntu-latest
|
10
10
|
steps:
|
11
11
|
- uses: hmarr/auto-approve-action@v3
|
12
|
-
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(github.event.pull_request.labels.*.name, 'HOTFIX-AUTO-APPROVE') || contains(github.event.pull_request.labels.*.name, 'dependencies')
|
12
|
+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(github.event.pull_request.labels.*.name, 'HOTFIX-AUTO-APPROVE') || contains(github.event.pull_request.labels.*.name, 'self-approve') || contains(github.event.pull_request.labels.*.name, 'dependencies')
|
13
13
|
with:
|
14
14
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
@@ -1,5 +1,8 @@
|
|
1
1
|
name: automerge
|
2
2
|
on:
|
3
|
+
pull_request_target:
|
4
|
+
types:
|
5
|
+
- labeled
|
3
6
|
pull_request_review:
|
4
7
|
types:
|
5
8
|
- submitted
|
@@ -12,8 +15,17 @@ jobs:
|
|
12
15
|
runs-on: ubuntu-latest
|
13
16
|
steps:
|
14
17
|
- name: automerge
|
15
|
-
uses: pascalgn/automerge-action@v0.16.
|
18
|
+
uses: pascalgn/automerge-action@v0.16.4
|
19
|
+
env:
|
20
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
21
|
+
MERGE_METHOD: squash
|
22
|
+
MERGE_DELETE_BRANCH: true
|
23
|
+
MERGE_LABELS: "automerge,!automerge blocked"
|
24
|
+
- name: automerge-dependencies
|
25
|
+
uses: pascalgn/automerge-action@v0.16.4
|
16
26
|
env:
|
17
27
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
18
28
|
MERGE_METHOD: squash
|
19
29
|
MERGE_DELETE_BRANCH: true
|
30
|
+
MERGE_LABELS: "dependencies,!automerge blocked"
|
31
|
+
MERGE_REMOVE_LABELS: ""
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
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
|
8
|
+
|
9
|
+
Ruby 3.4 support. Drop ruby 3.2 support.
|
10
|
+
|
3
11
|
## 1.13.0 - 2024-07-23
|
4
12
|
|
5
13
|
Make docker compose command configurable and use `docker compose` instead `docker-compose` by default
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vidar (1.
|
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.
|
14
|
+
ast (2.4.3)
|
15
15
|
awesome_print (1.9.2)
|
16
|
-
bigdecimal (3.
|
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.
|
23
|
-
faraday (2.
|
24
|
-
faraday-net_http (>= 2.0, < 3.
|
22
|
+
diff-lcs (1.6.2)
|
23
|
+
faraday (2.13.1)
|
24
|
+
faraday-net_http (>= 2.0, < 3.5)
|
25
|
+
json
|
25
26
|
logger
|
26
|
-
faraday-net_http (3.
|
27
|
-
net-http
|
28
|
-
hashdiff (1.
|
29
|
-
json (2.
|
30
|
-
language_server-protocol (3.17.0.
|
31
|
-
|
27
|
+
faraday-net_http (3.4.1)
|
28
|
+
net-http (>= 0.5.0)
|
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)
|
32
34
|
method_source (1.1.0)
|
33
|
-
net-http (0.
|
35
|
+
net-http (0.6.0)
|
34
36
|
uri
|
35
|
-
parallel (1.
|
36
|
-
parser (3.3.
|
37
|
+
parallel (1.27.0)
|
38
|
+
parser (3.3.8.0)
|
37
39
|
ast (~> 2.4.1)
|
38
40
|
racc
|
39
|
-
|
41
|
+
prism (1.4.0)
|
42
|
+
pry (0.15.2)
|
40
43
|
coderay (~> 1.1)
|
41
44
|
method_source (~> 1.0)
|
42
|
-
public_suffix (6.0.
|
45
|
+
public_suffix (6.0.2)
|
43
46
|
racc (1.8.1)
|
44
47
|
rainbow (3.1.1)
|
45
|
-
rake (13.
|
46
|
-
regexp_parser (2.
|
47
|
-
rexml (3.
|
48
|
-
|
49
|
-
rspec (3.13.0)
|
48
|
+
rake (13.3.0)
|
49
|
+
regexp_parser (2.10.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.
|
55
|
+
rspec-core (3.13.4)
|
54
56
|
rspec-support (~> 3.13.0)
|
55
|
-
rspec-expectations (3.13.
|
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.
|
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.
|
62
|
-
rubocop (1.
|
63
|
+
rspec-support (3.13.4)
|
64
|
+
rubocop (1.77.0)
|
63
65
|
json (~> 2.3)
|
64
|
-
language_server-protocol (
|
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
|
-
regexp_parser (>= 2.
|
69
|
-
|
70
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
71
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
72
|
+
rubocop-ast (>= 1.45.1, < 2.0)
|
71
73
|
ruby-progressbar (~> 1.7)
|
72
|
-
unicode-display_width (>= 2.4.0, <
|
73
|
-
rubocop-ast (1.
|
74
|
-
parser (>= 3.3.
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
rubocop (
|
74
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
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)
|
79
84
|
ruby-progressbar (1.13.0)
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
+
thor (1.3.2)
|
86
|
+
unicode-display_width (3.1.4)
|
87
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
88
|
+
unicode-emoji (4.0.4)
|
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)
|
@@ -102,4 +108,4 @@ DEPENDENCIES
|
|
102
108
|
webmock
|
103
109
|
|
104
110
|
BUNDLED WITH
|
105
|
-
2.
|
111
|
+
2.6.3
|
data/lib/vidar/cli.rb
CHANGED
@@ -24,12 +24,14 @@ module Vidar
|
|
24
24
|
Log.info "Pulling #{Config.get!(:image)} tags"
|
25
25
|
Run.docker "pull #{Config.get!(:image)}:#{Config.get!(:base_stage_name)}-#{Config.get!(:current_branch)} 2> /dev/null || true"
|
26
26
|
|
27
|
-
|
27
|
+
image_names = `docker images --format "{{.Repository}}:{{.Tag}}"`.split("\n")
|
28
28
|
base_image = "#{Config.get!(:image)}:#{Config.get!(:base_stage_name)}-#{Config.get!(:default_branch)}"
|
29
|
-
Run.docker "pull #{base_image} 2> /dev/null || true" unless
|
29
|
+
Run.docker "pull #{base_image} 2> /dev/null || true" unless image_names.include?(base_image)
|
30
30
|
|
31
31
|
Log.info "Docker images:"
|
32
|
-
|
32
|
+
image_names.each do |image_name|
|
33
|
+
puts image_name
|
34
|
+
end
|
33
35
|
end
|
34
36
|
|
35
37
|
desc "build_and_cache_base", "Build and caches base stage"
|
@@ -126,8 +128,8 @@ module Vidar
|
|
126
128
|
destination = options[:destination]
|
127
129
|
container = options[:container]
|
128
130
|
all = options[:all]
|
129
|
-
Log.info "Set kubectl image for #{
|
130
|
-
Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{
|
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}"
|
131
133
|
end
|
132
134
|
|
133
135
|
desc "set_image", "Set image for k8s deployment"
|
@@ -144,8 +146,8 @@ module Vidar
|
|
144
146
|
destination = options[:destination]
|
145
147
|
container = options[:container]
|
146
148
|
all = options[:all]
|
147
|
-
Log.info "Set kubectl image for #{
|
148
|
-
Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{
|
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}"
|
149
151
|
end
|
150
152
|
|
151
153
|
desc "release", "Build and publish docker images"
|
data/lib/vidar/deploy_status.rb
CHANGED
data/lib/vidar/k8s/pod_set.rb
CHANGED
data/lib/vidar/version.rb
CHANGED
data/vidar.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.metadata['changelog_uri'] = 'https://github.com/RenoFi/vidar/blob/master/CHANGELOG.md'
|
18
18
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
19
19
|
|
20
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 3.
|
20
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 3.3.0')
|
21
21
|
|
22
22
|
spec.files = Dir.chdir(__dir__) do
|
23
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
- RenoFi Engineering Team
|
9
|
-
autorequire:
|
10
9
|
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: colorize
|
@@ -53,7 +52,6 @@ dependencies:
|
|
53
52
|
- - "~>"
|
54
53
|
- !ruby/object:Gem::Version
|
55
54
|
version: '1.0'
|
56
|
-
description:
|
57
55
|
email:
|
58
56
|
- knapo@knapo.net
|
59
57
|
- engineering@renofi.com
|
@@ -104,7 +102,6 @@ metadata:
|
|
104
102
|
source_code_uri: https://github.com/RenoFi/vidar
|
105
103
|
changelog_uri: https://github.com/RenoFi/vidar/blob/master/CHANGELOG.md
|
106
104
|
rubygems_mfa_required: 'true'
|
107
|
-
post_install_message:
|
108
105
|
rdoc_options: []
|
109
106
|
require_paths:
|
110
107
|
- lib
|
@@ -112,15 +109,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
109
|
requirements:
|
113
110
|
- - ">="
|
114
111
|
- !ruby/object:Gem::Version
|
115
|
-
version: 3.
|
112
|
+
version: 3.3.0
|
116
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
114
|
requirements:
|
118
115
|
- - ">="
|
119
116
|
- !ruby/object:Gem::Version
|
120
117
|
version: '0'
|
121
118
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
123
|
-
signing_key:
|
119
|
+
rubygems_version: 3.6.9
|
124
120
|
specification_version: 4
|
125
121
|
summary: K8s deployment tools based on thor
|
126
122
|
test_files: []
|