kubernetes-deploy 0.7.7 → 0.7.8

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
  SHA1:
3
- metadata.gz: 736dcd89768f7d52df6c38968e10dcb19b05f08c
4
- data.tar.gz: 95592ab3302c663f8144b191b951e7dc11debd4d
3
+ metadata.gz: c72be87cc8ea1503ae698d2a789ceba24015691e
4
+ data.tar.gz: 42985326dfd947a6bb549f595bf5aae4f6296889
5
5
  SHA512:
6
- metadata.gz: 7c7be904670a6dbffb98f9252e5d0d5c804b91958ac723505882c9edcde01a54f68753cc47b8a085bfe02118b006911805ce995e7b29c84669bdd18ea41bde30
7
- data.tar.gz: 5c973ed3573aa46a155c982f1f780b64ba47a391fc5d970f5d9b255d8bce1c17bbfdac1b6e3a1aa56433cf602a589bf689c2cb743aa48178120bcfeaf1b21be7
6
+ metadata.gz: 6a9d5f8e191e7de823812350ba7931dc504b74a8268cbae3f80a39da4dab2aea47265e6a9aaf65d2e400d9477302490d0198450df25460360c1983a484f21e29
7
+ data.tar.gz: 89e0078eb5300a7b791a1205154a4c322b3ce2c0370ac20bd70b2fc9efe710c856c2fa0fd463fcbc1cc48e19561cb5f69d646926b60c1f18b385264741f4343f
@@ -181,7 +181,7 @@ module KubernetesDeploy
181
181
  def find_bad_file_from_kubectl_output(stderr)
182
182
  # Output example:
183
183
  # Error from server (BadRequest): error when creating "/path/to/configmap-gqq5oh.yml20170411-33615-t0t3m":
184
- match = stderr.match(%r{BadRequest.*"(?<path>\/\S+\.yml\S+)"})
184
+ match = stderr.match(%r{BadRequest.*"(?<path>\/\S+\.ya?ml\S+)"})
185
185
  return unless match
186
186
 
187
187
  path = match[:path]
@@ -215,7 +215,7 @@ module KubernetesDeploy
215
215
  resources = []
216
216
  @logger.info("Discovering templates:")
217
217
  Dir.foreach(@template_dir) do |filename|
218
- next unless filename.end_with?(".yml.erb", ".yml")
218
+ next unless filename.end_with?(".yml.erb", ".yml", ".yaml", ".yaml.erb")
219
219
 
220
220
  split_templates(filename) do |tempfile|
221
221
  resource_id = discover_resource_via_dry_run(tempfile)
@@ -326,7 +326,7 @@ module KubernetesDeploy
326
326
 
327
327
  if !File.directory?(@template_dir)
328
328
  errors << "Template directory `#{@template_dir}` doesn't exist"
329
- elsif Dir.entries(@template_dir).none? { |file| file =~ /\.yml(\.erb)?$/ }
329
+ elsif Dir.entries(@template_dir).none? { |file| file =~ /\.ya?ml(\.erb)?$/ }
330
330
  errors << "`#{@template_dir}` doesn't contain valid templates (postfix .yml or .yml.erb)"
331
331
  end
332
332
 
@@ -1,3 +1,3 @@
1
1
  module KubernetesDeploy
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
3
3
  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.7.7
4
+ version: 0.7.8
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: 2017-06-24 00:00:00.000000000 Z
12
+ date: 2017-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport