vidar 1.5.4 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c00bab992d33cc5485394ff4942569a73b4b0a8ae6aba4a64d96db922edfa46e
4
- data.tar.gz: bc83c5d33cffae2c695d40e61378b5fb2326a789016a73b80be6df0c10c3177c
3
+ metadata.gz: 24308079faca44676b4766b065eea95db5bbb05634f4a26f289e140ce9fdd3ab
4
+ data.tar.gz: 33450f66da00a4eee7ee189ced7e6f17db5833ac8a1ae67d1e8e32f0f2a5a25f
5
5
  SHA512:
6
- metadata.gz: b3afdc47337321ea2bb3af105de27a5be2bab972e2e81f8c63c47d6deb9c8becbae9e90eba764a905c1262f54e5842269242db011ba5d6c643686627f377ff5c
7
- data.tar.gz: d81b57bc6be8eccb2d370424167655ace1a74fff390bdd391d2ff1ce0527623f001c99b66f266b1319fc109de15e092cb4edd93886fde4c0a15757e37a80442d
6
+ metadata.gz: 6c581da30ad838b41f2279cb67b7fe5067e072a4819ac4c411337e424b37c2d4780fab3eb347539841c4c49206e8842b9348bf72135e6ca507db670da628d83a
7
+ data.tar.gz: 1b5890bce77fad3dc35ef4832e485971f7341884a1268589ab02af4361cf9acda87ec8c36bcb4b90d3e3d9034f206c158bf6a1eb37d16058c6824bec73c66798
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.3.25
1
+ 2.3.26
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (1.5.4)
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.2)
26
+ json (2.6.3)
27
27
  method_source (1.0.0)
28
28
  parallel (1.22.1)
29
- parser (3.1.2.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.23.0)
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.22
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
- Log.info "Set kubectl image..."
106
- Run.kubectl "set image deployments,cronjobs *=#{Config.get!(:image)}:#{revision} --all"
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
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '1.5.4'.freeze
2
+ VERSION = '1.6.0'.freeze
3
3
  end
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.5.4
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-11-22 00:00:00.000000000 Z
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.7
246
+ rubygems_version: 3.3.26
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: K8s deployment tools based on thor