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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +4 -0
- data/lib/krane/kubernetes_resource/service.rb +8 -0
- data/lib/krane/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d78cc316978de660c325dc26a7e6857b4b0c622537558929a769c282007203ce
|
4
|
+
data.tar.gz: a8ff6c78f240824244b77ada8f4e835576cd42a97955c4113edb8369feedc086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea17bc39a0fafc26dc2fd0a0de0c5091e4efdd444548559516136d7cde0b10003b30ce924b65859e89e711f7379d64815e89e98b8bfbf55c82b98ec2c8883ca
|
7
|
+
data.tar.gz: d4d3a0aade84bc17a7add8f11bb436820ad0f6f36202a9bf96b9ca80847291c885d6f249a77ea002efa6b9a4e80bd14b8797247eefb82e8a6d7a528e5db95a91
|
data/CHANGELOG.md
CHANGED
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
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.
|
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-
|
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.
|
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
|