krane 3.5.0 → 3.5.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 +4 -4
- data/.github/workflows/ci.yml +2 -0
- data/CHANGELOG.md +8 -4
- data/lib/krane/kubernetes_resource/stateful_set.rb +6 -17
- data/lib/krane/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 539da4250e34645d214b2d00b0488e58c7fff4d1b0b5f9faef0645c88b79f3ee
|
|
4
|
+
data.tar.gz: 5003b59002e3a152d77e7733f4c7928a7904f39eabd55ad6a88083effa8a8e0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53a61053088965e601c303baf97dd407d416bfdaec11b9ea0fa90a634d463b4de9178af79c50284159ec49ecb909d4ea2f29b4fca3de56e9e315673adfa6633d
|
|
7
|
+
data.tar.gz: 6bc64130a21bd76c33240acc99f1b7792329ae74fbb82156334bde1ad881f1d9d68eafa4bebaf1a9375bd9b37a0ab0059215546c46e416b81767c1623776064d
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
## next
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## 3.5.1
|
|
4
|
+
|
|
5
|
+
- Fixed successful deployment check for StatefulSets introduced in v3.3.0.
|
|
6
|
+
|
|
7
|
+
## 3.5.0
|
|
4
8
|
|
|
5
9
|
- Test against k8s 1.28
|
|
6
10
|
- Drop support for k8s 1.23
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
## 3.4.2
|
|
9
13
|
|
|
10
14
|
- Remove flag `--skip-dry-run` (see [#946](https://github.com/Shopify/krane/pull/946))
|
|
11
15
|
- Remove support for batched server-side dry-run ([#946](https://github.com/Shopify/krane/pull/946))
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
## 3.4.1
|
|
14
18
|
|
|
15
19
|
- Added flag `--skip-dry-run` to completely opt out of dry run validation.
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
## 3.4.0
|
|
18
22
|
|
|
19
23
|
- Use `prune-allowlist` instead of `prune-whitelist` for 1.26+ clusters. Clusters running 1.25 or less will continue to use `--prune-whitelist`. [#940](https://github.com/Shopify/krane/pull/940)
|
|
20
24
|
|
|
@@ -22,26 +22,15 @@ module Krane
|
|
|
22
22
|
def deploy_succeeded?
|
|
23
23
|
success = observed_generation == current_generation
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
success &= pod.definition["metadata"]["labels"]["controller-revision-hash"] == status_data['updateRevision']
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
if update_strategy == 'RollingUpdate'
|
|
30
|
-
success &= status_data['currentRevision'] == status_data['updateRevision']
|
|
31
|
-
success &= desired_replicas == status_data['readyReplicas'].to_i
|
|
32
|
-
success &= desired_replicas == status_data['currentReplicas'].to_i
|
|
33
|
-
|
|
34
|
-
elsif update_strategy == ONDELETE
|
|
25
|
+
if update_strategy == ONDELETE && required_rollout != "full"
|
|
35
26
|
unless @success_assumption_warning_shown
|
|
36
|
-
@logger.warn("WARNING: Your StatefulSet's updateStrategy is set to
|
|
37
|
-
"which means
|
|
27
|
+
@logger.warn("WARNING: Your StatefulSet's updateStrategy is set to #{update_strategy}, "\
|
|
28
|
+
"which means updates will not be applied until its pods are deleted.")
|
|
38
29
|
@success_assumption_warning_shown = true
|
|
39
30
|
end
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
success &= desired_replicas == status_data['updatedReplicas'].to_i
|
|
44
|
-
end
|
|
31
|
+
else
|
|
32
|
+
success &= desired_replicas == status_data['readyReplicas'].to_i
|
|
33
|
+
success &= desired_replicas == status_data['updatedReplicas'].to_i
|
|
45
34
|
end
|
|
46
35
|
|
|
47
36
|
success
|
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.5.
|
|
4
|
+
version: 3.5.1
|
|
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-
|
|
13
|
+
date: 2024-04-03 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.
|
|
528
|
+
rubygems_version: 3.5.7
|
|
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
|