kuberun 0.1.1 → 0.1.2

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: fca4d9708c1d5a9a9afa70d9983940d31f8dfebb6900c5f570c4add622dac72f
4
- data.tar.gz: 836812210b8df17491153f82c7d3feba0ac2b6067fe2bea92bb8a8af83380f6a
3
+ metadata.gz: 3eaad475cc31f8c5b90c13774b5c19309c7ccf357e1eb73015329bd2439c22fb
4
+ data.tar.gz: 7efab90cbd8f29e62d285aba23677b2ffef73328ff11ce688e690a960d1a2b02
5
5
  SHA512:
6
- metadata.gz: f77eda69cc9423990517a5810ec17a6fa7465e12a31d40a049c06a6c196273b3673df6ca87c715c5dae3dc5187ce8608e55084f319a0036ed149b2b95330780d
7
- data.tar.gz: 2e553ff1da4812949e6ab878b5925a36aa34436784f4208194dec0279692e09ac333c8f1b4d0b726d80dbf3355d2692ed27f48e6c1b5af5a8a7e932ad1d4e21a
6
+ metadata.gz: 980ff379a62ade541a7d9c2818c1142a816cb29b21a43f7cac1b04aae9e2e0513bbec07e3a5cd3c7fcd598ad379e63d7dc419036b20e1e7051a7d1099ebf9d32
7
+ data.tar.gz: 491912d32f17bd302b0ab8a2676679b3186f4d95fa26fd1d4af1988004290777f47c71c679a6d33e3349e004094aedf91d03c8ce696b217dedca77374e82d877
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kuberun (0.1.0)
4
+ kuberun (0.1.2)
5
5
  pastel (~> 0.7.2)
6
6
  thor (~> 0.20.0)
7
7
  tty-color (~> 0.4.2)
@@ -71,7 +71,7 @@ GEM
71
71
  timers (4.1.2)
72
72
  hitimes
73
73
  tty-color (0.4.3)
74
- tty-command (0.8.1)
74
+ tty-command (0.8.2)
75
75
  pastel (~> 0.7.0)
76
76
  tty-config (0.2.0)
77
77
  tty-cursor (0.5.0)
@@ -73,9 +73,15 @@ module Kuberun
73
73
  'kuberun-source' => @deployment_name,
74
74
  }
75
75
 
76
- pod_template['spec']['containers'][0].delete('livenessProbe')
77
- pod_template['spec']['containers'][0].delete('readinessProbe')
76
+ pod_template['spec']['containers'].each do |container|
77
+ container.delete('livenessProbe')
78
+ container.delete('readinessProbe')
79
+ container['command'] = %w[/bin/sh -c --]
80
+ container['args'] = ['while true; do sleep 1000; done']
81
+ end
82
+
78
83
  pod_template['spec'].delete('affinity')
84
+ pod_template['spec']['terminationGracePeriodSeconds'] = 0
79
85
  end
80
86
 
81
87
  def wait_while
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kuberun
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuberun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kruczjak
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-11 00:00:00.000000000 Z
11
+ date: 2018-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pastel