krane 3.5.2 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +22 -0
- data/.github/workflows/ci.yml +6 -3
- data/.gitignore +0 -1
- data/.ruby-version +1 -0
- data/CHANGELOG.md +9 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +4 -2
- data/dev.yml +2 -2
- data/lib/krane/restart_task.rb +2 -3
- data/lib/krane/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4fbeac365a394dbe14c05850c06c8244384f90cf205fe97036f76533f70d347
|
4
|
+
data.tar.gz: dad9b5ae3898b73a9323a2f6440130bca8279de9617b5643945d3dc6bd6ca386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee9b35d145a99a127d9d4ec7f8dd4414e0fcd7f3c495e7278d70007faa5505806025bf26db08ff6b66d1b8bb17cccde6b54759ae3ca8b1d19dcfd070e2f99099
|
7
|
+
data.tar.gz: ecefda0f27ab181082792b63f94988bcc6a0e90b611f1bab16cbbe58091a2fd38724190e3556f53b80925ffa49f6082a5296d71fd3217d6a036c7f69768cc981
|
@@ -0,0 +1,22 @@
|
|
1
|
+
version: 2
|
2
|
+
registries:
|
3
|
+
ruby-shopify:
|
4
|
+
type: rubygems-server
|
5
|
+
url: https://pkgs.shopify.io/basic/gems/ruby
|
6
|
+
username: ${{secrets.RUBYGEMS_SERVER_PKGS_SHOPIFY_IO_USERNAME}}
|
7
|
+
password: ${{secrets.RUBYGEMS_SERVER_PKGS_SHOPIFY_IO_PASSWORD}}
|
8
|
+
github-com:
|
9
|
+
type: git
|
10
|
+
url: https://github.com
|
11
|
+
username: ${{secrets.DEPENDENCIES_GITHUB_USER}}
|
12
|
+
password: ${{secrets.DEPENDENCIES_GITHUB_TOKEN}}
|
13
|
+
updates:
|
14
|
+
- package-ecosystem: bundler
|
15
|
+
directory: "/"
|
16
|
+
schedule:
|
17
|
+
interval: "weekly"
|
18
|
+
time: "10:00"
|
19
|
+
timezone: "America/Toronto"
|
20
|
+
open-pull-requests-limit: 100
|
21
|
+
insecure-external-code-execution: allow
|
22
|
+
registries: "*"
|
data/.github/workflows/ci.yml
CHANGED
@@ -18,24 +18,27 @@ jobs:
|
|
18
18
|
- "3.0.4"
|
19
19
|
- "2.7.6"
|
20
20
|
kubernetes_version:
|
21
|
+
- "1.30.0"
|
22
|
+
- "1.29.4"
|
21
23
|
- "1.28.0"
|
22
24
|
- "1.27.3"
|
23
25
|
- "1.26.4"
|
24
|
-
- "1.24.13"
|
25
26
|
test_suite:
|
26
27
|
- "unit_test"
|
27
28
|
- "cli_test"
|
28
29
|
- "serial_integration_test"
|
29
30
|
- "integration_test"
|
30
31
|
include:
|
32
|
+
- kubernetes_version: "1.30.0"
|
33
|
+
kind_image: "kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e"
|
34
|
+
- kubernetes_version: "1.29.4"
|
35
|
+
kind_image: "kindest/node:v1.29.4@sha256:3abb816a5b1061fb15c6e9e60856ec40d56b7b52bcea5f5f1350bc6e2320b6f8"
|
31
36
|
- kubernetes_version: "1.28.0"
|
32
37
|
kind_image: "kindest/node:v1.28.0@sha256:dad5a6238c5e41d7cac405fae3b5eda2ad1de6f1190fa8bfc64ff5bb86173213"
|
33
38
|
- kubernetes_version: "1.27.3"
|
34
39
|
kind_image: "kindest/node:v1.27.3@sha256:9dd3392d79af1b084671b05bcf65b21de476256ad1dcc853d9f3b10b4ac52dde"
|
35
40
|
- kubernetes_version: "1.26.4"
|
36
41
|
kind_image: "kindest/node:v1.26.4@sha256:a539833d26264444ab3b8f5e56e23fa3361436445fa23c864e6dec622458858f"
|
37
|
-
- kubernetes_version: "1.24.13"
|
38
|
-
kind_image: "kindest/node:v1.24.13@sha256:c9e00e2b228e47ba3c96eaf0309b27dc3f73e444944e4c900016fd07b1b805cb"
|
39
42
|
|
40
43
|
steps:
|
41
44
|
- uses: actions/checkout@v3
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## next
|
2
2
|
|
3
|
+
## 3.6.0
|
4
|
+
|
5
|
+
- Test against k8s 1.29, 1.30
|
6
|
+
- Drop support for k8s 1.24
|
7
|
+
|
8
|
+
## 3.5.3
|
9
|
+
|
10
|
+
- Fix a minor bug in the RestartAPIError class (https://github.com/Shopify/krane/pull/953)
|
11
|
+
|
3
12
|
## 3.5.2
|
4
13
|
|
5
14
|
- Fixed an issue where deploying StatefulSets monitored the health of the previous revision's pods instead of the updated one.
|
data/CONTRIBUTING.md
CHANGED
@@ -111,7 +111,7 @@ This gem uses subclasses of `KubernetesResource` to implement custom success/fai
|
|
111
111
|
|
112
112
|
If you work for Shopify, just run `dev up`, but otherwise:
|
113
113
|
|
114
|
-
1. [Install kubectl version 1.
|
114
|
+
1. [Install kubectl version 1.28.0 or higher](https://kubernetes.io/docs/user-guide/prereqs/) and make sure it is in your path
|
115
115
|
2. [Install minikube](https://kubernetes.io/docs/getting-started-guides/minikube/#installation) (required to run the test suite)
|
116
116
|
3. [Install any required minikube drivers](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md) (on OS X, you may need the [hyperkit driver](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperkit-driver)
|
117
117
|
4. Check out the repo
|
data/README.md
CHANGED
@@ -90,15 +90,17 @@ Krane provides support for official upstream supported versions [Kubernetes](htt
|
|
90
90
|
| 1.21 | No | 2.4.9 |
|
91
91
|
| 1.22 | No | 3.0.1 |
|
92
92
|
| 1.23 | No | 3.4.2 |
|
93
|
-
| 1.24 |
|
93
|
+
| 1.24 | No | 3.5.3 |
|
94
94
|
| 1.25 | No | -- |
|
95
95
|
| 1.26 | Yes | -- |
|
96
96
|
| 1.27 | Yes | -- |
|
97
97
|
| 1.28 | Yes | -- |
|
98
|
+
| 1.29 | Yes | -- |
|
99
|
+
| 1.30 | Yes | -- |
|
98
100
|
|
99
101
|
## Installation
|
100
102
|
|
101
|
-
1. [Install kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-binary-via-curl) (requires v1.
|
103
|
+
1. [Install kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-binary-via-curl) (requires v1.28.0 or higher) and make sure it is available in your $PATH
|
102
104
|
2. Set up your [kubeconfig file](https://kubernetes.io/docs/tasks/access-application-cluster/authenticate-across-clusters-kubeconfig/) for access to your cluster(s).
|
103
105
|
3. `gem install krane`
|
104
106
|
|
data/dev.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
---
|
2
2
|
name: krane
|
3
3
|
up:
|
4
|
-
- ruby
|
4
|
+
- ruby
|
5
5
|
- bundler
|
6
6
|
- podman
|
7
7
|
- kind:
|
8
8
|
name: krane
|
9
|
-
image: kindest/node:v1.
|
9
|
+
image: kindest/node:v1.28.0@sha256:dad5a6238c5e41d7cac405fae3b5eda2ad1de6f1190fa8bfc64ff5bb86173213
|
10
10
|
commands:
|
11
11
|
test:
|
12
12
|
run: bin/test
|
data/lib/krane/restart_task.rb
CHANGED
@@ -12,10 +12,9 @@ module Krane
|
|
12
12
|
class FatalRestartError < FatalDeploymentError; end
|
13
13
|
|
14
14
|
class RestartAPIError < FatalRestartError
|
15
|
-
def initialize(deployment_name,
|
15
|
+
def initialize(deployment_name, message)
|
16
16
|
super("Failed to restart #{deployment_name}. " \
|
17
|
-
"
|
18
|
-
"Response:\n#{response.body}")
|
17
|
+
"Error:\n#{message}")
|
19
18
|
end
|
20
19
|
end
|
21
20
|
|
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.6.0
|
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-05-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -413,6 +413,7 @@ extra_rdoc_files: []
|
|
413
413
|
files:
|
414
414
|
- ".github/CODEOWNERS"
|
415
415
|
- ".github/ISSUE_TEMPLATE.md"
|
416
|
+
- ".github/dependabot.yml"
|
416
417
|
- ".github/pull_request_template.md"
|
417
418
|
- ".github/workflows/add-to-project.yml"
|
418
419
|
- ".github/workflows/ci.yml"
|
@@ -420,6 +421,7 @@ files:
|
|
420
421
|
- ".gitignore"
|
421
422
|
- ".rubocop-http---shopify-github-io-ruby-style-guide-rubocop-yml"
|
422
423
|
- ".rubocop.yml"
|
424
|
+
- ".ruby-version"
|
423
425
|
- 1.0-Upgrade.md
|
424
426
|
- CHANGELOG.md
|
425
427
|
- CODE_OF_CONDUCT.md
|
@@ -525,7 +527,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
525
527
|
- !ruby/object:Gem::Version
|
526
528
|
version: '0'
|
527
529
|
requirements: []
|
528
|
-
rubygems_version: 3.5.
|
530
|
+
rubygems_version: 3.5.10
|
529
531
|
signing_key:
|
530
532
|
specification_version: 4
|
531
533
|
summary: A command line tool that helps you ship changes to a Kubernetes namespace
|