vidar 1.5.4 → 1.6.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 +1 -1
- data/Gemfile.lock +5 -5
- data/lib/vidar/cli.rb +8 -2
- data/lib/vidar/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24308079faca44676b4766b065eea95db5bbb05634f4a26f289e140ce9fdd3ab
|
|
4
|
+
data.tar.gz: 33450f66da00a4eee7ee189ced7e6f17db5833ac8a1ae67d1e8e32f0f2a5a25f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c581da30ad838b41f2279cb67b7fe5067e072a4819ac4c411337e424b37c2d4780fab3eb347539841c4c49206e8842b9348bf72135e6ca507db670da628d83a
|
|
7
|
+
data.tar.gz: 1b5890bce77fad3dc35ef4832e485971f7341884a1268589ab02af4361cf9acda87ec8c36bcb4b90d3e3d9034f206c158bf6a1eb37d16058c6824bec73c66798
|
data/.bundler-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.3.
|
|
1
|
+
2.3.26
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
vidar (1.
|
|
4
|
+
vidar (1.6.0)
|
|
5
5
|
colorize
|
|
6
6
|
faraday
|
|
7
7
|
thor (~> 1.0)
|
|
@@ -23,10 +23,10 @@ GEM
|
|
|
23
23
|
ruby2_keywords (>= 0.0.4)
|
|
24
24
|
faraday-net_http (3.0.2)
|
|
25
25
|
hashdiff (1.0.1)
|
|
26
|
-
json (2.6.
|
|
26
|
+
json (2.6.3)
|
|
27
27
|
method_source (1.0.0)
|
|
28
28
|
parallel (1.22.1)
|
|
29
|
-
parser (3.1.
|
|
29
|
+
parser (3.1.3.0)
|
|
30
30
|
ast (~> 2.4.1)
|
|
31
31
|
pry (0.14.1)
|
|
32
32
|
coderay (~> 1.1)
|
|
@@ -59,7 +59,7 @@ GEM
|
|
|
59
59
|
rubocop-ast (>= 1.23.0, < 2.0)
|
|
60
60
|
ruby-progressbar (~> 1.7)
|
|
61
61
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
62
|
-
rubocop-ast (1.
|
|
62
|
+
rubocop-ast (1.24.0)
|
|
63
63
|
parser (>= 3.1.1.0)
|
|
64
64
|
rubocop-rake (0.6.0)
|
|
65
65
|
rubocop (~> 1.0)
|
|
@@ -90,4 +90,4 @@ DEPENDENCIES
|
|
|
90
90
|
webmock
|
|
91
91
|
|
|
92
92
|
BUNDLED WITH
|
|
93
|
-
2.3.
|
|
93
|
+
2.3.26
|
data/lib/vidar/cli.rb
CHANGED
|
@@ -66,6 +66,9 @@ module Vidar
|
|
|
66
66
|
desc "deploy", "Perform k8s deployment with deploy hook"
|
|
67
67
|
method_option :revision, required: false
|
|
68
68
|
method_option :kubectl_context, required: false
|
|
69
|
+
method_option :destination, required: false, default: "deployments,cronjobs"
|
|
70
|
+
method_option :container, required: false, default: "*"
|
|
71
|
+
method_option :all, required: false, type: :boolean, default: true
|
|
69
72
|
def deploy
|
|
70
73
|
revision = options[:revision] || Config.get!(:revision)
|
|
71
74
|
kubectl_context = options[:kubectl_context] || Config.get!(:kubectl_context)
|
|
@@ -102,8 +105,11 @@ module Vidar
|
|
|
102
105
|
exit(1)
|
|
103
106
|
end
|
|
104
107
|
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
destination = options[:destination]
|
|
109
|
+
container = options[:container]
|
|
110
|
+
all = options[:all]
|
|
111
|
+
Log.info "Set kubectl image for #{all ? 'all ' : ''}#{destination} container=#{container}..."
|
|
112
|
+
Run.kubectl "set image #{destination} #{container}=#{Config.get!(:image)}:#{revision} #{all ? '--all' : ''}"
|
|
107
113
|
end
|
|
108
114
|
|
|
109
115
|
desc "release", "Build and publish docker images"
|
data/lib/vidar/version.rb
CHANGED
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
|
+
version: 1.6.0
|
|
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: 2022-
|
|
12
|
+
date: 2022-12-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: colorize
|
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
243
243
|
- !ruby/object:Gem::Version
|
|
244
244
|
version: '0'
|
|
245
245
|
requirements: []
|
|
246
|
-
rubygems_version: 3.3.
|
|
246
|
+
rubygems_version: 3.3.26
|
|
247
247
|
signing_key:
|
|
248
248
|
specification_version: 4
|
|
249
249
|
summary: K8s deployment tools based on thor
|