kubernetes-deploy 0.7.7 → 0.7.8
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 +4 -4
- data/lib/kubernetes-deploy/runner.rb +3 -3
- data/lib/kubernetes-deploy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c72be87cc8ea1503ae698d2a789ceba24015691e
|
|
4
|
+
data.tar.gz: 42985326dfd947a6bb549f595bf5aae4f6296889
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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+\.
|
|
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 =~ /\.
|
|
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
|
|
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.
|
|
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-
|
|
12
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|