krane 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/1.0-Upgrade.md +1 -1
- data/CHANGELOG.md +15 -0
- data/README.md +2 -2
- data/krane.gemspec +2 -2
- data/lib/krane/cli/deploy_command.rb +1 -1
- data/lib/krane/deploy_task.rb +2 -2
- data/lib/krane/kubernetes_resource.rb +2 -2
- data/lib/krane/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e54a6c3238bfeef82657d2f105794a52aeb23fc33a70f0183372c852a8e0c4f4
|
4
|
+
data.tar.gz: 12282bbe487b74d6d0d7cdda4429c6db426e7fe2a15aa4e1ba1be2c03b29d53f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d92649d9edeec0f4800c36f58a8b48224dad57521cb5aeaa2f94878c9ee5e48d96e6c68a4928ca3182e3aaf8675e83b80cff4308b14080e6a3eaedff10ac2de3
|
7
|
+
data.tar.gz: 2d7478c0870c8ec53f4bba63889aaf96c06b230f7ae146c1486094d913ce69dca0ab9b3fff9c804a56e3378477df4392c656f20e89dcf6f09a6b1b6f7bada354
|
data/1.0-Upgrade.md
CHANGED
@@ -153,7 +153,7 @@ Old flag | New flag | Comments
|
|
153
153
|
Old flag | New flag | Comments
|
154
154
|
--- | --- | ---
|
155
155
|
--bindings=BINDINGS | --bindings=BINDINGS |
|
156
|
-
--template-dir | -f, --
|
156
|
+
--template-dir | -f, --filenames | Changed to be more aligned with `kubectl apply` and other krane tasks
|
157
157
|
$REVISION | --current-sha | The environment variable REVISION was dropped in favour of an explicit flag
|
158
158
|
[none] | --stdin | Allow template filenames given from stdin stream
|
159
159
|
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
## next
|
2
2
|
|
3
|
+
## 1.1.1
|
4
|
+
|
5
|
+
*Enhancements*
|
6
|
+
- Detect and handle case when webhook prevents server-dry-run. [#663](https://github.com/Shopify/krane/pull/663)
|
7
|
+
- Deploy CustomResources after most other resources in the priority deploy phase. [#672](https://github.com/Shopify/krane/pull/672)
|
8
|
+
|
9
|
+
*Bug Fixes*
|
10
|
+
- Prints the correct argument name in error message. [#660](https://github.com/Shopify/krane/pull/660)
|
11
|
+
- Fix mistakes in README.md [#664](https://github.com/Shopify/krane/pull/664), [#659](https://github.com/Shopify/krane/pull/659), & [#668](https://github.com/Shopify/krane/pull/668)
|
12
|
+
- Restores the default value of the `--verbose-log-prefix` flag on `krane deploy` to false. [#673](https://github.com/Shopify/krane/pull/673)
|
13
|
+
|
14
|
+
*Other*
|
15
|
+
|
16
|
+
- Relax dependency requirements. [#657](https://github.com/Shopify/krane/pull/657)
|
17
|
+
|
3
18
|
## 1.1.0
|
4
19
|
|
5
20
|
*Bug Fixes*
|
data/README.md
CHANGED
@@ -503,7 +503,7 @@ Based on this specification `krane run` will create a new pod with the entrypoin
|
|
503
503
|
|
504
504
|
*Options:*
|
505
505
|
|
506
|
-
* `--template=TEMPLATE`:
|
506
|
+
* `--template=TEMPLATE`: Specifies the name of the PodTemplate to use.
|
507
507
|
* `--env-vars=ENV_VARS`: Accepts a list of environment variables to be added to the pod template. For example, `--env-vars="ENV=VAL ENV2=VAL2"` will make `ENV` and `ENV2` available to the container.
|
508
508
|
* `--command=`: Override the default command in the container image.
|
509
509
|
* `--no-verify-result`: Skip verification of pod success
|
@@ -555,7 +555,7 @@ file path prefixed with an `@` sign. An argument error will be raised if the str
|
|
555
555
|
|
556
556
|
```
|
557
557
|
# Comma separated string. Exposes, 'color' and 'size'
|
558
|
-
$ krane render --bindings=color=blue
|
558
|
+
$ krane render --bindings=color=blue,size=large
|
559
559
|
|
560
560
|
# JSON string. Exposes, 'color' and 'size'
|
561
561
|
$ krane render --bindings='{"color":"blue","size":"large"}'
|
data/krane.gemspec
CHANGED
@@ -26,14 +26,14 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.required_ruby_version = '>= 2.4.0'
|
27
27
|
spec.add_dependency("activesupport", ">= 5.0")
|
28
28
|
spec.add_dependency("kubeclient", "~> 4.3")
|
29
|
-
spec.add_dependency("googleauth", "~> 0.8
|
29
|
+
spec.add_dependency("googleauth", "~> 0.8")
|
30
30
|
spec.add_dependency("ejson", "~> 1.0")
|
31
31
|
spec.add_dependency("colorize", "~> 0.8")
|
32
32
|
spec.add_dependency("statsd-instrument", ['>= 2.8', "< 3.1"])
|
33
33
|
spec.add_dependency("oj", "~> 3.0")
|
34
34
|
spec.add_dependency("concurrent-ruby", "~> 1.1")
|
35
35
|
spec.add_dependency("jsonpath", "~> 0.9.6")
|
36
|
-
spec.add_dependency("thor", "
|
36
|
+
spec.add_dependency("thor", ">= 0.20.3", "< 2.0")
|
37
37
|
|
38
38
|
# Basics
|
39
39
|
spec.add_development_dependency("bundler")
|
@@ -26,7 +26,7 @@ module Krane
|
|
26
26
|
"selector" => { type: :string, banner: "'label=value'",
|
27
27
|
desc: "Select workloads by selector(s)" },
|
28
28
|
"verbose-log-prefix" => { type: :boolean, desc: "Add [context][namespace] to the log prefix",
|
29
|
-
default:
|
29
|
+
default: false },
|
30
30
|
"verify-result" => { type: :boolean, default: true,
|
31
31
|
desc: "Verify workloads correctly deployed" },
|
32
32
|
}
|
data/lib/krane/deploy_task.rb
CHANGED
@@ -16,7 +16,7 @@ module Krane
|
|
16
16
|
TIMEOUT = 5.minutes
|
17
17
|
LOG_LINE_COUNT = 250
|
18
18
|
SERVER_DRY_RUN_DISABLED_ERROR =
|
19
|
-
/(unknown flag: --server-dry-run)|(
|
19
|
+
/(unknown flag: --server-dry-run)|(does[\s\']n[o|']t support dry[-\s]run)|(dryRun alpha feature is disabled)/
|
20
20
|
|
21
21
|
DISABLE_FETCHING_LOG_INFO = 'DISABLE_FETCHING_LOG_INFO'
|
22
22
|
DISABLE_FETCHING_EVENT_INFO = 'DISABLE_FETCHING_EVENT_INFO'
|
@@ -256,7 +256,7 @@ module Krane
|
|
256
256
|
if cause == :gave_up
|
257
257
|
debug_heading = ColorizedString.new("#{id}: GLOBAL WATCH TIMEOUT (#{info_hash[:timeout]} seconds)").yellow
|
258
258
|
helpful_info << "If you expected it to take longer than #{info_hash[:timeout]} seconds for your deploy"\
|
259
|
-
" to roll out, increase --
|
259
|
+
" to roll out, increase --global-timeout."
|
260
260
|
elsif deploy_failed?
|
261
261
|
debug_heading = ColorizedString.new("#{id}: FAILED").red
|
262
262
|
helpful_info << failure_message if failure_message.present?
|
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: 1.1.
|
4
|
+
version: 1.1.1
|
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:
|
13
|
+
date: 2020-01-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -46,14 +46,14 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.8
|
49
|
+
version: '0.8'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.8
|
56
|
+
version: '0.8'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: ejson
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,16 +148,22 @@ dependencies:
|
|
148
148
|
name: thor
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- - "
|
151
|
+
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: 0.20.3
|
154
|
+
- - "<"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '2.0'
|
154
157
|
type: :runtime
|
155
158
|
prerelease: false
|
156
159
|
version_requirements: !ruby/object:Gem::Requirement
|
157
160
|
requirements:
|
158
|
-
- - "
|
161
|
+
- - ">="
|
159
162
|
- !ruby/object:Gem::Version
|
160
163
|
version: 0.20.3
|
164
|
+
- - "<"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '2.0'
|
161
167
|
- !ruby/object:Gem::Dependency
|
162
168
|
name: bundler
|
163
169
|
requirement: !ruby/object:Gem::Requirement
|