hako 2.16.0 → 2.17.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: 247a60cab9d7f9bec3f63bb9858453499066c9b54d23ce9f1d8bae69c133973a
4
- data.tar.gz: c004ff0c4aac3d742f89f4eeb455ff189acebabc0d398dc586eb835902129577
3
+ metadata.gz: 39056ee36a91a2e24c9dc59cfe7e5a0fef62c55578c31cf6aa2243d29d89ca8e
4
+ data.tar.gz: ca5ecea7f27470068cf6d69d925363fa43dfcde5bba28764e51df11e9e57cfb2
5
5
  SHA512:
6
- metadata.gz: c3a12ca201d09312f3c71e18e7418941aaf9330ad99d7acccb32094f0579d3085817004cea7209691d43a4f00f3181c242fbe452cc856ae9aad723bbf05d829b
7
- data.tar.gz: a110da777e6ab79a3af3a3ebd6d6923e2428b59947208ad0bf771577bb45fb775ccbe723d0377d32e6b3df52419914e60ff1681a574db304763f11d13c3b6bf4
6
+ metadata.gz: 99c17719f1f60db1bd9c5413f6cb02005464f90bda67f5f543b6537d71796f0fe8ea9e32a267bf1000bcc48e1b98ef03c03cf4a0878cc1d8b2107e9fb405b362
7
+ data.tar.gz: 23f57698cb4d2cdf7fd59bed1c25977fefbea9868fcbd4179d860729ca0ebf372d177dd8d25d5205e6814b7edd77450837054da96d232f8844c604e743324264
data/.rubocop.yml CHANGED
@@ -36,6 +36,8 @@ Style/PercentLiteralDelimiters:
36
36
  '%i': '[]'
37
37
  Style/RaiseArgs:
38
38
  EnforcedStyle: compact
39
+ Style/RedundantCondition:
40
+ Enabled: false
39
41
  Style/SignalException:
40
42
  Enabled: false
41
43
  Style/SoleNestedConditional:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.17.0 (2022-05-31)
2
+ ## New features
3
+ - Support runtime_platform option
4
+
1
5
  # 2.16.0 (2022-05-02)
2
6
  ## New features
3
7
  - Support ephemeral_storage option in ECS scheduler
@@ -81,6 +81,13 @@ module Hako
81
81
  end
82
82
  end
83
83
  @requires_compatibilities = options.fetch('requires_compatibilities', nil)
84
+ if options.key?('runtime_platform')
85
+ runtime_platform = options.fetch('runtime_platform')
86
+ @runtime_platform = {
87
+ cpu_architecture: runtime_platform.fetch('cpu_architecture', nil),
88
+ operating_system_family: runtime_platform.fetch('operating_system_family', nil),
89
+ }
90
+ end
84
91
  @launch_type = options.fetch('launch_type', nil)
85
92
  if options.key?('capacity_provider_strategy')
86
93
  @capacity_provider_strategy = options.fetch('capacity_provider_strategy').map do |strategy|
@@ -523,6 +530,9 @@ module Hako
523
530
  if actual_definition.requires_compatibilities != @requires_compatibilities
524
531
  return true
525
532
  end
533
+ if actual_definition.runtime_platform != @runtime_platform
534
+ return true
535
+ end
526
536
  if actual_definition.ephemeral_storage != @ephemeral_storage
527
537
  return true
528
538
  end
@@ -566,6 +576,7 @@ module Hako
566
576
  container_definitions: definitions,
567
577
  volumes: volumes_definition,
568
578
  requires_compatibilities: @requires_compatibilities,
579
+ runtime_platform: @runtime_platform,
569
580
  cpu: @cpu,
570
581
  memory: @memory,
571
582
  ephemeral_storage: @ephemeral_storage,
@@ -603,6 +614,7 @@ module Hako
603
614
  container_definitions: definitions,
604
615
  volumes: volumes_definition,
605
616
  requires_compatibilities: @requires_compatibilities,
617
+ runtime_platform: @runtime_platform,
606
618
  cpu: @cpu,
607
619
  memory: @memory,
608
620
  ephemeral_storage: @ephemeral_storage,
data/lib/hako/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hako
4
- VERSION = '2.16.0'
4
+ VERSION = '2.17.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.0
4
+ version: 2.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-applicationautoscaling
@@ -384,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
384
384
  - !ruby/object:Gem::Version
385
385
  version: '0'
386
386
  requirements: []
387
- rubygems_version: 3.0.3.1
387
+ rubygems_version: 3.2.32
388
388
  signing_key:
389
389
  specification_version: 4
390
390
  summary: Deploy Docker container