pfab 0.58.2 → 0.58.3

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: 5431534b800da64ae3ef1e1c4a3b26324e5ba535c72ab520eaac2b7f2f31fc61
4
- data.tar.gz: 0dfb207acf2aa57acc1200d41e85d3c624b5ee82c667afb864b3c94561936977
3
+ metadata.gz: 06f9a7ac8980418745259dc8c9e5ecd2f42db533889b16513b61a7e141014730
4
+ data.tar.gz: 4d1f6a6d90830921bcaae288459e2e30c84731b9e3655464e14f0017eae6ecc7
5
5
  SHA512:
6
- metadata.gz: df9d9d0932394fbf2b10a09cba1e27b5cc9b7beb6afc72ec351ac9fb8da65f3b8efed11aa01be27e6ffb6093c6b47dd1cb0b233f558237887eea2c2a1948ccee
7
- data.tar.gz: f9ecf06f3bc8e05a654fa6eeef04185143d855964a570be0dd87b0d1d1d7cef2c38c55af8a67dd74805a0e85dc1247573b75b77efb93ce60677759099400fb48
6
+ metadata.gz: 6355ed8af48159570d12b78aabf37489d18996cdab6d62bd29c4c79a61bf9f2c0e5923704b32b466babfbf3912a52478197d083fc2693743f58e7c851b6458b1
7
+ data.tar.gz: 1bc9950b2904316fd6ebb18416e96e003454b87d733efaeb43fb418906c5b7b9b4b242048a8f22ec28d32861ec62494acc7c9d231dbc5cd484d136527fcbd5f8
data/lib/pfab/cli.rb CHANGED
@@ -65,10 +65,10 @@ module Pfab
65
65
  command :shipit do |c|
66
66
  c.syntax = "pfab shipit"
67
67
  c.summary = "build, generate, apply"
68
- c.option "-t", "--timeout timeout", "timeout for rollout (default 240s)"
68
+ c.option "-t", "--timeout timeout", "timeout for rollout (default 360s)"
69
69
 
70
70
  c.action do |args, options|
71
- options.default :timeout => 240
71
+ options.default :timeout => 360
72
72
  app_name = get_app_name(all: true)
73
73
  puts "Shipping #{app_name}"
74
74
  success = cmd_build
@@ -33,7 +33,7 @@ module Pfab
33
33
  "deployed-name" => @data['deployed_name'],
34
34
  },
35
35
  },
36
- strategy: rolling_update_strategy(),
36
+ strategy: rolling_update_strategy,
37
37
  revisionHistoryLimit: 5,
38
38
  template: {
39
39
  metadata: {
@@ -44,12 +44,12 @@ module Pfab
44
44
  end
45
45
 
46
46
 
47
- def rolling_update_strategy(max_surge=1,max_unavailable=0)
47
+ def rolling_update_strategy
48
48
  {
49
49
  type: "RollingUpdate",
50
50
  rollingUpdate: {
51
- maxSurge: max_surge,
52
- maxUnavailable: max_unavailable,
51
+ maxSurge: get("maxSurge") || 1,
52
+ maxUnavailable: get("maxUnavailable") || 0,
53
53
  }
54
54
  }
55
55
  end
@@ -319,7 +319,7 @@ module Pfab
319
319
  "deployed-name" => @data['deployed_name'],
320
320
  },
321
321
  },
322
- strategy: rolling_update_strategy(),
322
+ strategy: rolling_update_strategy,
323
323
  revisionHistoryLimit: 5,
324
324
  progressDeadlineSeconds: 120,
325
325
  template: {
data/lib/pfab/version.rb CHANGED
@@ -2,7 +2,7 @@ module Pfab
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 58
5
- PATCH = 2
5
+ PATCH = 3
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
data/pfab.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: pfab 0.58.2 ruby lib
5
+ # stub: pfab 0.58.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "pfab".freeze
9
- s.version = "0.58.2"
9
+ s.version = "0.58.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pfab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.58.2
4
+ version: 0.58.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dwyer