kubes 0.7.7 → 0.8.0

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.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +4 -4
  4. data/docs/.gitignore +1 -0
  5. data/docs/Gemfile +2 -0
  6. data/docs/_config.yml +8 -0
  7. data/docs/_docs/config/app-overrides.md +7 -0
  8. data/docs/_docs/config/boot.md +46 -0
  9. data/docs/_docs/config/env.md +29 -2
  10. data/docs/_docs/config/hooks/docker.md +2 -0
  11. data/docs/_docs/config/hooks/generator.md +16 -0
  12. data/docs/_docs/config/hooks/kubectl.md +2 -0
  13. data/docs/_docs/config/hooks/kubes.md +2 -0
  14. data/docs/_docs/config/reference.md +2 -2
  15. data/docs/_docs/config/skip.md +22 -0
  16. data/docs/_docs/dsl/resources.md +1 -1
  17. data/docs/_docs/dsl.md +2 -2
  18. data/docs/_docs/helpers/aws/iam-role.md +1 -0
  19. data/docs/_docs/helpers/google/gke.md +1 -1
  20. data/docs/_docs/install/dependencies.md +18 -0
  21. data/docs/_docs/install/gem.md +6 -0
  22. data/docs/_docs/install/standalone/centos.md +70 -0
  23. data/docs/_docs/install/standalone/details/permissions.md +44 -0
  24. data/docs/_docs/install/standalone/details/uninstall.md +16 -0
  25. data/docs/_docs/install/standalone/details.md +20 -0
  26. data/docs/_docs/install/standalone/macosx.md +45 -0
  27. data/docs/_docs/install/standalone/ubuntu.md +48 -0
  28. data/docs/_docs/install/standalone.md +43 -0
  29. data/docs/_docs/install.md +8 -0
  30. data/docs/_docs/learn/dsl/install.md +1 -1
  31. data/docs/_docs/learn/yaml/install.md +1 -1
  32. data/docs/_docs/patterns/central-deployer.md +36 -0
  33. data/docs/_docs/variables/advanced.md +32 -1
  34. data/docs/_docs/variables/basic.md +1 -0
  35. data/docs/_docs/vs/custom.md +2 -0
  36. data/docs/_docs/vs/helm.md +2 -0
  37. data/docs/_docs/vs/kustomize.md +3 -1
  38. data/docs/_docs/vs.md +2 -0
  39. data/docs/_docs/yaml/erb-comment.md +89 -0
  40. data/docs/_includes/banner/foot.html +2 -0
  41. data/docs/_includes/banner/head.html +5 -0
  42. data/docs/_includes/config/app-overrides-cheatsheet.md +44 -0
  43. data/docs/_includes/config/hooks/generator.md +6 -0
  44. data/docs/_includes/content.html +1 -1
  45. data/docs/_includes/install/gem.md +7 -0
  46. data/docs/_includes/install/wrapper.md +9 -0
  47. data/docs/_includes/layering/layers.md +3 -0
  48. data/docs/_includes/learn/next-steps.md +11 -0
  49. data/docs/_includes/sidebar.html +28 -3
  50. data/docs/_includes/videos/learn/vs.md +4 -0
  51. data/docs/_includes/videos/learn.md +12 -0
  52. data/docs/_includes/videos/youtube.md +1 -0
  53. data/docs/_layouts/default.html +3 -0
  54. data/docs/_reference/kubes-new-hook.md +30 -0
  55. data/docs/_reference/kubes-new-variable.md +7 -0
  56. data/docs/_reference/kubes-new.md +1 -0
  57. data/docs/_sass/theme.scss +11 -0
  58. data/docs/bin/web +1 -1
  59. data/docs/js/scripts.js +7 -0
  60. data/kubes.gemspec +1 -0
  61. data/lib/kubes/booter.rb +26 -0
  62. data/lib/kubes/cli/help/new/hook.md +9 -0
  63. data/lib/kubes/cli/help/new/variable.md +6 -0
  64. data/lib/kubes/cli/init.rb +0 -1
  65. data/lib/kubes/cli/new/hook.rb +18 -0
  66. data/lib/kubes/cli/new.rb +4 -0
  67. data/lib/kubes/compiler/decorator/hashable/field.rb +41 -22
  68. data/lib/kubes/compiler/decorator/hashable.rb +1 -1
  69. data/lib/kubes/compiler/decorator/post.rb +12 -12
  70. data/lib/kubes/compiler/layering.rb +9 -0
  71. data/lib/kubes/compiler/shared/runtime_helpers.rb +8 -1
  72. data/lib/kubes/compiler/strategy/erb/comment.rb +46 -0
  73. data/lib/kubes/compiler/strategy/erb.rb +4 -0
  74. data/lib/kubes/compiler/strategy/result.rb +13 -1
  75. data/lib/kubes/compiler.rb +2 -0
  76. data/lib/kubes/config.rb +6 -2
  77. data/lib/kubes/core.rb +4 -0
  78. data/lib/kubes/kubectl/ordering.rb +9 -6
  79. data/lib/kubes/version.rb +1 -1
  80. data/lib/kubes.rb +3 -0
  81. data/lib/templates/new/hooks/docker.rb +9 -0
  82. data/lib/templates/new/hooks/kubectl.rb +11 -0
  83. data/lib/templates/new/hooks/kubes.rb +9 -0
  84. data/lib/templates/yaml/.kubes/resources/base/deployment.yaml.tt +2 -0
  85. data/spec/fixtures/decorators/deployment/configMap/volumes-name-first.yaml +14 -0
  86. data/spec/fixtures/decorators/deployment/configMap/volumes-name-second.yaml +14 -0
  87. data/spec/fixtures/decorators/ingress/tls.yaml +12 -0
  88. data/spec/kubes/compiler/decorator/post/deployment_spec.rb +25 -0
  89. data/spec/kubes/compiler/decorator/post/ingress_spec.rb +22 -0
  90. metadata +59 -5
  91. data/docs/_docs/intro/install.md +0 -6
  92. data/docs/_includes/intro/install.md +0 -19
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.7.7
4
+ version: 0.8.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: 2021-10-21 00:00:00.000000000 Z
11
+ date: 2022-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: nokogiri
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rainbow
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -273,14 +287,17 @@ files:
273
287
  - docs/_config.yml
274
288
  - docs/_docs/ci/cloudbuild.md
275
289
  - docs/_docs/config.md
290
+ - docs/_docs/config/app-overrides.md
276
291
  - docs/_docs/config/args.md
277
292
  - docs/_docs/config/args/docker.md
278
293
  - docs/_docs/config/args/kubectl.md
294
+ - docs/_docs/config/boot.md
279
295
  - docs/_docs/config/builder.md
280
296
  - docs/_docs/config/docker.md
281
297
  - docs/_docs/config/env.md
282
298
  - docs/_docs/config/hooks.md
283
299
  - docs/_docs/config/hooks/docker.md
300
+ - docs/_docs/config/hooks/generator.md
284
301
  - docs/_docs/config/hooks/kubectl.md
285
302
  - docs/_docs/config/hooks/kubes.md
286
303
  - docs/_docs/config/hooks/ruby.md
@@ -326,11 +343,20 @@ files:
326
343
  - docs/_docs/helpers/google/gke.md
327
344
  - docs/_docs/helpers/google/secrets.md
328
345
  - docs/_docs/helpers/google/service-account.md
346
+ - docs/_docs/install.md
347
+ - docs/_docs/install/dependencies.md
348
+ - docs/_docs/install/gem.md
349
+ - docs/_docs/install/standalone.md
350
+ - docs/_docs/install/standalone/centos.md
351
+ - docs/_docs/install/standalone/details.md
352
+ - docs/_docs/install/standalone/details/permissions.md
353
+ - docs/_docs/install/standalone/details/uninstall.md
354
+ - docs/_docs/install/standalone/macosx.md
355
+ - docs/_docs/install/standalone/ubuntu.md
329
356
  - docs/_docs/intro.md
330
357
  - docs/_docs/intro/concepts.md
331
358
  - docs/_docs/intro/docker-image.md
332
359
  - docs/_docs/intro/how-kubes-works.md
333
- - docs/_docs/intro/install.md
334
360
  - docs/_docs/intro/ordering.md
335
361
  - docs/_docs/intro/ordering/custom.md
336
362
  - docs/_docs/intro/structure.md
@@ -365,6 +391,7 @@ files:
365
391
  - docs/_docs/misc/separate-steps.md
366
392
  - docs/_docs/next-steps.md
367
393
  - docs/_docs/patterns.md
394
+ - docs/_docs/patterns/central-deployer.md
368
395
  - docs/_docs/patterns/clock-web-worker.md
369
396
  - docs/_docs/patterns/migrations.md
370
397
  - docs/_docs/patterns/multiple-envs.md
@@ -384,9 +411,14 @@ files:
384
411
  - docs/_docs/vs/helm.md
385
412
  - docs/_docs/vs/kustomize.md
386
413
  - docs/_docs/yaml.md
414
+ - docs/_docs/yaml/erb-comment.md
387
415
  - docs/_docs/yaml/multiple-files.md
388
416
  - docs/_docs/yaml/multiple-resources.md
417
+ - docs/_includes/banner/foot.html
418
+ - docs/_includes/banner/head.html
389
419
  - docs/_includes/commands.html
420
+ - docs/_includes/config/app-overrides-cheatsheet.md
421
+ - docs/_includes/config/hooks/generator.md
390
422
  - docs/_includes/config/hooks/options.md
391
423
  - docs/_includes/content.html
392
424
  - docs/_includes/dsl/methods.md
@@ -398,8 +430,9 @@ files:
398
430
  - docs/_includes/header.html
399
431
  - docs/_includes/helpers/base64.md
400
432
  - docs/_includes/helpers/generator.md
433
+ - docs/_includes/install/gem.md
434
+ - docs/_includes/install/wrapper.md
401
435
  - docs/_includes/intro/features.md
402
- - docs/_includes/intro/install.md
403
436
  - docs/_includes/js.html
404
437
  - docs/_includes/kubes-steps.md
405
438
  - docs/_includes/layering/layers.md
@@ -413,6 +446,9 @@ files:
413
446
  - docs/_includes/reference.md
414
447
  - docs/_includes/sidebar.html
415
448
  - docs/_includes/variables/generator.md
449
+ - docs/_includes/videos/learn.md
450
+ - docs/_includes/videos/learn/vs.md
451
+ - docs/_includes/videos/youtube.md
416
452
  - docs/_includes/vs/article.md
417
453
  - docs/_includes/vs/kubes/layering.md
418
454
  - docs/_includes/vs/kubes/structure.md
@@ -435,6 +471,7 @@ files:
435
471
  - docs/_reference/kubes-logs.md
436
472
  - docs/_reference/kubes-new-help.md
437
473
  - docs/_reference/kubes-new-helper.md
474
+ - docs/_reference/kubes-new-hook.md
438
475
  - docs/_reference/kubes-new-resource.md
439
476
  - docs/_reference/kubes-new-variable.md
440
477
  - docs/_reference/kubes-new.md
@@ -468,6 +505,7 @@ files:
468
505
  - docs/img/logos/kubes-white.png
469
506
  - docs/index.html
470
507
  - docs/js/app.js
508
+ - docs/js/scripts.js
471
509
  - docs/opal/app.rb
472
510
  - docs/opal/pager.rb
473
511
  - docs/opal/sidebar.rb
@@ -560,6 +598,7 @@ files:
560
598
  - lib/kubes/auth/gcr.rb
561
599
  - lib/kubes/autoloader.rb
562
600
  - lib/kubes/aws_services.rb
601
+ - lib/kubes/booter.rb
563
602
  - lib/kubes/cli.rb
564
603
  - lib/kubes/cli/apply.rb
565
604
  - lib/kubes/cli/base.rb
@@ -578,11 +617,14 @@ files:
578
617
  - lib/kubes/cli/help/deploy.md
579
618
  - lib/kubes/cli/help/exec.md
580
619
  - lib/kubes/cli/help/new/helper.md
620
+ - lib/kubes/cli/help/new/hook.md
581
621
  - lib/kubes/cli/help/new/resource.md
622
+ - lib/kubes/cli/help/new/variable.md
582
623
  - lib/kubes/cli/init.rb
583
624
  - lib/kubes/cli/logs.rb
584
625
  - lib/kubes/cli/new.rb
585
626
  - lib/kubes/cli/new/helper.rb
627
+ - lib/kubes/cli/new/hook.rb
586
628
  - lib/kubes/cli/new/resource.rb
587
629
  - lib/kubes/cli/new/variable.rb
588
630
  - lib/kubes/cli/prune.rb
@@ -628,6 +670,7 @@ files:
628
670
  - lib/kubes/compiler/strategy/base.rb
629
671
  - lib/kubes/compiler/strategy/dispatcher.rb
630
672
  - lib/kubes/compiler/strategy/erb.rb
673
+ - lib/kubes/compiler/strategy/erb/comment.rb
631
674
  - lib/kubes/compiler/strategy/erb/yaml_error.rb
632
675
  - lib/kubes/compiler/strategy/pass.rb
633
676
  - lib/kubes/compiler/strategy/result.rb
@@ -683,6 +726,9 @@ files:
683
726
  - lib/templates/dsl/.kubes/resources/web/deployment/prod.rb
684
727
  - lib/templates/dsl/.kubes/resources/web/service.rb
685
728
  - lib/templates/new/helper/file.rb
729
+ - lib/templates/new/hooks/docker.rb
730
+ - lib/templates/new/hooks/kubectl.rb
731
+ - lib/templates/new/hooks/kubes.rb
686
732
  - lib/templates/new/resource/dsl/backend_config.rb
687
733
  - lib/templates/new/resource/dsl/config_map.rb
688
734
  - lib/templates/new/resource/dsl/daemon_set.rb
@@ -732,10 +778,13 @@ files:
732
778
  - spec/fixtures/decorators/deployment/both/volumes.yaml
733
779
  - spec/fixtures/decorators/deployment/configMap/envFrom.yaml
734
780
  - spec/fixtures/decorators/deployment/configMap/valueFrom.yaml
781
+ - spec/fixtures/decorators/deployment/configMap/volumes-name-first.yaml
782
+ - spec/fixtures/decorators/deployment/configMap/volumes-name-second.yaml
735
783
  - spec/fixtures/decorators/deployment/configMap/volumes.yaml
736
784
  - spec/fixtures/decorators/deployment/secret/envFrom.yaml
737
785
  - spec/fixtures/decorators/deployment/secret/valueFrom.yaml
738
786
  - spec/fixtures/decorators/deployment/secret/volumes.yaml
787
+ - spec/fixtures/decorators/ingress/tls.yaml
739
788
  - spec/fixtures/decorators/pod/configMap/envFrom.yaml
740
789
  - spec/fixtures/decorators/pod/configMap/valueFrom.yaml
741
790
  - spec/fixtures/decorators/pod/configMap/volumes.yaml
@@ -762,6 +811,7 @@ files:
762
811
  - spec/fixtures/syntax/.kubes/resources/web/pod.rb
763
812
  - spec/kubes/cli/prune_spec.rb
764
813
  - spec/kubes/compiler/decorator/post/deployment_spec.rb
814
+ - spec/kubes/compiler/decorator/post/ingress_spec.rb
765
815
  - spec/kubes/compiler/decorator/post/pod_spec.rb
766
816
  - spec/kubes/compiler/strategy/dispatcher_spec.rb
767
817
  - spec/kubes/compiler_spec.rb
@@ -792,7 +842,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
792
842
  - !ruby/object:Gem::Version
793
843
  version: '0'
794
844
  requirements: []
795
- rubygems_version: 3.1.6
845
+ rubygems_version: 3.2.32
796
846
  signing_key:
797
847
  specification_version: 4
798
848
  summary: 'Kubernetes Deployment Tool: build docker image, compile Kubernetes YAML
@@ -807,10 +857,13 @@ test_files:
807
857
  - spec/fixtures/decorators/deployment/both/volumes.yaml
808
858
  - spec/fixtures/decorators/deployment/configMap/envFrom.yaml
809
859
  - spec/fixtures/decorators/deployment/configMap/valueFrom.yaml
860
+ - spec/fixtures/decorators/deployment/configMap/volumes-name-first.yaml
861
+ - spec/fixtures/decorators/deployment/configMap/volumes-name-second.yaml
810
862
  - spec/fixtures/decorators/deployment/configMap/volumes.yaml
811
863
  - spec/fixtures/decorators/deployment/secret/envFrom.yaml
812
864
  - spec/fixtures/decorators/deployment/secret/valueFrom.yaml
813
865
  - spec/fixtures/decorators/deployment/secret/volumes.yaml
866
+ - spec/fixtures/decorators/ingress/tls.yaml
814
867
  - spec/fixtures/decorators/pod/configMap/envFrom.yaml
815
868
  - spec/fixtures/decorators/pod/configMap/valueFrom.yaml
816
869
  - spec/fixtures/decorators/pod/configMap/volumes.yaml
@@ -837,6 +890,7 @@ test_files:
837
890
  - spec/fixtures/syntax/.kubes/resources/web/pod.rb
838
891
  - spec/kubes/cli/prune_spec.rb
839
892
  - spec/kubes/compiler/decorator/post/deployment_spec.rb
893
+ - spec/kubes/compiler/decorator/post/ingress_spec.rb
840
894
  - spec/kubes/compiler/decorator/post/pod_spec.rb
841
895
  - spec/kubes/compiler/strategy/dispatcher_spec.rb
842
896
  - spec/kubes/compiler_spec.rb
@@ -1,6 +0,0 @@
1
- ---
2
- title: Installation
3
- ---
4
-
5
- {% include intro/install.md %}
6
-
@@ -1,19 +0,0 @@
1
- ## RubyGems
2
-
3
- Install kubes via RubyGems.
4
-
5
- gem install kubes
6
-
7
- Ruby 2.7 and above is recommended.
8
-
9
- ## kubectl
10
-
11
- Kubes calls kubectl. Kubes has been tested with kubectl v1.15+. Generally, it should work with most versions of kubectl.
12
-
13
- ## docker
14
-
15
- Kubes calls docker. Kubes has been tested with docker 18.x-ce+. Generally, it should work with most versions of docker.
16
-
17
- ## gcloud
18
-
19
- If you are using the [gcloud builder](% link _docs/config/builder.md %), set up and configure the [gcloud cli](https://cloud.google.com/sdk/install).