krane 3.5.1 → 3.5.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: 539da4250e34645d214b2d00b0488e58c7fff4d1b0b5f9faef0645c88b79f3ee
4
- data.tar.gz: 5003b59002e3a152d77e7733f4c7928a7904f39eabd55ad6a88083effa8a8e0a
3
+ metadata.gz: af0a06d99b0fc63d756c43fc6eb172e8f8740593b82f9796606cc4a991e5fdd2
4
+ data.tar.gz: 2dc66222f165edd14b610f95cf222c46b37a4ba329facb91af5459bceed84908
5
5
  SHA512:
6
- metadata.gz: 53a61053088965e601c303baf97dd407d416bfdaec11b9ea0fa90a634d463b4de9178af79c50284159ec49ecb909d4ea2f29b4fca3de56e9e315673adfa6633d
7
- data.tar.gz: 6bc64130a21bd76c33240acc99f1b7792329ae74fbb82156334bde1ad881f1d9d68eafa4bebaf1a9375bd9b37a0ab0059215546c46e416b81767c1623776064d
6
+ metadata.gz: 2372c3bdc698d592f732e7bff2ef5d7a0b44d9d4bd062eeb5ea65e5fc18f5e5cf52f54e3a43bfcdd07d7b1793afc8ce5ca7b34275a6e0d4c2edf7465d4c4d7aa
7
+ data.tar.gz: 5db1734d216135fb0655e8c979c216c9d3adfa7c09f1e336594603b466b818dd4db3acdb5a90b86fb46d947e283a0bf207bee824a5dd31bea2e1c599bea2df90
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## next
2
2
 
3
+ ## 3.5.3
4
+
5
+ - Fix a minor bug in the RestartAPIError class (https://github.com/Shopify/krane/pull/953)
6
+
7
+ ## 3.5.2
8
+
9
+ - Fixed an issue where deploying StatefulSets monitored the health of the previous revision's pods instead of the updated one.
10
+
3
11
  ## 3.5.1
4
12
 
5
13
  - Fixed successful deployment check for StatefulSets introduced in v3.3.0.
data/Gemfile CHANGED
@@ -4,4 +4,4 @@ source 'https://rubygems.org'
4
4
  # Specify your gem's dependencies in krane.gemspec
5
5
  gemspec
6
6
 
7
- gem "ruby-lsp", "~> 0.2.0", :group => :development
7
+ gem "ruby-lsp", "~> 0.2.0", group: :development
@@ -65,7 +65,7 @@ module Krane
65
65
  def parent_of_pod?(pod_data)
66
66
  return false unless pod_data.dig("metadata", "ownerReferences")
67
67
  pod_data["metadata"]["ownerReferences"].any? { |ref| ref["uid"] == @instance_data["metadata"]["uid"] } &&
68
- @instance_data["status"]["currentRevision"] == pod_data["metadata"]["labels"]["controller-revision-hash"]
68
+ @instance_data["status"]["updateRevision"] == pod_data["metadata"]["labels"]["controller-revision-hash"]
69
69
  end
70
70
 
71
71
  def required_rollout
@@ -12,10 +12,9 @@ module Krane
12
12
  class FatalRestartError < FatalDeploymentError; end
13
13
 
14
14
  class RestartAPIError < FatalRestartError
15
- def initialize(deployment_name, response)
15
+ def initialize(deployment_name, message)
16
16
  super("Failed to restart #{deployment_name}. " \
17
- "API returned non-200 response code (#{response.code})\n" \
18
- "Response:\n#{response.body}")
17
+ "Error:\n#{message}")
19
18
  end
20
19
  end
21
20
 
data/lib/krane/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Krane
3
- VERSION = "3.5.1"
3
+ VERSION = "3.5.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krane
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 3.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Verey
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-04-03 00:00:00.000000000 Z
13
+ date: 2024-05-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -525,7 +525,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
525
525
  - !ruby/object:Gem::Version
526
526
  version: '0'
527
527
  requirements: []
528
- rubygems_version: 3.5.7
528
+ rubygems_version: 3.5.10
529
529
  signing_key:
530
530
  specification_version: 4
531
531
  summary: A command line tool that helps you ship changes to a Kubernetes namespace