kubernetes-deploy 0.26.1 → 0.26.2

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: b91f72699606aaef5586e395230e24bcc65cb210ae9dd3f6d99cd8f8bcc12067
4
- data.tar.gz: 3778e23fe3c95ffb85a5b498e43f30603e38dc89445ce95f714df0c9f695f35e
3
+ metadata.gz: f9843cd4324ce81800fa02b9e84093523560c3b84d22f43da17d5f80f592b3c9
4
+ data.tar.gz: cdd79de172e2568e2a2cf2dc86fbc0248c173481903a6c936a762393eb9797bf
5
5
  SHA512:
6
- metadata.gz: 409f9a2ceda29ae6760a32b5eb1b838911a244ad1338c809445a595d0fa79a6f28ebfbc4db6f0c7a3f5c2f3a93dce50d2467e029bc2575f2e061c65207be870f
7
- data.tar.gz: dfc88279b4543e1b4c7e6f2f492412c2146931a2dd8fe843044f969a391de0ee9c8732ffb3872d5e758f480b14c53120e13909ee8b6f14db0e2249f112cd8cc7
6
+ metadata.gz: d7ffcb45240a99cb05259138b65134c1e50d6a0449368b4da1bb7765a65b5a45270fba91a5db7dd2d509af493b85b0fb04314dae23b595b561ebd00e56e402f6
7
+ data.tar.gz: bdcad6cd5291598baf26f954ead30c6b1ce2210cc210d8415290b626ed6533ccd06865a8ad00008eda02f003d855791f3a0aafcadb3cb065720983c442d07ec4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## next
2
2
 
3
+ ## 0.26.2
4
+
5
+ *Enhancements*
6
+ - kubernetes-render outputs results of rendering yml.erb files without passing them
7
+ through a yaml parser. ([#454](https://github.com/Shopify/kubernetes-deploy/pull/454))
8
+
9
+ *Bug fixes*
10
+ - Remove use of deprecated feature preventing use with Kuberentes 1.14 ([#460](https://github.com/Shopify/kubernetes-deploy/pull/460))
11
+
3
12
  ## 0.26.1
4
13
 
5
14
  *Bug fixes*
@@ -19,7 +19,7 @@ module KubernetesDeploy
19
19
  private
20
20
 
21
21
  def fetch_crds
22
- raw_json, _, st = kubectl.run("get", "CustomResourceDefinition", "-a", output: "json", attempts: 5)
22
+ raw_json, _, st = kubectl.run("get", "CustomResourceDefinition", output: "json", attempts: 5)
23
23
  if st.success?
24
24
  JSON.parse(raw_json)["items"]
25
25
  else
@@ -68,9 +68,10 @@ module KubernetesDeploy
68
68
  @logger.info("Rendering #{File.basename(filename)} ...")
69
69
  file_content = File.read(File.join(@template_dir, filename))
70
70
  rendered_content = @renderer.render_template(filename, file_content)
71
- YAML.load_stream(rendered_content, "<rendered> #{filename}") do |doc|
72
- stream.puts YAML.dump(doc)
73
- end
71
+ implicit = true
72
+ YAML.parse_stream(rendered_content, "<rendered> #{filename}") { |d| implicit = d.implicit }
73
+ stream.puts "---\n" if implicit
74
+ stream.puts rendered_content
74
75
  @logger.info("Rendered #{File.basename(filename)}")
75
76
  rescue Psych::SyntaxError => exception
76
77
  raise InvalidTemplateError.new("Template is not valid YAML. #{exception.message}", filename: filename)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module KubernetesDeploy
3
- VERSION = "0.26.1"
3
+ VERSION = "0.26.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubernetes-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.1
4
+ version: 0.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Verey
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-03-27 00:00:00.000000000 Z
12
+ date: 2019-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport