krane 3.7.4 → 3.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa1df1749c55152fd20f6fbf193bde5a9022c4d7a94325b38625ae973c81f84f
4
- data.tar.gz: '01970deaf86f2187ca7774c2a3e4a4c012dbaac483351244d76b4aad782df941'
3
+ metadata.gz: 6b517f1a2cfc95c6f712b6f7d3364a53d97b6d757338c31851ae07a5c4fd477b
4
+ data.tar.gz: b6bb6b7e9192d8c0a53537d63d9cc0cc35f811ab94857311b287e99269c52346
5
5
  SHA512:
6
- metadata.gz: bf63386799ae5ace2b990abd6a26f6be7c6212b5e672e57fbff0c7a40d06ac57ba462c531443427a2c7066686f275e46a68e40d1ecd1c0e09512430dd69f1b66
7
- data.tar.gz: 228f5a83cd9f4f6b0b42b03b7e4bec5905dde680f86ffe8b49f8c14be5e20b447547f708c3d58d03cd1059eaf0b4b6804cfc046ae20d67c1bfff90efcd92a8ad
6
+ metadata.gz: 89576347cab7d2c1b3aea7f2371c4d9749c75417d7aca3c59edea7a294e834e91451f5fc6e779b5bdd9d9a6b55cfaa81356b908ed9b1976799ee9b2621b5dab0
7
+ data.tar.gz: 6359b825eae379d6b24ef9fcf1da85baa5f2ad803caeae87cb16d1b3f3df3099f7b30babc6b5cb18fe3a59445f47e53d8bec7d0fb02595abd2bff1258c1865eb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## next
2
2
 
3
+ ## 3.8.1
4
+
5
+ - check if observedGeneration is present before comparing with generation for custom resources
6
+
7
+ ## 3.8.0
8
+
9
+ - Add Elasticsearch resource to the black list so it is not marked for deletion
10
+
3
11
  ## 3.7.4
4
12
 
5
13
  - Handle bad encoding in container log output
@@ -19,9 +19,12 @@ module Krane
19
19
  end
20
20
 
21
21
  def prunable_resources(namespaced:)
22
- black_list = %w(Namespace Node ControllerRevision Event)
22
+ black_list = %w(Namespace Node ControllerRevision Event Elasticsearch)
23
23
  fetch_resources(namespaced: namespaced).map do |resource|
24
24
  next unless resource["verbs"].one? { |v| v == "delete" }
25
+ if resource["kind"] == "Elasticsearch"
26
+ StatsD.client.increment('elasticsearch_resource_deletion_attempt.increment', tags: %W(context:#{context} namespace:#{namespace}))
27
+ end
25
28
  next if black_list.include?(resource["kind"])
26
29
  [resource["apigroup"], resource["version"], resource["kind"]].compact.join("/")
27
30
  end.compact
@@ -39,7 +39,7 @@ module Krane
39
39
  end
40
40
 
41
41
  def timeout_message
42
- if rollout_conditions && current_generation != observed_generation
42
+ if observed_generation.present? && rollout_conditions && current_generation != observed_generation
43
43
  TIMEOUT_MESSAGE_DIFFERENT_GENERATIONS
44
44
  else
45
45
  super
data/lib/krane/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Krane
3
- VERSION = "3.7.4"
3
+ VERSION = "3.8.1"
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.7.4
4
+ version: 3.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Verey
@@ -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.6.9
528
+ rubygems_version: 3.7.2
529
529
  specification_version: 4
530
530
  summary: A command line tool that helps you ship changes to a Kubernetes namespace
531
531
  and understand the result