krane 3.7.1 → 3.7.2
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/krane/kubernetes_resource.rb +2 -2
- data/lib/krane/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: 2267692b50f9327c811d105ec23b0b373549086409dbfa9320dab7110056927e
|
4
|
+
data.tar.gz: 8d59aa496ab87f54b1108aa55d049a8f895ebd129f47952eb2cb0a4d379bf17e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75763fd98cd6d5cb06fb5a27607d3b1db32880a012f24914a7f62c638a79375350e91eb2779fb44085c3ab6867969136e3207c513ea0036087e819b9aead7e83
|
7
|
+
data.tar.gz: 128adcfb1addadd78d28ce99d9a0d337f3bc6286157a4ada522efb5747a3175c360b318dcd69fbc03021595610fae66e91d6f3ff14fca1412344b1ed63a49d8c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## next
|
2
2
|
|
3
|
+
## 3.7.2
|
4
|
+
|
5
|
+
- Explicitly convert `current_generation` and `observed_generation` values to integers using `.to_i` to ensure consistentency during comparison
|
6
|
+
|
3
7
|
## 3.7.1
|
4
8
|
|
5
9
|
- Add a `--partials-dir` parameter. When provided, this path will be check for partials first, prior to both `./partials` and `../partials` being checked.
|
@@ -204,13 +204,13 @@ module Krane
|
|
204
204
|
|
205
205
|
def current_generation
|
206
206
|
return -1 unless exists? # must be different default than observed_generation
|
207
|
-
@instance_data.dig("metadata", "generation")
|
207
|
+
@instance_data.dig("metadata", "generation")&.to_i
|
208
208
|
end
|
209
209
|
|
210
210
|
def observed_generation
|
211
211
|
return -2 unless exists?
|
212
212
|
# populating this is a best practice, but not all controllers actually do it
|
213
|
-
@instance_data.dig('status', 'observedGeneration')
|
213
|
+
@instance_data.dig('status', 'observedGeneration')&.to_i
|
214
214
|
end
|
215
215
|
|
216
216
|
def status
|
data/lib/krane/version.rb
CHANGED
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
|
+
version: 3.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Verey
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
- Kir Shatrov
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-03-
|
12
|
+
date: 2025-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|