krane 3.4.2 → 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 +5 -3
- data/CHANGELOG.md +12 -3
- data/README.md +3 -2
- 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
@@ -5,6 +5,8 @@ on: [push]
|
|
5
5
|
jobs:
|
6
6
|
ruby-tests:
|
7
7
|
runs-on: ubuntu-latest
|
8
|
+
env:
|
9
|
+
CI: true
|
8
10
|
|
9
11
|
name: "Tests (${{matrix.test_suite}}) - Ruby ${{ matrix.ruby }} with Kubernetes ${{ matrix.kubernetes_version }}"
|
10
12
|
strategy:
|
@@ -16,24 +18,24 @@ jobs:
|
|
16
18
|
- "3.0.4"
|
17
19
|
- "2.7.6"
|
18
20
|
kubernetes_version:
|
21
|
+
- "1.28.0"
|
19
22
|
- "1.27.3"
|
20
23
|
- "1.26.4"
|
21
24
|
- "1.24.13"
|
22
|
-
- "1.23.17"
|
23
25
|
test_suite:
|
24
26
|
- "unit_test"
|
25
27
|
- "cli_test"
|
26
28
|
- "serial_integration_test"
|
27
29
|
- "integration_test"
|
28
30
|
include:
|
31
|
+
- kubernetes_version: "1.28.0"
|
32
|
+
kind_image: "kindest/node:v1.28.0@sha256:dad5a6238c5e41d7cac405fae3b5eda2ad1de6f1190fa8bfc64ff5bb86173213"
|
29
33
|
- kubernetes_version: "1.27.3"
|
30
34
|
kind_image: "kindest/node:v1.27.3@sha256:9dd3392d79af1b084671b05bcf65b21de476256ad1dcc853d9f3b10b4ac52dde"
|
31
35
|
- kubernetes_version: "1.26.4"
|
32
36
|
kind_image: "kindest/node:v1.26.4@sha256:a539833d26264444ab3b8f5e56e23fa3361436445fa23c864e6dec622458858f"
|
33
37
|
- kubernetes_version: "1.24.13"
|
34
38
|
kind_image: "kindest/node:v1.24.13@sha256:c9e00e2b228e47ba3c96eaf0309b27dc3f73e444944e4c900016fd07b1b805cb"
|
35
|
-
- kubernetes_version: "1.23.17"
|
36
|
-
kind_image: "kindest/node:v1.23.17@sha256:eb33093b461ffee7614ca65a39ac0fb57982e1407dc38df4df92811c4fbcb687"
|
37
39
|
|
38
40
|
steps:
|
39
41
|
- uses: actions/checkout@v3
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +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
|
8
|
+
|
9
|
+
- Test against k8s 1.28
|
10
|
+
- Drop support for k8s 1.23
|
11
|
+
|
12
|
+
## 3.4.2
|
4
13
|
|
5
14
|
- Remove flag `--skip-dry-run` (see [#946](https://github.com/Shopify/krane/pull/946))
|
6
15
|
- Remove support for batched server-side dry-run ([#946](https://github.com/Shopify/krane/pull/946))
|
7
16
|
|
8
|
-
|
17
|
+
## 3.4.1
|
9
18
|
|
10
19
|
- Added flag `--skip-dry-run` to completely opt out of dry run validation.
|
11
20
|
|
12
|
-
|
21
|
+
## 3.4.0
|
13
22
|
|
14
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)
|
15
24
|
|
data/README.md
CHANGED
@@ -74,7 +74,7 @@ If you need the ability to render dynamic values in templates before deploying,
|
|
74
74
|
## Prerequisites
|
75
75
|
|
76
76
|
* Ruby 2.7+
|
77
|
-
* Your cluster must be running Kubernetes v1.
|
77
|
+
* Your cluster must be running Kubernetes v1.24.0 or higher<sup>1</sup>
|
78
78
|
|
79
79
|
## Compatibility
|
80
80
|
|
@@ -89,11 +89,12 @@ Krane provides support for official upstream supported versions [Kubernetes](htt
|
|
89
89
|
| 1.20 | No | 2.4.9 |
|
90
90
|
| 1.21 | No | 2.4.9 |
|
91
91
|
| 1.22 | No | 3.0.1 |
|
92
|
-
| 1.23 |
|
92
|
+
| 1.23 | No | 3.4.2 |
|
93
93
|
| 1.24 | Yes | -- |
|
94
94
|
| 1.25 | No | -- |
|
95
95
|
| 1.26 | Yes | -- |
|
96
96
|
| 1.27 | Yes | -- |
|
97
|
+
| 1.28 | Yes | -- |
|
97
98
|
|
98
99
|
## Installation
|
99
100
|
|
@@ -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.
|
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
|