krane 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 134e3b2ab58dee212bd47a7c9e120624e4e2c4bb38901fc50cf7bf7f869634fa
4
- data.tar.gz: 6ce72eaf439ab89483913c84b5c53bd33f1ce13397b21538bfa8c7536fb20a5e
3
+ metadata.gz: e54a6c3238bfeef82657d2f105794a52aeb23fc33a70f0183372c852a8e0c4f4
4
+ data.tar.gz: 12282bbe487b74d6d0d7cdda4429c6db426e7fe2a15aa4e1ba1be2c03b29d53f
5
5
  SHA512:
6
- metadata.gz: 833c2f93f0219da30708126d5df2a639423508c4af5142cc594c4db2579d6d1cecee61b0fc272b04d6963a55c4fa08c0fcc5b413d497b70b22797e61b7f4ab2f
7
- data.tar.gz: ec7354f93282ec03ca944834c7e849f5889d6bb71e30927fc0d466dafd41a06780a0c412859251ee30b4919e3b65f297d6b47bb4cbb7ec7b31179d08bb14eb75
6
+ metadata.gz: d92649d9edeec0f4800c36f58a8b48224dad57521cb5aeaa2f94878c9ee5e48d96e6c68a4928ca3182e3aaf8675e83b80cff4308b14080e6a3eaedff10ac2de3
7
+ data.tar.gz: 2d7478c0870c8ec53f4bba63889aaf96c06b230f7ae146c1486094d913ce69dca0ab9b3fff9c804a56e3378477df4392c656f20e89dcf6f09a6b1b6f7bada354
@@ -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, --filename | Changed to be more aligned with `kubectl apply` and other krane tasks
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
 
@@ -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`: Specifies the name of the PodTemplate to use (default is `task-runner-template` if this option is not set).
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 size=large
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"}'
@@ -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.0")
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", "~> 0.20.3")
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: true },
29
+ default: false },
30
30
  "verify-result" => { type: :boolean, default: true,
31
31
  desc: "Verify workloads correctly deployed" },
32
32
  }
@@ -60,14 +60,14 @@ module Krane
60
60
  before_crs = %w(
61
61
  ResourceQuota
62
62
  NetworkPolicy
63
- )
64
- after_crs = %w(
65
63
  ConfigMap
66
64
  PersistentVolumeClaim
67
65
  ServiceAccount
68
66
  Role
69
67
  RoleBinding
70
68
  Secret
69
+ )
70
+ after_crs = %w(
71
71
  Pod
72
72
  )
73
73
 
@@ -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)|(doesn't support dry-run)|(dryRun alpha feature is disabled)/
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 --max-watch-seconds."
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?
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Krane
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
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: 1.1.0
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: 2019-12-12 00:00:00.000000000 Z
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.0
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.0
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