krane 3.6.0 → 3.6.1

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: c4fbeac365a394dbe14c05850c06c8244384f90cf205fe97036f76533f70d347
4
- data.tar.gz: dad9b5ae3898b73a9323a2f6440130bca8279de9617b5643945d3dc6bd6ca386
3
+ metadata.gz: d78cc316978de660c325dc26a7e6857b4b0c622537558929a769c282007203ce
4
+ data.tar.gz: a8ff6c78f240824244b77ada8f4e835576cd42a97955c4113edb8369feedc086
5
5
  SHA512:
6
- metadata.gz: ee9b35d145a99a127d9d4ec7f8dd4414e0fcd7f3c495e7278d70007faa5505806025bf26db08ff6b66d1b8bb17cccde6b54759ae3ca8b1d19dcfd070e2f99099
7
- data.tar.gz: ecefda0f27ab181082792b63f94988bcc6a0e90b611f1bab16cbbe58091a2fd38724190e3556f53b80925ffa49f6082a5296d71fd3217d6a036c7f69768cc981
6
+ metadata.gz: cea17bc39a0fafc26dc2fd0a0de0c5091e4efdd444548559516136d7cde0b10003b30ce924b65859e89e711f7379d64815e89e98b8bfbf55c82b98ec2c8883ca
7
+ data.tar.gz: d4d3a0aade84bc17a7add8f11bb436820ad0f6f36202a9bf96b9ca80847291c885d6f249a77ea002efa6b9a4e80bd14b8797247eefb82e8a6d7a528e5db95a91
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## next
2
2
 
3
+ ## 3.6.1
4
+
5
+ *Features*
6
+
7
+ - Enable the option to bypass endpoint validation for a service by using the annotation `krane.shopify.io/skip-endpoint-validation: true`.
8
+
3
9
  ## 3.6.0
4
10
 
5
11
  - Test against k8s 1.29, 1.30
data/README.md CHANGED
@@ -176,6 +176,10 @@ before the deployment is considered successful.
176
176
  - _Accepted values_: `create`, `replace`, and `replace-force`
177
177
  - _Warning_: Resources whose deploy method is overridden are no longer subject to pruning on deploy.
178
178
  - This feature is _experimental_ and may be removed at any time.
179
+ - `krane.shopify.io/skip-endpoint-validation`: Skip endpoint validation for the service.
180
+ - _Compatibility_: Service
181
+ - _Default_: `false`
182
+ - `true`: Endpoint validation is not performed during the deployment of the service.
179
183
 
180
184
 
181
185
  ### Running tasks at the beginning of a deploy
@@ -5,6 +5,7 @@ module Krane
5
5
  class Service < KubernetesResource
6
6
  TIMEOUT = 7.minutes
7
7
  SYNC_DEPENDENCIES = %w(Pod Deployment StatefulSet)
8
+ SKIP_ENDPOINT_VALIDATION_ANNOTATION = 'skip-endpoint-validation'
8
9
 
9
10
  def sync(cache)
10
11
  super
@@ -59,6 +60,9 @@ module Krane
59
60
  end
60
61
 
61
62
  def requires_endpoints?
63
+ # skip validation if the annotation is present
64
+ return false if skip_endpoint_validation
65
+
62
66
  # services of type External don't have endpoints
63
67
  return false if external_name_svc?
64
68
 
@@ -96,5 +100,9 @@ module Krane
96
100
  def published?
97
101
  @instance_data.dig('status', 'loadBalancer', 'ingress').present?
98
102
  end
103
+
104
+ def skip_endpoint_validation
105
+ krane_annotation_value(SKIP_ENDPOINT_VALIDATION_ANNOTATION) == 'true'
106
+ end
99
107
  end
100
108
  end
data/lib/krane/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Krane
3
- VERSION = "3.6.0"
3
+ VERSION = "3.6.1"
4
4
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krane
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Verey
8
8
  - Daniel Turner
9
9
  - Kir Shatrov
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-05-22 00:00:00.000000000 Z
13
+ date: 2024-08-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -512,7 +512,7 @@ licenses:
512
512
  - MIT
513
513
  metadata:
514
514
  allowed_push_host: https://rubygems.org
515
- post_install_message:
515
+ post_install_message:
516
516
  rdoc_options: []
517
517
  require_paths:
518
518
  - lib
@@ -527,8 +527,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
527
527
  - !ruby/object:Gem::Version
528
528
  version: '0'
529
529
  requirements: []
530
- rubygems_version: 3.5.10
531
- signing_key:
530
+ rubygems_version: 3.5.16
531
+ signing_key:
532
532
  specification_version: 4
533
533
  summary: A command line tool that helps you ship changes to a Kubernetes namespace
534
534
  and understand the result