krane 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +10 -6
- data/CHANGELOG.md +6 -0
- data/README.md +3 -2
- data/bin/test +1 -1
- data/dev.yml +2 -2
- data/lib/krane/deploy_task.rb +0 -1
- data/lib/krane/kubeclient_builder.rb +2 -2
- data/lib/krane/kubernetes_resource.rb +0 -2
- 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: c1c5ae5aab30f6f9065bdf415b4fe94b7b82c8c0a05aecc582a5363349221be8
|
4
|
+
data.tar.gz: 79d0aefc5abb7671c5c366a02648e183589d1cb90991912f381ac0b6a46c5af6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33c08fdcb4e09e571667872ea761f046977516e1d882d29638faf54f9f58b00ae0534de616a5f304a7231f2820c2a6938ae7a3eaea761987c619b4f6ffc13693
|
7
|
+
data.tar.gz: 96d52d7e49b0d50bd12e6c28f8ec65e3db86e3b66704149a6ef7756119a168ca4326d0e7aeb897489a2a04a8a4d0e56e7ca0b6254d88e48e682b134ee7b921a9
|
data/.github/workflows/ci.yml
CHANGED
@@ -11,17 +11,21 @@ jobs:
|
|
11
11
|
fail-fast: false
|
12
12
|
matrix:
|
13
13
|
ruby:
|
14
|
+
- "3.2.2"
|
14
15
|
- "3.1.2"
|
15
16
|
- "3.0.4"
|
16
17
|
- "2.7.6"
|
17
18
|
kubernetes_version:
|
18
|
-
- "1.
|
19
|
-
- "1.
|
19
|
+
- "1.26.4"
|
20
|
+
- "1.24.13"
|
21
|
+
- "1.23.17"
|
20
22
|
include:
|
21
|
-
- kubernetes_version: "1.
|
22
|
-
kind_image: "kindest/node:v1.
|
23
|
-
- kubernetes_version: "1.
|
24
|
-
kind_image: "kindest/node:v1.
|
23
|
+
- kubernetes_version: "1.26.4"
|
24
|
+
kind_image: "kindest/node:v1.26.4@sha256:a539833d26264444ab3b8f5e56e23fa3361436445fa23c864e6dec622458858f"
|
25
|
+
- kubernetes_version: "1.24.13"
|
26
|
+
kind_image: "kindest/node:v1.24.13@sha256:c9e00e2b228e47ba3c96eaf0309b27dc3f73e444944e4c900016fd07b1b805cb"
|
27
|
+
- kubernetes_version: "1.23.17"
|
28
|
+
kind_image: "kindest/node:v1.23.17@sha256:eb33093b461ffee7614ca65a39ac0fb57982e1407dc38df4df92811c4fbcb687"
|
25
29
|
|
26
30
|
steps:
|
27
31
|
- uses: actions/checkout@v3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -92,6 +92,7 @@ Krane provides support for official upstream supported versions [Kubernetes](htt
|
|
92
92
|
| 1.23 | Yes | -- |
|
93
93
|
| 1.24 | Yes | -- |
|
94
94
|
| 1.25 | No | -- |
|
95
|
+
| 1.26 | Yes | -- |
|
95
96
|
|
96
97
|
## Installation
|
97
98
|
|
@@ -303,7 +304,7 @@ As an example, the following is the default configuration that will be used if y
|
|
303
304
|
}'
|
304
305
|
```
|
305
306
|
|
306
|
-
The paths defined here are based on the [typical status properties](https://github.com/kubernetes/community/blob/
|
307
|
+
The paths defined here are based on the [typical status properties](https://github.com/kubernetes/community/blob/0e9fa4a1c45203527a7ce35eaff09204d6b7b331/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) as defined by the Kubernetes community. It expects the `status` subresource to contain a `conditions` array whose entries minimally specify `type`, `status`, and `message` fields.
|
307
308
|
|
308
309
|
You can see how these conditions relate to the following resource:
|
309
310
|
|
@@ -592,7 +593,7 @@ Inside a partial, parameters can be accessed as normal variables, or via a hash
|
|
592
593
|
|
593
594
|
```yaml
|
594
595
|
---
|
595
|
-
apiVersion: batch/
|
596
|
+
apiVersion: batch/v1
|
596
597
|
kind: CronJob
|
597
598
|
metadata:
|
598
599
|
name: cron-<%= name %>
|
data/bin/test
CHANGED
data/dev.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
---
|
2
2
|
name: krane
|
3
3
|
up:
|
4
|
-
- ruby: '3.
|
4
|
+
- ruby: '3.2.2' # Matches gemspec
|
5
5
|
- bundler
|
6
6
|
- podman
|
7
7
|
- kind:
|
8
8
|
name: krane
|
9
|
-
image: kindest/node:v1.
|
9
|
+
image: kindest/node:v1.26.4@sha256:354b7b57f16dc42d5ccc8c7eb3c3c8b3818531d35bc82600ba874a85fa1fa28a
|
10
10
|
commands:
|
11
11
|
test:
|
12
12
|
run: bin/test
|
data/lib/krane/deploy_task.rb
CHANGED
@@ -288,7 +288,6 @@ module Krane
|
|
288
288
|
validate_globals(resources)
|
289
289
|
batch_dry_run_success = validate_dry_run(resources)
|
290
290
|
resources.select! { |r| r.selected?(@selector) } if @selector_as_filter
|
291
|
-
|
292
291
|
Krane::Concurrency.split_across_threads(resources) do |r|
|
293
292
|
# No need to pass in kubectl (and do per-resource dry run apply) if batch dry run succeeded
|
294
293
|
if batch_dry_run_success
|
@@ -553,7 +553,6 @@ module Krane
|
|
553
553
|
if err.empty? || err.match(SERVER_DRY_RUN_DISABLED_ERROR)
|
554
554
|
_, err, st = validate_with_local_dry_run(kubectl)
|
555
555
|
end
|
556
|
-
|
557
556
|
return true if st.success?
|
558
557
|
@validation_errors << if sensitive_template_content?
|
559
558
|
"Validation for #{id} failed. Detailed information is unavailable as the raw error may contain sensitive data."
|
@@ -576,7 +575,6 @@ module Krane
|
|
576
575
|
def validate_with_local_dry_run(kubectl)
|
577
576
|
verb = deploy_method == :apply ? "apply" : "create"
|
578
577
|
command = [verb, "-f", file_path, "--dry-run=client", "--output=name"]
|
579
|
-
|
580
578
|
kubectl.run(*command, log_failure: false, output_is_sensitive: sensitive_template_content?,
|
581
579
|
retry_whitelist: [:client_timeout, :empty, :context_deadline], attempts: 3, use_namespace: !global?)
|
582
580
|
end
|
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.2.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: 2023-
|
13
|
+
date: 2023-06-14 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.4.
|
528
|
+
rubygems_version: 3.4.13
|
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
|