krane 2.1.6 → 2.1.7

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: d496112ecd7ff05ab81ab6cad622632a7d169b38d1ad0340c5dc2088aa061677
4
- data.tar.gz: 16c47fa820e244a7d42080e3fdf81065eda9167dda898e12412ab5c72d5bd4be
3
+ metadata.gz: ea9b225a3125e3282de257f17c7d0b1752e710378810b3d6bef4b491e93b9a1d
4
+ data.tar.gz: e527ce76d2a9a8fcded6d430894ce845b50d852a18c836006e4d322bbdc33c3f
5
5
  SHA512:
6
- metadata.gz: 97eeceba4a6f132ec19bd40bfdcf9fb7ad94f0a791f784d6b3ec0e01eb78eddca2e6d5e6809fc2feb15d6f5a4aba9c7eee295e4660998d595d267700566d7ad5
7
- data.tar.gz: 1c364bd503c83eb902e548d68d06aed5235e1ef33c8e72e3fe2fd90871da76d8580be288b822ac768fb75a1dd7ed0c1c801634a0d7068a18d74b8263670b0f7c
6
+ metadata.gz: efa243480b90f8ed0c694a012bbb3c0ef359b911beff69e9661201d355e131d92553f241ad1ee33b983125c516575be2d3243fe4e3ede37832220fefa6b01930
7
+ data.tar.gz: d736754902a0a6bed299e8cfb2fb41cd0f849da183bddfc327fb319e120dc2a4e7ae1ffd56520beec94c867206dbbaa046cd9fb114f5bfae3b632f909e38d28c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## next
2
2
 
3
+ ## 2.1.7
4
+
5
+ *Enhancements*
6
+ - ENV["KRANE_LOG_LINE_LIMIT"] allows the number of container logs printed for failures to be configurable from the 25 line default [#803](https://github.com/Shopify/krane/pull/803).
7
+
8
+ ## 2.1.6
9
+
3
10
  *Enhancements*
4
11
  - Remove the need for a hard coded GVK overide list via improvements to cluster discovery [#778](https://github.com/Shopify/krane/pull/778)
5
12
 
@@ -101,7 +101,7 @@ module Krane
101
101
  end
102
102
 
103
103
  def kubectl
104
- @kubectl ||= Kubectl.new(task_config: @task_config, log_failure_by_default: true, default_timeout: 1)
104
+ @kubectl ||= Kubectl.new(task_config: @task_config, log_failure_by_default: true, default_timeout: 2)
105
105
  end
106
106
  end
107
107
  end
@@ -3,7 +3,7 @@ module Krane
3
3
  class ContainerLogs
4
4
  attr_reader :lines, :container_name
5
5
 
6
- DEFAULT_LINE_LIMIT = 25
6
+ DEFAULT_LINE_LIMIT = Integer(ENV.fetch('KRANE_LOG_LINE_LIMIT', 25))
7
7
 
8
8
  def initialize(parent_id:, container_name:, namespace:, context:, logger:)
9
9
  @parent_id = parent_id
data/lib/krane/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Krane
3
- VERSION = "2.1.6"
3
+ VERSION = "2.1.7"
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: 2.1.6
4
+ version: 2.1.7
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: 2021-02-11 00:00:00.000000000 Z
13
+ date: 2021-02-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport