ufo 6.0.6 → 6.0.7
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/CHANGELOG.md +4 -0
- data/lib/ufo/cfn/stack/builder/resources/scaling/target.rb +2 -2
- data/lib/ufo/cli/scale.rb +4 -1
- data/lib/ufo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1d99bfecc9c3cc0dd62ac1e0eef1091d175578cf439138cab340e0ffa877a21
|
|
4
|
+
data.tar.gz: 746c2c8379afa612682c77fe551a1e4b0219a4b75101837410e9a85a5a8a22c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fed912e9ceb5c30b96754185274cf8cf6c25f1f467816677df59665421d717d0e95cf9071ab033f8c03b4abc5011115ccfd15b146afd3700c834e606ba2fb79
|
|
7
|
+
data.tar.gz: f0f7f8944b7922438e1ed9355aa46575e3b2b405580f91f71f4664f80df6736425471c3be5b09d14f6bca5e11d44d0326b551d7086e6b5614618fd3c7b195afc
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.7] - 2022-03-07
|
|
7
|
+
- fix autoscaling.manual_changes.retain check
|
|
8
|
+
- improve Configured autoscaling message
|
|
9
|
+
|
|
6
10
|
## [6.0.6] - 2022-03-07
|
|
7
11
|
- [#134](https://github.com/tongueroo/ufo/pull/134) config.autoscaling.manual_changes.retain support
|
|
8
12
|
- change default `elb.healthy_threshold_count = 3`
|
|
@@ -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)
|
data/lib/ufo/version.rb
CHANGED