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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3897a03c881bd2998b2f41d2132e5bfefd706c04377b37181799f39e3db6bc28
4
- data.tar.gz: 33358538717dac791c972003ed22a0c4ca5fa639db04110ee86b5a2c5b8ffa15
3
+ metadata.gz: c1c5ae5aab30f6f9065bdf415b4fe94b7b82c8c0a05aecc582a5363349221be8
4
+ data.tar.gz: 79d0aefc5abb7671c5c366a02648e183589d1cb90991912f381ac0b6a46c5af6
5
5
  SHA512:
6
- metadata.gz: 20b73fc4a7766307ec90e2b9354893834b01d1b0e26ed105e583cbc108ffe6fbf3ab1138900f0cd0a1d673a199c6a6ea72d6360e8af6ed7cdf6fd9854b809e74
7
- data.tar.gz: 2234d0c9465f27c36cf045c721e7387e4b6e3f67052bf1560a932869c07bab9bd0c3c5fe6b60290549e2a08ccf06444ca30cc592e2e8c22310ea0fe515e08e84
6
+ metadata.gz: 33c08fdcb4e09e571667872ea761f046977516e1d882d29638faf54f9f58b00ae0534de616a5f304a7231f2820c2a6938ae7a3eaea761987c619b4f6ffc13693
7
+ data.tar.gz: 96d52d7e49b0d50bd12e6c28f8ec65e3db86e3b66704149a6ef7756119a168ca4326d0e7aeb897489a2a04a8a4d0e56e7ca0b6254d88e48e682b134ee7b921a9
@@ -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.24.6"
19
- - "1.23.12"
19
+ - "1.26.4"
20
+ - "1.24.13"
21
+ - "1.23.17"
20
22
  include:
21
- - kubernetes_version: "1.24.6"
22
- kind_image: "kindest/node:v1.24.6@sha256:97e8d00bc37a7598a0b32d1fabd155a96355c49fa0d4d4790aab0f161bf31be1"
23
- - kubernetes_version: "1.23.12"
24
- kind_image: "kindest/node:v1.23.12@sha256:9402cf1330bbd3a0d097d2033fa489b2abe40d479cc5ef47d0b6a6960613148a"
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
@@ -1,5 +1,11 @@
1
1
  ## next
2
2
 
3
+ ## 3.2.0
4
+
5
+ *Enhancements*
6
+
7
+ - Test against k8s 1.26
8
+
3
9
  ## 3.1.0
4
10
 
5
11
  *Enhancements*
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/master/contributors/devel/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
+ 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/v1beta1
596
+ apiVersion: batch/v1
596
597
  kind: CronJob
597
598
  metadata:
598
599
  name: cron-<%= name %>
data/bin/test CHANGED
@@ -23,7 +23,7 @@ if [[ ${PARALLELISM:=0} -lt 1 ]]; then
23
23
  if [[ $num_cpus -le 2 ]]; then
24
24
  PARALLELISM=1
25
25
  else
26
- (( PARALLELISM=num_cpus/2 ))
26
+ (( PARALLELISM=num_cpus ))
27
27
  fi
28
28
  fi
29
29
 
data/dev.yml CHANGED
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: krane
3
3
  up:
4
- - ruby: '3.1.2' # Matches gemspec
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.24.6@sha256:97e8d00bc37a7598a0b32d1fabd155a96355c49fa0d4d4790aab0f161bf31be1
9
+ image: kindest/node:v1.26.4@sha256:354b7b57f16dc42d5ccc8c7eb3c3c8b3818531d35bc82600ba874a85fa1fa28a
10
10
  commands:
11
11
  test:
12
12
  run: bin/test
@@ -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
@@ -49,9 +49,9 @@ module Krane
49
49
  )
50
50
  end
51
51
 
52
- def build_policy_v1beta1_kubeclient(context)
52
+ def build_policy_v1_kubeclient(context)
53
53
  build_kubeclient(
54
- api_version: "v1beta1",
54
+ api_version: "v1",
55
55
  context: context,
56
56
  endpoint_path: "/apis/policy/"
57
57
  )
@@ -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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Krane
3
- VERSION = "3.1.0"
3
+ VERSION = "3.2.0"
4
4
  end
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.1.0
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-04-11 00:00:00.000000000 Z
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.10
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