kubes 0.7.4 → 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/CHANGELOG.md +16 -0
- data/README.md +7 -5
- data/docs/_docs/config/reference.md +1 -0
- data/docs/_docs/dsl/resources.md +1 -1
- data/docs/_docs/dsl.md +3 -3
- data/docs/_docs/intro/how-kubes-works.md +2 -0
- data/docs/_docs/intro/structure.md +2 -2
- data/docs/_docs/layering/{merge.md → merge-dsl.md} +0 -0
- data/docs/_docs/layering/merge-options.md +76 -0
- data/docs/_docs/layering.md +1 -1
- data/docs/_docs/vs/helm.md +3 -3
- data/docs/_includes/header.html +7 -0
- data/docs/_includes/layering/layers.md +12 -10
- data/docs/_includes/reference.md +1 -1
- data/docs/_includes/sidebar.html +2 -1
- data/docs/_sass/theme.scss +92 -0
- data/docs/index.html +2 -2
- data/docs/search/data.json +44 -0
- data/docs/search/index.html +30 -0
- data/docs/search/lunr.js +3475 -0
- data/docs/search/search.js +247 -0
- data/docs/search/tips.md +48 -0
- data/lib/kubes/cli/init.rb +2 -1
- data/lib/kubes/compiler/decorator/hashable/field.rb +41 -21
- data/lib/kubes/compiler/decorator/post.rb +12 -12
- data/lib/kubes/compiler/dsl/core/fields.rb +1 -1
- data/lib/kubes/compiler/dsl/syntax/resource.rb +2 -2
- data/lib/kubes/compiler/layering.rb +17 -15
- data/lib/kubes/compiler/strategy/dispatcher.rb +2 -2
- data/lib/kubes/compiler.rb +2 -1
- data/lib/kubes/config.rb +3 -0
- data/lib/kubes/core.rb +6 -0
- data/lib/kubes/docker/args/default.rb +0 -4
- data/lib/kubes/util/consider.rb +2 -2
- data/lib/kubes/version.rb +1 -1
- data/lib/templates/yaml/.kubes/resources/base/deployment.yaml.tt +0 -3
- data/lib/templates/yaml/.kubes/resources/shared/namespace.yaml.tt +0 -2
- data/spec/fixtures/decorators/deployment/configMap/volumes-name-first.yaml +14 -0
- data/spec/fixtures/decorators/deployment/configMap/volumes-name-second.yaml +14 -0
- data/spec/fixtures/decorators/ingress/tls.yaml +12 -0
- data/spec/kubes/compiler/decorator/post/deployment_spec.rb +25 -0
- data/spec/kubes/compiler/decorator/post/ingress_spec.rb +22 -0
- metadata +18 -4
@@ -135,4 +135,29 @@ describe Kubes::Compiler::Decorator::Post do
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
end
|
138
|
+
|
139
|
+
context "order" do
|
140
|
+
# spec to fix issue TODO: add issue number
|
141
|
+
describe "name first" do
|
142
|
+
let(:data) { fixture("configMap/volumes-name-first") }
|
143
|
+
it "run" do
|
144
|
+
decorator.run
|
145
|
+
data = decorator.data
|
146
|
+
volumes = data['volumes']
|
147
|
+
name = volumes[0]['configMap']['name']
|
148
|
+
expect(name).to eq("demo-config-map-fakehash-config")
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
describe "name second" do
|
153
|
+
let(:data) { fixture("configMap/volumes-name-second") }
|
154
|
+
it "run" do
|
155
|
+
decorator.run
|
156
|
+
data = decorator.data
|
157
|
+
volumes = data['volumes']
|
158
|
+
name = volumes[0]['configMap']['name']
|
159
|
+
expect(name).to eq("demo-config-map-fakehash-config")
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
138
163
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
describe Kubes::Compiler::Decorator::Post do
|
2
|
+
let(:decorator) { described_class.new(data) }
|
3
|
+
|
4
|
+
def fixture(name)
|
5
|
+
YAML.load_file("spec/fixtures/decorators/ingress/#{name}.yaml")
|
6
|
+
end
|
7
|
+
before(:each) do
|
8
|
+
allow(Kubes::Compiler::Decorator::Hashable::Storage).to receive(:fetch).and_return("fakehash")
|
9
|
+
end
|
10
|
+
|
11
|
+
context "ingress" do
|
12
|
+
describe "tls" do
|
13
|
+
let(:data) { fixture("tls") }
|
14
|
+
it "run" do
|
15
|
+
decorator.run
|
16
|
+
data = decorator.data
|
17
|
+
name = data['spec']['tls'][0]['secretName']
|
18
|
+
expect(name).to eq("tls-secret-fakehash")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
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.
|
4
|
+
version: 0.7.8
|
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-
|
11
|
+
date: 2021-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -336,7 +336,8 @@ files:
|
|
336
336
|
- docs/_docs/intro/structure.md
|
337
337
|
- docs/_docs/layering.md
|
338
338
|
- docs/_docs/layering/dsl.md
|
339
|
-
- docs/_docs/layering/merge.md
|
339
|
+
- docs/_docs/layering/merge-dsl.md
|
340
|
+
- docs/_docs/layering/merge-options.md
|
340
341
|
- docs/_docs/layering/mix.md
|
341
342
|
- docs/_docs/layering/yaml.md
|
342
343
|
- docs/_docs/learn/dsl.md
|
@@ -472,6 +473,11 @@ files:
|
|
472
473
|
- docs/opal/sidebar.rb
|
473
474
|
- docs/opal/sidebar/expander.rb
|
474
475
|
- docs/reference.md
|
476
|
+
- docs/search/data.json
|
477
|
+
- docs/search/index.html
|
478
|
+
- docs/search/lunr.js
|
479
|
+
- docs/search/search.js
|
480
|
+
- docs/search/tips.md
|
475
481
|
- docs/support.md
|
476
482
|
- docs/vendor/bootstrap/css/bootstrap-grid.css
|
477
483
|
- docs/vendor/bootstrap/css/bootstrap-grid.css.map
|
@@ -726,10 +732,13 @@ files:
|
|
726
732
|
- spec/fixtures/decorators/deployment/both/volumes.yaml
|
727
733
|
- spec/fixtures/decorators/deployment/configMap/envFrom.yaml
|
728
734
|
- spec/fixtures/decorators/deployment/configMap/valueFrom.yaml
|
735
|
+
- spec/fixtures/decorators/deployment/configMap/volumes-name-first.yaml
|
736
|
+
- spec/fixtures/decorators/deployment/configMap/volumes-name-second.yaml
|
729
737
|
- spec/fixtures/decorators/deployment/configMap/volumes.yaml
|
730
738
|
- spec/fixtures/decorators/deployment/secret/envFrom.yaml
|
731
739
|
- spec/fixtures/decorators/deployment/secret/valueFrom.yaml
|
732
740
|
- spec/fixtures/decorators/deployment/secret/volumes.yaml
|
741
|
+
- spec/fixtures/decorators/ingress/tls.yaml
|
733
742
|
- spec/fixtures/decorators/pod/configMap/envFrom.yaml
|
734
743
|
- spec/fixtures/decorators/pod/configMap/valueFrom.yaml
|
735
744
|
- spec/fixtures/decorators/pod/configMap/volumes.yaml
|
@@ -756,6 +765,7 @@ files:
|
|
756
765
|
- spec/fixtures/syntax/.kubes/resources/web/pod.rb
|
757
766
|
- spec/kubes/cli/prune_spec.rb
|
758
767
|
- spec/kubes/compiler/decorator/post/deployment_spec.rb
|
768
|
+
- spec/kubes/compiler/decorator/post/ingress_spec.rb
|
759
769
|
- spec/kubes/compiler/decorator/post/pod_spec.rb
|
760
770
|
- spec/kubes/compiler/strategy/dispatcher_spec.rb
|
761
771
|
- spec/kubes/compiler_spec.rb
|
@@ -786,7 +796,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
786
796
|
- !ruby/object:Gem::Version
|
787
797
|
version: '0'
|
788
798
|
requirements: []
|
789
|
-
rubygems_version: 3.
|
799
|
+
rubygems_version: 3.1.6
|
790
800
|
signing_key:
|
791
801
|
specification_version: 4
|
792
802
|
summary: 'Kubernetes Deployment Tool: build docker image, compile Kubernetes YAML
|
@@ -801,10 +811,13 @@ test_files:
|
|
801
811
|
- spec/fixtures/decorators/deployment/both/volumes.yaml
|
802
812
|
- spec/fixtures/decorators/deployment/configMap/envFrom.yaml
|
803
813
|
- spec/fixtures/decorators/deployment/configMap/valueFrom.yaml
|
814
|
+
- spec/fixtures/decorators/deployment/configMap/volumes-name-first.yaml
|
815
|
+
- spec/fixtures/decorators/deployment/configMap/volumes-name-second.yaml
|
804
816
|
- spec/fixtures/decorators/deployment/configMap/volumes.yaml
|
805
817
|
- spec/fixtures/decorators/deployment/secret/envFrom.yaml
|
806
818
|
- spec/fixtures/decorators/deployment/secret/valueFrom.yaml
|
807
819
|
- spec/fixtures/decorators/deployment/secret/volumes.yaml
|
820
|
+
- spec/fixtures/decorators/ingress/tls.yaml
|
808
821
|
- spec/fixtures/decorators/pod/configMap/envFrom.yaml
|
809
822
|
- spec/fixtures/decorators/pod/configMap/valueFrom.yaml
|
810
823
|
- spec/fixtures/decorators/pod/configMap/volumes.yaml
|
@@ -831,6 +844,7 @@ test_files:
|
|
831
844
|
- spec/fixtures/syntax/.kubes/resources/web/pod.rb
|
832
845
|
- spec/kubes/cli/prune_spec.rb
|
833
846
|
- spec/kubes/compiler/decorator/post/deployment_spec.rb
|
847
|
+
- spec/kubes/compiler/decorator/post/ingress_spec.rb
|
834
848
|
- spec/kubes/compiler/decorator/post/pod_spec.rb
|
835
849
|
- spec/kubes/compiler/strategy/dispatcher_spec.rb
|
836
850
|
- spec/kubes/compiler_spec.rb
|