ufo 6.0.6 → 6.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/ufo/booter.rb +1 -1
- data/lib/ufo/cfn/stack/builder/resources/scaling/target.rb +2 -2
- data/lib/ufo/cli/scale.rb +5 -2
- data/lib/ufo/config.rb +1 -1
- data/lib/ufo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c4e6b0091848fd532fead2674d45a37691cd6e7305beee4bfcf9c2d3fad3ad7
|
4
|
+
data.tar.gz: 0506141a6987010eac49ae0e940790de1790914f719e3459b87f45bba3117d56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdd3f4a7ae8a6c258f21e88b791ad8c0afe23fa000c7c891441042dcad1a5d0f53c1e331c3090ace785513e91e7e1ddf323b4e49b65cc6f8598a54175c4d55be
|
7
|
+
data.tar.gz: f8b7ed0ec7b0f2f85a7c47579b7800b406c9116e58fbb1dec603aec4d4bc0862de4d6e705433a41744b9d83918c19abc428bb15405559ab898110ea3273959cf
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [6.0.9] - 2022-03-10
|
7
|
+
- fix config.autoscaling.manual_changes.warning cli help hint
|
8
|
+
|
9
|
+
## [6.0.8] - 2022-03-10
|
10
|
+
- [#135](https://github.com/tongueroo/ufo/pull/135) improve .ufo/config/boot.rb location
|
11
|
+
- change default config.ship.docker.quiet to false
|
12
|
+
|
13
|
+
## [6.0.7] - 2022-03-07
|
14
|
+
- fix autoscaling.manual_changes.retain check
|
15
|
+
- improve Configured autoscaling message
|
16
|
+
|
6
17
|
## [6.0.6] - 2022-03-07
|
7
18
|
- [#134](https://github.com/tongueroo/ufo/pull/134) config.autoscaling.manual_changes.retain support
|
8
19
|
- change default `elb.healthy_threshold_count = 3`
|
data/lib/ufo/booter.rb
CHANGED
@@ -21,12 +21,12 @@ module Ufo::Cfn::Stack::Builder::Resources::Scaling
|
|
21
21
|
|
22
22
|
private
|
23
23
|
def min_capacity
|
24
|
-
return autoscaling.min_capacity if vars[:new_stack]
|
24
|
+
return autoscaling.min_capacity if vars[:new_stack] || !autoscaling.manual_changes.retain
|
25
25
|
scalable_target ? scalable_target.min_capacity : autoscaling.min_capacity
|
26
26
|
end
|
27
27
|
|
28
28
|
def max_capacity
|
29
|
-
return autoscaling.max_capacity if vars[:new_stack]
|
29
|
+
return autoscaling.max_capacity if vars[:new_stack] || !autoscaling.manual_changes.retain
|
30
30
|
scalable_target ? scalable_target.max_capacity : autoscaling.max_capacity
|
31
31
|
end
|
32
32
|
|
data/lib/ufo/cli/scale.rb
CHANGED
@@ -46,7 +46,10 @@ class Ufo::CLI
|
|
46
46
|
r.logical_resource_id == "ScalingTarget"
|
47
47
|
end
|
48
48
|
register_scalable_target(scalable_target)
|
49
|
-
|
49
|
+
to = []
|
50
|
+
to << "min: #{@min}" if @min
|
51
|
+
to << "max: #{@max}" if @max
|
52
|
+
logger.info "Configured autoscaling to #{to.join(' ')}"
|
50
53
|
end
|
51
54
|
|
52
55
|
def register_scalable_target(scalable_target)
|
@@ -73,7 +76,7 @@ class Ufo::CLI
|
|
73
76
|
|
74
77
|
You can turn off this warning with
|
75
78
|
|
76
|
-
config.autoscaling.warning = false
|
79
|
+
config.autoscaling.manual_changes.warning = false
|
77
80
|
|
78
81
|
Or you can use the
|
79
82
|
|
data/lib/ufo/config.rb
CHANGED
@@ -111,7 +111,7 @@ module Ufo
|
|
111
111
|
|
112
112
|
config.ship = ActiveSupport::OrderedOptions.new
|
113
113
|
config.ship.docker = ActiveSupport::OrderedOptions.new
|
114
|
-
config.ship.docker.quiet =
|
114
|
+
config.ship.docker.quiet = false # only affects ufo ship docker commands output
|
115
115
|
|
116
116
|
config.state = ActiveSupport::OrderedOptions.new
|
117
117
|
config.state.reminder = true
|
data/lib/ufo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ufo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-logs
|