kubes 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/README.md +52 -0
  4. data/docs/_docs/dsl/resources/secret.md +19 -2
  5. data/docs/_docs/generators.md +4 -4
  6. data/docs/_docs/helpers/aws/advanced/secrets.md +131 -0
  7. data/docs/_docs/helpers/aws/advanced/ssm.md +78 -0
  8. data/docs/_docs/helpers/aws/advanced.md +10 -0
  9. data/docs/_docs/helpers/aws/secrets.md +18 -88
  10. data/docs/_docs/helpers/aws/ssm.md +20 -38
  11. data/docs/_docs/helpers/google/advanced/secrets.md +78 -0
  12. data/docs/_docs/helpers/google/advanced.md +10 -0
  13. data/docs/_docs/helpers/google/secrets.md +18 -27
  14. data/docs/_docs/helpers.md +16 -2
  15. data/docs/_docs/intro.md +2 -11
  16. data/docs/_docs/layering/mix.md +99 -0
  17. data/docs/_docs/layering.md +2 -0
  18. data/docs/_docs/patterns/multiple-envs.md +55 -0
  19. data/docs/_docs/variables/advanced.md +62 -0
  20. data/docs/_docs/variables/basic.md +137 -0
  21. data/docs/_docs/variables.md +23 -0
  22. data/docs/_docs/vs/custom.md +109 -0
  23. data/docs/_docs/vs/helm.md +243 -0
  24. data/docs/_docs/vs/kustomize.md +167 -0
  25. data/docs/_docs/vs.md +10 -0
  26. data/docs/_includes/intro/features.md +10 -0
  27. data/docs/_includes/layering/layers.md +2 -4
  28. data/docs/_includes/sidebar.html +39 -0
  29. data/docs/_includes/vs/article.md +1 -0
  30. data/docs/_includes/vs/kubes/layering.md +10 -0
  31. data/docs/_includes/vs/kubes/structure.md +24 -0
  32. data/docs/_reference/kubes-new-help.md +15 -0
  33. data/docs/_reference/kubes-new-helper.md +25 -0
  34. data/docs/_reference/kubes-new-resource.md +56 -0
  35. data/docs/_reference/kubes-new-variable.md +20 -0
  36. data/docs/_reference/kubes-new.md +6 -38
  37. data/kubes.gemspec +2 -2
  38. data/lib/kubes/auth/base.rb +21 -0
  39. data/lib/kubes/auth/ecr.rb +1 -15
  40. data/lib/kubes/auth/gcr.rb +24 -0
  41. data/lib/kubes/auth.rb +4 -1
  42. data/lib/kubes/cli/help/new/helper.md +4 -0
  43. data/lib/kubes/cli/help/{new.md → new/resource.md} +3 -3
  44. data/lib/kubes/cli/new/helper.rb +24 -0
  45. data/lib/kubes/cli/new/resource.rb +97 -0
  46. data/lib/kubes/cli/new/variable.rb +16 -0
  47. data/lib/kubes/cli/new.rb +12 -94
  48. data/lib/kubes/command.rb +1 -1
  49. data/lib/kubes/compiler/decorator/base.rb +1 -1
  50. data/lib/kubes/compiler/dsl/core/base.rb +6 -9
  51. data/lib/kubes/compiler/layering.rb +21 -7
  52. data/lib/kubes/compiler/shared/custom_variables.rb +38 -0
  53. data/lib/kubes/compiler/shared/plugin_helpers.rb +14 -0
  54. data/lib/kubes/compiler/strategy/base.rb +59 -2
  55. data/lib/kubes/compiler/strategy/dsl.rb +0 -29
  56. data/lib/kubes/compiler/strategy/erb.rb +10 -22
  57. data/lib/kubes/compiler/strategy.rb +7 -6
  58. data/lib/kubes/compiler/util/normalize.rb +6 -3
  59. data/lib/kubes/compiler/util/yaml_dump.rb +4 -4
  60. data/lib/kubes/plugin.rb +14 -0
  61. data/lib/kubes/util/sh.rb +1 -1
  62. data/lib/kubes/version.rb +1 -1
  63. data/lib/kubes.rb +4 -3
  64. data/lib/templates/new/helper/file.rb +2 -0
  65. data/lib/templates/new/{dsl → resource/dsl}/backend_config.rb +0 -0
  66. data/lib/templates/new/{dsl → resource/dsl}/config_map.rb +0 -0
  67. data/lib/templates/new/{dsl → resource/dsl}/daemon_set.rb +0 -0
  68. data/lib/templates/new/{dsl → resource/dsl}/deployment.rb +0 -0
  69. data/lib/templates/new/{dsl → resource/dsl}/ingress.rb +0 -0
  70. data/lib/templates/new/{dsl → resource/dsl}/job.rb +0 -0
  71. data/lib/templates/new/{dsl → resource/dsl}/managed_certificate.rb +0 -0
  72. data/lib/templates/new/{dsl → resource/dsl}/namespace.rb +0 -0
  73. data/lib/templates/new/{dsl → resource/dsl}/network_policy.rb +0 -0
  74. data/lib/templates/new/{dsl → resource/dsl}/pod.rb +0 -0
  75. data/lib/templates/new/{dsl → resource/dsl}/role.rb +0 -0
  76. data/lib/templates/new/{dsl → resource/dsl}/role_binding.rb +0 -0
  77. data/lib/templates/new/{dsl → resource/dsl}/secret.rb +0 -0
  78. data/lib/templates/new/{dsl → resource/dsl}/service.rb +0 -0
  79. data/lib/templates/new/{dsl → resource/dsl}/service_account.rb +0 -0
  80. data/lib/templates/new/{yaml → resource/yaml}/backend_config.yaml +0 -0
  81. data/lib/templates/new/{yaml → resource/yaml}/config_map.yaml +0 -0
  82. data/lib/templates/new/{yaml → resource/yaml}/daemon_set.yaml +0 -0
  83. data/lib/templates/new/{yaml → resource/yaml}/deployment.yaml +0 -0
  84. data/lib/templates/new/{yaml → resource/yaml}/ingress.yaml +0 -0
  85. data/lib/templates/new/{yaml → resource/yaml}/job.yaml +0 -0
  86. data/lib/templates/new/{yaml → resource/yaml}/managed_certificate.yaml +0 -0
  87. data/lib/templates/new/{yaml → resource/yaml}/namespace.yaml +0 -0
  88. data/lib/templates/new/{yaml → resource/yaml}/network_policy.yaml +0 -0
  89. data/lib/templates/new/{yaml → resource/yaml}/pod.yaml +0 -0
  90. data/lib/templates/new/{yaml → resource/yaml}/role.yaml +0 -0
  91. data/lib/templates/new/{yaml → resource/yaml}/role_binding.yaml +0 -0
  92. data/lib/templates/new/{yaml → resource/yaml}/secret.yaml +0 -0
  93. data/lib/templates/new/{yaml → resource/yaml}/service.yaml +0 -0
  94. data/lib/templates/new/{yaml → resource/yaml}/service_account.yaml +0 -0
  95. data/lib/templates/new/variable/file.rb +1 -0
  96. data/spec/fixtures/multiple-files/{deployment-1.rb → .kubes/resources/web/deployment-1.rb} +0 -0
  97. data/spec/fixtures/multiple-files/{deployment-2.rb → .kubes/resources/web/deployment-2.rb} +0 -0
  98. data/spec/fixtures/project/.kubes/resources/{deployment.rb → web/deployment.rb} +0 -0
  99. data/spec/fixtures/project/.kubes/resources/{foobar.rb → web/empty.rb} +0 -0
  100. data/spec/fixtures/project/.kubes/resources/{service.rb → web/service.rb} +1 -1
  101. data/spec/fixtures/syntax/{network_policy.rb → .kubes/resources/web/network_policy.rb} +0 -0
  102. data/spec/fixtures/syntax/{pod.rb → .kubes/resources/web/pod.rb} +0 -0
  103. data/spec/kubes/compiler/strategy/dsl_spec.rb +2 -2
  104. data/spec/kubes/compiler_spec.rb +1 -1
  105. data/spec/kubes/dsl/network_policy_spec.rb +1 -1
  106. data/spec/kubes/dsl/pod_spec.rb +1 -1
  107. metadata +81 -48
@@ -1,33 +1,4 @@
1
1
  class Kubes::Compiler::Strategy
2
2
  class Dsl < Base
3
- include Kubes::Compiler::Util::Normalize
4
-
5
- def run
6
- load_custom_helpers
7
- dsl = dsl_class.new(@options) # Deployment, Service, etc
8
- data = dsl.run
9
- Result.new(@save_file, data)
10
- end
11
-
12
- def dsl_class
13
- if block_form?
14
- Kubes::Compiler::Dsl::Core::Blocks
15
- else
16
- syntax_class
17
- end
18
- end
19
-
20
- def syntax_class
21
- klass_name = normalize_kind(@save_file)
22
- "Kubes::Compiler::Dsl::Syntax::#{klass_name}".constantize
23
- rescue NameError
24
- logger.debug "Using default resource for: #{klass_name}"
25
- Kubes::Compiler::Dsl::Syntax::Resource # default
26
- end
27
-
28
- def block_form?
29
- type = extract_type(@save_file)
30
- type.pluralize == type
31
- end
32
3
  end
33
4
  end
@@ -4,31 +4,19 @@ class Kubes::Compiler::Strategy
4
4
  class Erb < Base
5
5
  extend Kubes::Compiler::Dsl::Core::Fields
6
6
  include Kubes::Compiler::Dsl::Core::Helpers
7
+ include Kubes::Compiler::Layering
7
8
  include Kubes::Compiler::Shared::CustomHelpers
9
+ include Kubes::Compiler::Shared::CustomVariables
8
10
  include Kubes::Compiler::Shared::Helpers
9
- include Kubes::Compiler::Layering
10
-
11
- def run
11
+ include Kubes::Compiler::Shared::PluginHelpers
12
+
13
+ def initialize(options={})
14
+ super
15
+ # For ERB scope is in this same Strategy::Erb class
16
+ # For DSL scope is within the each for the Resource classes. IE: kubes/compile/dsl/core/base.rb
17
+ load_plugin_helpers
18
+ load_custom_variables
12
19
  load_custom_helpers
13
- @data = {}
14
-
15
- render_files(pre_layers)
16
- render(@path) # main resource definition
17
- render_files(post_layers)
18
-
19
- Result.new(@save_file, @data)
20
- end
21
-
22
- def render_files(paths)
23
- paths.each do |path|
24
- render(path)
25
- end
26
- end
27
-
28
- # render and merge
29
- def render(path)
30
- result = render_result(path)
31
- @data.deeper_merge!(result)
32
20
  end
33
21
 
34
22
  def render_result(path)
@@ -16,12 +16,13 @@ class Kubes::Compiler
16
16
  end
17
17
 
18
18
  def strategy_class
19
- ext = File.extname(@path)
20
- case ext
21
- when '.rb' then Dsl
22
- when '.yaml','.yml' then Erb
23
- else Pass
24
- end
19
+ ext = File.extname(@path).sub('.','').to_sym
20
+ map = {
21
+ rb: Dsl,
22
+ yaml: Erb,
23
+ yml: Erb,
24
+ }
25
+ map[ext]
25
26
  end
26
27
  end
27
28
  end
@@ -1,11 +1,14 @@
1
1
  module Kubes::Compiler::Util
2
2
  module Normalize
3
3
  def normalize_kind(path)
4
- extract_type(path).underscore.camelize # Deployment, Service, Ingress, ManagedCertificate, etc
4
+ info = path.sub(%r{.*/.kubes/resources/}, '')
5
+ extract_type(info).underscore.camelize # Deployment, Service, Ingress, ManagedCertificate, etc
5
6
  end
6
7
 
7
- def extract_type(path)
8
- File.basename(path).sub('.yaml','').sub('.yml','').sub('.rb','').sub(/-.*/,'')
8
+ # info: web/service.yaml
9
+ def extract_type(info)
10
+ _, kind = info.split('/')
11
+ kind.sub('.yaml','').sub('.yml','').sub('.rb','').sub(/-.*/,'')
9
12
  end
10
13
  end
11
14
  end
@@ -4,12 +4,12 @@ require "yaml"
4
4
  module Kubes::Compiler::Util
5
5
  module YamlDump
6
6
  def yaml_dump(data)
7
- if data.is_a?(Kubes::Compiler::Dsl::Core::Blocks)
8
- items = data.results.map { |k,v| standardize_yaml(v) }
9
- items.map(&:to_yaml).join("")
10
- else
7
+ if data.key?("kind") # single resource in YAML
11
8
  data = standardize_yaml(data)
12
9
  data.to_yaml
10
+ else
11
+ items = data.map { |k,v| standardize_yaml(v) }
12
+ items.map(&:to_yaml).join("")
13
13
  end
14
14
  end
15
15
 
@@ -0,0 +1,14 @@
1
+ module Kubes
2
+ module Plugin
3
+ @@plugins = []
4
+ def plugins
5
+ @@plugins
6
+ end
7
+
8
+ def register(klass)
9
+ @@plugins << klass
10
+ end
11
+
12
+ extend self
13
+ end
14
+ end
data/lib/kubes/util/sh.rb CHANGED
@@ -32,7 +32,7 @@ module Kubes::Util
32
32
 
33
33
  def sh_capture(command, options={})
34
34
  exit_on_fail = options[:exit_on_fail].nil? ? true : options[:exit_on_fail]
35
- logger.info "=> #{command}" if options[:show_command]
35
+ logger.debug "=> #{command}"
36
36
  out = `#{command}`.strip
37
37
  unless $?.success?
38
38
  logger.error "ERROR: running #{command}".color(:red)
data/lib/kubes/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kubes
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
data/lib/kubes.rb CHANGED
@@ -1,6 +1,10 @@
1
1
  $stdout.sync = true unless ENV["KUBES_STDOUT_SYNC"] == "0"
2
2
 
3
3
  $:.unshift(File.expand_path("../", __FILE__))
4
+
5
+ require "kubes/autoloader"
6
+ Kubes::Autoloader.setup
7
+
4
8
  require "active_support/core_ext/class"
5
9
  require "active_support/core_ext/hash"
6
10
  require "active_support/core_ext/string"
@@ -20,9 +24,6 @@ require "kubes_google"
20
24
 
21
25
  DslEvaluator.backtrace_reject = "lib/kubes"
22
26
 
23
- require "kubes/autoloader"
24
- Kubes::Autoloader.setup
25
-
26
27
  module Kubes
27
28
  class Error < StandardError; end
28
29
  class MissingDockerImage < Error; end
@@ -0,0 +1,2 @@
1
+ module <%= underscored_name.camelize %>
2
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ @example = "<%= Kubes.env %>-value"
@@ -1,3 +1,3 @@
1
1
  name "demo-web"
2
2
  port 80
3
- target_port 3000
3
+ targetPort 3000
@@ -3,7 +3,7 @@ describe Kubes::Compiler::Strategy::Dsl do
3
3
  let(:options) { {path: fixture(resource) } }
4
4
 
5
5
  context "standard" do
6
- let(:resource) { "project/.kubes/resources/deployment" }
6
+ let(:resource) { "project/.kubes/resources/web/deployment" }
7
7
  it "run" do
8
8
  result = dsl.run
9
9
  expect(dsl.dsl_class).to eq(Kubes::Compiler::Dsl::Syntax::Deployment)
@@ -25,7 +25,7 @@ describe Kubes::Compiler::Strategy::Dsl do
25
25
  end
26
26
 
27
27
  context "multiple files" do
28
- let(:resource) { "multiple-files/deployment-1" }
28
+ let(:resource) { "multiple-files/.kubes/resources/web/deployment-1" }
29
29
  it "run" do
30
30
  result = dsl.run
31
31
  expect(dsl.dsl_class).to eq(Kubes::Compiler::Dsl::Syntax::Deployment)
@@ -4,7 +4,7 @@ describe Kubes::Compiler do
4
4
  allow(compiler).to receive(:write_full)
5
5
  compiler
6
6
  end
7
- let(:options) { {path: "spec/fixtures/project/.kubes/deployment.rb" } }
7
+ let(:options) { {path: "spec/fixtures/project/.kubes/resources/web/deployment.rb" } }
8
8
 
9
9
  describe "compiler" do
10
10
  it "run" do
@@ -1,6 +1,6 @@
1
1
  describe Kubes::Compiler::Dsl::Syntax::NetworkPolicy do
2
2
  let(:evaluator) { described_class.new(options) }
3
- let(:options) { {path: fixture("syntax/network_policy") } }
3
+ let(:options) { {path: fixture("syntax/.kubes/resources/web/network_policy") } }
4
4
 
5
5
  context "network_policy" do
6
6
  it "run" do
@@ -1,6 +1,6 @@
1
1
  describe Kubes::Compiler::Dsl::Syntax::Pod do
2
2
  let(:evaluator) { described_class.new(options) }
3
- let(:options) { {path: fixture("syntax/pod") } }
3
+ let(:options) { {path: fixture("syntax/.kubes/resources/web/pod") } }
4
4
 
5
5
  context "pod" do
6
6
  it "run" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-04 00:00:00.000000000 Z
11
+ date: 2020-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -302,11 +302,16 @@ files:
302
302
  - docs/_docs/generators.md
303
303
  - docs/_docs/helpers.md
304
304
  - docs/_docs/helpers/aws.md
305
+ - docs/_docs/helpers/aws/advanced.md
306
+ - docs/_docs/helpers/aws/advanced/secrets.md
307
+ - docs/_docs/helpers/aws/advanced/ssm.md
305
308
  - docs/_docs/helpers/aws/iam-role.md
306
309
  - docs/_docs/helpers/aws/secrets.md
307
310
  - docs/_docs/helpers/aws/ssm.md
308
311
  - docs/_docs/helpers/custom.md
309
312
  - docs/_docs/helpers/google.md
313
+ - docs/_docs/helpers/google/advanced.md
314
+ - docs/_docs/helpers/google/advanced/secrets.md
310
315
  - docs/_docs/helpers/google/secrets.md
311
316
  - docs/_docs/helpers/google/service-account.md
312
317
  - docs/_docs/intro.md
@@ -320,6 +325,7 @@ files:
320
325
  - docs/_docs/layering.md
321
326
  - docs/_docs/layering/dsl.md
322
327
  - docs/_docs/layering/merge.md
328
+ - docs/_docs/layering/mix.md
323
329
  - docs/_docs/layering/yaml.md
324
330
  - docs/_docs/learn/dsl.md
325
331
  - docs/_docs/learn/dsl/change.md
@@ -348,11 +354,19 @@ files:
348
354
  - docs/_docs/patterns.md
349
355
  - docs/_docs/patterns/clock-web-worker.md
350
356
  - docs/_docs/patterns/migrations.md
357
+ - docs/_docs/patterns/multiple-envs.md
351
358
  - docs/_docs/patterns/secrets.md
352
359
  - docs/_docs/resources.md
353
360
  - docs/_docs/resources/base.md
354
361
  - docs/_docs/resources/role.md
355
362
  - docs/_docs/resources/shared.md
363
+ - docs/_docs/variables.md
364
+ - docs/_docs/variables/advanced.md
365
+ - docs/_docs/variables/basic.md
366
+ - docs/_docs/vs.md
367
+ - docs/_docs/vs/custom.md
368
+ - docs/_docs/vs/helm.md
369
+ - docs/_docs/vs/kustomize.md
356
370
  - docs/_docs/yaml.md
357
371
  - docs/_includes/commands.html
358
372
  - docs/_includes/config/hooks/options.md
@@ -365,6 +379,7 @@ files:
365
379
  - docs/_includes/google_analytics.html
366
380
  - docs/_includes/header.html
367
381
  - docs/_includes/helpers/base64.md
382
+ - docs/_includes/intro/features.md
368
383
  - docs/_includes/intro/install.md
369
384
  - docs/_includes/js.html
370
385
  - docs/_includes/kubes-steps.md
@@ -377,6 +392,9 @@ files:
377
392
  - docs/_includes/learn/start.md
378
393
  - docs/_includes/reference.md
379
394
  - docs/_includes/sidebar.html
395
+ - docs/_includes/vs/article.md
396
+ - docs/_includes/vs/kubes/layering.md
397
+ - docs/_includes/vs/kubes/structure.md
380
398
  - docs/_layouts/default.html
381
399
  - docs/_reference/kubes-apply.md
382
400
  - docs/_reference/kubes-clean.md
@@ -394,6 +412,10 @@ files:
394
412
  - docs/_reference/kubes-get.md
395
413
  - docs/_reference/kubes-init.md
396
414
  - docs/_reference/kubes-logs.md
415
+ - docs/_reference/kubes-new-help.md
416
+ - docs/_reference/kubes-new-helper.md
417
+ - docs/_reference/kubes-new-resource.md
418
+ - docs/_reference/kubes-new-variable.md
397
419
  - docs/_reference/kubes-new.md
398
420
  - docs/_reference/kubes-prune.md
399
421
  - docs/_reference/kubes-version.md
@@ -507,7 +529,9 @@ files:
507
529
  - lib/kubes/args/custom.rb
508
530
  - lib/kubes/args/dsl.rb
509
531
  - lib/kubes/auth.rb
532
+ - lib/kubes/auth/base.rb
510
533
  - lib/kubes/auth/ecr.rb
534
+ - lib/kubes/auth/gcr.rb
511
535
  - lib/kubes/autoloader.rb
512
536
  - lib/kubes/aws_services.rb
513
537
  - lib/kubes/cli.rb
@@ -527,10 +551,14 @@ files:
527
551
  - lib/kubes/cli/help/completion_script.md
528
552
  - lib/kubes/cli/help/deploy.md
529
553
  - lib/kubes/cli/help/exec.md
530
- - lib/kubes/cli/help/new.md
554
+ - lib/kubes/cli/help/new/helper.md
555
+ - lib/kubes/cli/help/new/resource.md
531
556
  - lib/kubes/cli/init.rb
532
557
  - lib/kubes/cli/logs.rb
533
558
  - lib/kubes/cli/new.rb
559
+ - lib/kubes/cli/new/helper.rb
560
+ - lib/kubes/cli/new/resource.rb
561
+ - lib/kubes/cli/new/variable.rb
534
562
  - lib/kubes/cli/prune.rb
535
563
  - lib/kubes/cli/sequence.rb
536
564
  - lib/kubes/command.rb
@@ -567,8 +595,10 @@ files:
567
595
  - lib/kubes/compiler/dsl/syntax/service_account.rb
568
596
  - lib/kubes/compiler/layering.rb
569
597
  - lib/kubes/compiler/shared/custom_helpers.rb
598
+ - lib/kubes/compiler/shared/custom_variables.rb
570
599
  - lib/kubes/compiler/shared/helpers.rb
571
600
  - lib/kubes/compiler/shared/helpers/deprecated.rb
601
+ - lib/kubes/compiler/shared/plugin_helpers.rb
572
602
  - lib/kubes/compiler/strategy.rb
573
603
  - lib/kubes/compiler/strategy/base.rb
574
604
  - lib/kubes/compiler/strategy/dsl.rb
@@ -611,6 +641,7 @@ files:
611
641
  - lib/kubes/kubectl/ordering.rb
612
642
  - lib/kubes/logger.rb
613
643
  - lib/kubes/logging.rb
644
+ - lib/kubes/plugin.rb
614
645
  - lib/kubes/util/consider.rb
615
646
  - lib/kubes/util/sh.rb
616
647
  - lib/kubes/util/sure.rb
@@ -626,36 +657,38 @@ files:
626
657
  - lib/templates/dsl/.kubes/resources/web/deployment/dev.rb
627
658
  - lib/templates/dsl/.kubes/resources/web/deployment/prod.rb
628
659
  - lib/templates/dsl/.kubes/resources/web/service.rb
629
- - lib/templates/new/dsl/backend_config.rb
630
- - lib/templates/new/dsl/config_map.rb
631
- - lib/templates/new/dsl/daemon_set.rb
632
- - lib/templates/new/dsl/deployment.rb
633
- - lib/templates/new/dsl/ingress.rb
634
- - lib/templates/new/dsl/job.rb
635
- - lib/templates/new/dsl/managed_certificate.rb
636
- - lib/templates/new/dsl/namespace.rb
637
- - lib/templates/new/dsl/network_policy.rb
638
- - lib/templates/new/dsl/pod.rb
639
- - lib/templates/new/dsl/role.rb
640
- - lib/templates/new/dsl/role_binding.rb
641
- - lib/templates/new/dsl/secret.rb
642
- - lib/templates/new/dsl/service.rb
643
- - lib/templates/new/dsl/service_account.rb
644
- - lib/templates/new/yaml/backend_config.yaml
645
- - lib/templates/new/yaml/config_map.yaml
646
- - lib/templates/new/yaml/daemon_set.yaml
647
- - lib/templates/new/yaml/deployment.yaml
648
- - lib/templates/new/yaml/ingress.yaml
649
- - lib/templates/new/yaml/job.yaml
650
- - lib/templates/new/yaml/managed_certificate.yaml
651
- - lib/templates/new/yaml/namespace.yaml
652
- - lib/templates/new/yaml/network_policy.yaml
653
- - lib/templates/new/yaml/pod.yaml
654
- - lib/templates/new/yaml/role.yaml
655
- - lib/templates/new/yaml/role_binding.yaml
656
- - lib/templates/new/yaml/secret.yaml
657
- - lib/templates/new/yaml/service.yaml
658
- - lib/templates/new/yaml/service_account.yaml
660
+ - lib/templates/new/helper/file.rb
661
+ - lib/templates/new/resource/dsl/backend_config.rb
662
+ - lib/templates/new/resource/dsl/config_map.rb
663
+ - lib/templates/new/resource/dsl/daemon_set.rb
664
+ - lib/templates/new/resource/dsl/deployment.rb
665
+ - lib/templates/new/resource/dsl/ingress.rb
666
+ - lib/templates/new/resource/dsl/job.rb
667
+ - lib/templates/new/resource/dsl/managed_certificate.rb
668
+ - lib/templates/new/resource/dsl/namespace.rb
669
+ - lib/templates/new/resource/dsl/network_policy.rb
670
+ - lib/templates/new/resource/dsl/pod.rb
671
+ - lib/templates/new/resource/dsl/role.rb
672
+ - lib/templates/new/resource/dsl/role_binding.rb
673
+ - lib/templates/new/resource/dsl/secret.rb
674
+ - lib/templates/new/resource/dsl/service.rb
675
+ - lib/templates/new/resource/dsl/service_account.rb
676
+ - lib/templates/new/resource/yaml/backend_config.yaml
677
+ - lib/templates/new/resource/yaml/config_map.yaml
678
+ - lib/templates/new/resource/yaml/daemon_set.yaml
679
+ - lib/templates/new/resource/yaml/deployment.yaml
680
+ - lib/templates/new/resource/yaml/ingress.yaml
681
+ - lib/templates/new/resource/yaml/job.yaml
682
+ - lib/templates/new/resource/yaml/managed_certificate.yaml
683
+ - lib/templates/new/resource/yaml/namespace.yaml
684
+ - lib/templates/new/resource/yaml/network_policy.yaml
685
+ - lib/templates/new/resource/yaml/pod.yaml
686
+ - lib/templates/new/resource/yaml/role.yaml
687
+ - lib/templates/new/resource/yaml/role_binding.yaml
688
+ - lib/templates/new/resource/yaml/secret.yaml
689
+ - lib/templates/new/resource/yaml/service.yaml
690
+ - lib/templates/new/resource/yaml/service_account.yaml
691
+ - lib/templates/new/variable/file.rb
659
692
  - lib/templates/yaml/.kubes/resources/base/all.yaml.tt
660
693
  - lib/templates/yaml/.kubes/resources/base/deployment.yaml.tt
661
694
  - lib/templates/yaml/.kubes/resources/shared/namespace.yaml.tt
@@ -689,17 +722,17 @@ files:
689
722
  - spec/fixtures/deployments/setter/metadata.rb
690
723
  - spec/fixtures/deployments/setter/sidecar.rb
691
724
  - spec/fixtures/deployments/setter/spec.rb
692
- - spec/fixtures/multiple-files/deployment-1.rb
693
- - spec/fixtures/multiple-files/deployment-2.rb
725
+ - spec/fixtures/multiple-files/.kubes/resources/web/deployment-1.rb
726
+ - spec/fixtures/multiple-files/.kubes/resources/web/deployment-2.rb
694
727
  - spec/fixtures/project/.gitignore
695
- - spec/fixtures/project/.kubes/resources/deployment.rb
696
- - spec/fixtures/project/.kubes/resources/foobar.rb
697
- - spec/fixtures/project/.kubes/resources/service.rb
728
+ - spec/fixtures/project/.kubes/resources/web/deployment.rb
729
+ - spec/fixtures/project/.kubes/resources/web/empty.rb
730
+ - spec/fixtures/project/.kubes/resources/web/service.rb
698
731
  - spec/fixtures/prune/capture.yaml
699
732
  - spec/fixtures/prune/fetch_items.yaml
700
733
  - spec/fixtures/services/minimum.rb
701
- - spec/fixtures/syntax/network_policy.rb
702
- - spec/fixtures/syntax/pod.rb
734
+ - spec/fixtures/syntax/.kubes/resources/web/network_policy.rb
735
+ - spec/fixtures/syntax/.kubes/resources/web/pod.rb
703
736
  - spec/kubes/cli/prune_spec.rb
704
737
  - spec/kubes/compiler/decorator/post/deployment_spec.rb
705
738
  - spec/kubes/compiler/decorator/post/pod_spec.rb
@@ -732,7 +765,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
732
765
  - !ruby/object:Gem::Version
733
766
  version: '0'
734
767
  requirements: []
735
- rubygems_version: 3.1.2
768
+ rubygems_version: 3.1.4
736
769
  signing_key:
737
770
  specification_version: 4
738
771
  summary: 'Kubernetes Deployment Tool: build docker image, compile Kubernetes YAML
@@ -764,17 +797,17 @@ test_files:
764
797
  - spec/fixtures/deployments/setter/metadata.rb
765
798
  - spec/fixtures/deployments/setter/sidecar.rb
766
799
  - spec/fixtures/deployments/setter/spec.rb
767
- - spec/fixtures/multiple-files/deployment-1.rb
768
- - spec/fixtures/multiple-files/deployment-2.rb
800
+ - spec/fixtures/multiple-files/.kubes/resources/web/deployment-1.rb
801
+ - spec/fixtures/multiple-files/.kubes/resources/web/deployment-2.rb
769
802
  - spec/fixtures/project/.gitignore
770
- - spec/fixtures/project/.kubes/resources/deployment.rb
771
- - spec/fixtures/project/.kubes/resources/foobar.rb
772
- - spec/fixtures/project/.kubes/resources/service.rb
803
+ - spec/fixtures/project/.kubes/resources/web/deployment.rb
804
+ - spec/fixtures/project/.kubes/resources/web/empty.rb
805
+ - spec/fixtures/project/.kubes/resources/web/service.rb
773
806
  - spec/fixtures/prune/capture.yaml
774
807
  - spec/fixtures/prune/fetch_items.yaml
775
808
  - spec/fixtures/services/minimum.rb
776
- - spec/fixtures/syntax/network_policy.rb
777
- - spec/fixtures/syntax/pod.rb
809
+ - spec/fixtures/syntax/.kubes/resources/web/network_policy.rb
810
+ - spec/fixtures/syntax/.kubes/resources/web/pod.rb
778
811
  - spec/kubes/cli/prune_spec.rb
779
812
  - spec/kubes/compiler/decorator/post/deployment_spec.rb
780
813
  - spec/kubes/compiler/decorator/post/pod_spec.rb