kerbi 0.0.2 → 0.0.6

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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cli/base_handler.rb +18 -4
  3. data/lib/cli/release_handler.rb +41 -0
  4. data/lib/cli/release_serializer.rb +46 -0
  5. data/lib/cli/root_handler.rb +2 -0
  6. data/lib/cli/state_handler.rb +16 -23
  7. data/{boilerplate → lib/code-gen/new-project}/Gemfile.erb +0 -0
  8. data/lib/code-gen/new-project/kerbifile.rb.erb +9 -0
  9. data/lib/code-gen/new-project/values.yaml.erb +1 -0
  10. data/lib/config/cli_schema.rb +70 -27
  11. data/lib/config/run_opts.rb +13 -1
  12. data/lib/config/state_consts.rb +2 -1
  13. data/lib/kerbi.rb +4 -1
  14. data/lib/main/code_gen.rb +1 -1
  15. data/lib/main/errors.rb +6 -0
  16. data/lib/main/mixer.rb +8 -2
  17. data/lib/mixins/cli_state_helpers.rb +5 -33
  18. data/lib/mixins/cm_backend_testing.rb +18 -4
  19. data/lib/state/base_backend.rb +34 -0
  20. data/lib/state/config_map_backend.rb +72 -18
  21. data/lib/state/resources.yaml.erb +3 -3
  22. data/lib/utils/cli.rb +32 -0
  23. data/spec/cli/config_handler_spec.rb +32 -32
  24. data/spec/cli/release_handler_spec.rb +128 -0
  25. data/spec/cli/root_handler_spec.rb +12 -11
  26. data/spec/cli/state_handler_spec.rb +21 -52
  27. data/spec/{expectations → fixtures/expectations}/common/bad-tag.txt +0 -0
  28. data/spec/{expectations → fixtures/expectations}/config/bad-set.txt +0 -0
  29. data/spec/{expectations → fixtures/expectations}/config/set.txt +0 -0
  30. data/spec/{expectations → fixtures/expectations}/config/show-default.yaml +0 -0
  31. data/spec/fixtures/expectations/release/delete.txt +1 -0
  32. data/spec/fixtures/expectations/release/init-already-existed.txt +2 -0
  33. data/spec/fixtures/expectations/release/init-both-created.txt +2 -0
  34. data/spec/fixtures/expectations/release/list.txt +5 -0
  35. data/spec/{expectations/state → fixtures/expectations/release}/status-all-working.txt +2 -1
  36. data/spec/fixtures/expectations/release/status-data-unreadable.txt +5 -0
  37. data/spec/{expectations/state → fixtures/expectations/release}/status-not-provisioned.txt +2 -1
  38. data/spec/{expectations → fixtures/expectations}/root/template-inlines.yaml +2 -2
  39. data/spec/{expectations → fixtures/expectations}/root/template-production.yaml +2 -2
  40. data/spec/{expectations → fixtures/expectations}/root/template-read-inlines.yaml +4 -4
  41. data/spec/{expectations → fixtures/expectations}/root/template-read.yaml +4 -4
  42. data/spec/{expectations → fixtures/expectations}/root/template-write.yaml +4 -4
  43. data/spec/{expectations → fixtures/expectations}/root/template.yaml +2 -2
  44. data/spec/{expectations → fixtures/expectations}/root/values.json +0 -0
  45. data/spec/{expectations → fixtures/expectations}/state/delete.txt +0 -0
  46. data/spec/{expectations → fixtures/expectations}/state/demote.txt +0 -0
  47. data/spec/{expectations → fixtures/expectations}/state/list.json +0 -0
  48. data/spec/{expectations → fixtures/expectations}/state/list.txt +0 -0
  49. data/spec/{expectations → fixtures/expectations}/state/list.yaml +0 -0
  50. data/spec/{expectations → fixtures/expectations}/state/promote.txt +0 -0
  51. data/spec/{expectations → fixtures/expectations}/state/prune-candidates.txt +0 -0
  52. data/spec/{expectations → fixtures/expectations}/state/retag.txt +0 -0
  53. data/spec/{expectations → fixtures/expectations}/state/set.txt +0 -0
  54. data/spec/{expectations → fixtures/expectations}/state/show.json +0 -0
  55. data/spec/{expectations → fixtures/expectations}/state/show.txt +0 -0
  56. data/spec/{expectations → fixtures/expectations}/state/show.yaml +0 -0
  57. data/spec/{expectations → fixtures/expectations}/values/order-of-precedence.yaml +0 -0
  58. data/spec/main/configmap_backend_spec.rb +14 -13
  59. data/spec/main/project_code_gen_spec.rb +8 -2
  60. data/spec/mini-projects/hello-kerbi/common/metadata.yaml.erb +5 -0
  61. data/spec/mini-projects/hello-kerbi/consts.rb +5 -0
  62. data/spec/mini-projects/hello-kerbi/helpers.rb +8 -0
  63. data/spec/mini-projects/hello-kerbi/kerbifile.rb +18 -0
  64. data/spec/mini-projects/hello-kerbi/pod-and-service.yaml.erb +23 -0
  65. data/spec/mini-projects/hello-kerbi/values/production.yaml +2 -0
  66. data/spec/mini-projects/hello-kerbi/values/v2.yaml +2 -0
  67. data/spec/mini-projects/hello-kerbi/values/values.yaml +4 -0
  68. data/spec/spec_helper.rb +67 -11
  69. data/spec/utils/helm_spec.rb +89 -89
  70. data/spec/utils/k8s_auth_spec.rb +28 -28
  71. metadata +87 -61
  72. data/boilerplate/kerbifile.rb.erb +0 -9
  73. data/boilerplate/values.yaml.erb +0 -1
  74. data/spec/expectations/state/init-already-existed.txt +0 -2
  75. data/spec/expectations/state/init-both-created.txt +0 -2
@@ -2,93 +2,93 @@ require_relative './../spec_helper'
2
2
 
3
3
  RSpec.describe Kerbi::Utils::Helm do
4
4
 
5
- subject { Kerbi::Utils::Helm }
6
-
7
- def find_res(hashes, kind, name)
8
- hashes.find do |hash|
9
- hash['kind'] == kind && hash['metadata']['name'] == name
10
- end
11
- end
12
-
13
- describe '.template' do
14
- let(:repo_org) { "jetstack" }
15
- let(:repo_url) { "https://charts.jetstack.io" }
16
- let(:chart) { "#{repo_org}/cert-manager" }
17
- let :values do
18
- {
19
- cainjector: {
20
- serviceAccount: {
21
- automountServiceAccountToken: "foo"
22
- }
23
- }
24
- }
25
- end
26
-
27
- before :each do
28
- system("helm repo add #{repo_org} #{repo_url}")
29
- end
30
-
31
- context 'with existing chart' do
32
- it 'returns the templated yaml string' do
33
- res_dicts = subject.template('kerbi', chart, values: values)
34
- expect(res_dicts.class).to eq(Array)
35
- expect(res_dicts.count).to be_within(40).of(40)
36
- end
37
- end
38
- end
39
-
40
- describe '.encode_inline_assigns' do
41
- context 'when assignments are flat' do
42
- it 'returns the right string' do
43
- #noinspection SpellCheckingInspection
44
- actual = subject.encode_inline_assigns(
45
- 'bar': 'bar',
46
- 'foo.bar': 'foo.bar'
47
- )
48
- expected = "--set bar=bar --set foo.bar=foo.bar"
49
- expect(actual).to eq(expected)
50
- end
51
- end
52
-
53
- context 'when values are nested' do
54
- it 'raises an runtime error' do
55
- expect do
56
- subject.encode_inline_assigns('bar': { foo: 'bar'})
57
- end.to raise_error("Assignments must be flat")
58
- end
59
- end
60
- end
61
-
62
- describe ".make_tmp_values_file" do
63
- it 'creates the tmp file with yaml and returns the path' do
64
- path = subject.make_tmp_values_file(foo: 'bar')
65
- expect(YAML.load_file(path)).to eq('foo' => 'bar')
66
- end
67
- end
68
-
69
- describe '.del_tmp_values_file' do
70
- context 'when the file exists' do
71
- it 'delete the file' do
72
- path = subject.make_tmp_values_file(foo: 'bar')
73
- expect(File.exists?(path)).to be_truthy
74
- subject.del_tmp_values_file
75
- expect(File.exists?(path)).to be_falsey
76
- end
77
- end
78
-
79
- context 'when the file does not exist' do
80
- it 'does not raise an error' do
81
- subject.del_tmp_values_file
82
- end
83
- end
84
- end
85
-
86
- describe '#can_exec?' do
87
- context 'exec working' do
88
- it 'returns true' do
89
- # config.helm_exec = 'helm'
90
- expect(subject.can_exec?).to eq(true)
91
- end
92
- end
93
- end
5
+ # subject { Kerbi::Utils::Helm }
6
+ #
7
+ # def find_res(hashes, kind, name)
8
+ # hashes.find do |hash|
9
+ # hash['kind'] == kind && hash['metadata']['name'] == name
10
+ # end
11
+ # end
12
+ #
13
+ # describe '.template' do
14
+ # let(:repo_org) { "jetstack" }
15
+ # let(:repo_url) { "https://charts.jetstack.io" }
16
+ # let(:chart) { "#{repo_org}/cert-manager" }
17
+ # let :values do
18
+ # {
19
+ # cainjector: {
20
+ # serviceAccount: {
21
+ # automountServiceAccountToken: "foo"
22
+ # }
23
+ # }
24
+ # }
25
+ # end
26
+ #
27
+ # before :each do
28
+ # system("helm repo add #{repo_org} #{repo_url}")
29
+ # end
30
+ #
31
+ # context 'with existing chart' do
32
+ # it 'returns the templated yaml string' do
33
+ # res_dicts = subject.template('kerbi', chart, values: values)
34
+ # expect(res_dicts.class).to eq(Array)
35
+ # expect(res_dicts.count).to be_within(40).of(40)
36
+ # end
37
+ # end
38
+ # end
39
+ #
40
+ # describe '.encode_inline_assigns' do
41
+ # context 'when assignments are flat' do
42
+ # it 'returns the right string' do
43
+ # #noinspection SpellCheckingInspection
44
+ # actual = subject.encode_inline_assigns(
45
+ # 'bar': 'bar',
46
+ # 'foo.bar': 'foo.bar'
47
+ # )
48
+ # expected = "--set bar=bar --set foo.bar=foo.bar"
49
+ # expect(actual).to eq(expected)
50
+ # end
51
+ # end
52
+ #
53
+ # context 'when values are nested' do
54
+ # it 'raises an runtime error' do
55
+ # expect do
56
+ # subject.encode_inline_assigns('bar': { foo: 'bar'})
57
+ # end.to raise_error("Assignments must be flat")
58
+ # end
59
+ # end
60
+ # end
61
+ #
62
+ # describe ".make_tmp_values_file" do
63
+ # it 'creates the tmp file with yaml and returns the path' do
64
+ # path = subject.make_tmp_values_file(foo: 'bar')
65
+ # expect(YAML.load_file(path)).to eq('foo' => 'bar')
66
+ # end
67
+ # end
68
+ #
69
+ # describe '.del_tmp_values_file' do
70
+ # context 'when the file exists' do
71
+ # it 'delete the file' do
72
+ # path = subject.make_tmp_values_file(foo: 'bar')
73
+ # expect(File.exists?(path)).to be_truthy
74
+ # subject.del_tmp_values_file
75
+ # expect(File.exists?(path)).to be_falsey
76
+ # end
77
+ # end
78
+ #
79
+ # context 'when the file does not exist' do
80
+ # it 'does not raise an error' do
81
+ # subject.del_tmp_values_file
82
+ # end
83
+ # end
84
+ # end
85
+ #
86
+ # describe '#can_exec?' do
87
+ # context 'exec working' do
88
+ # it 'returns true' do
89
+ # # config.helm_exec = 'helm'
90
+ # expect(subject.can_exec?).to eq(true)
91
+ # end
92
+ # end
93
+ # end
94
94
  end
@@ -1,32 +1,32 @@
1
1
  require_relative './../spec_helper'
2
2
 
3
3
  RSpec.describe Kerbi::Utils::K8sAuth do
4
-
5
- def make_client(bundle)
6
- Kubeclient::Client.new(
7
- bundle[:endpoint],
8
- "v1",
9
- **bundle[:options]
10
- )
11
- end
12
-
13
- describe ".kube_config_client" do
14
- context "with valid kube-config options" do
15
- context "using the system default" do
16
- it "returns a working client" do
17
- bundle = subject.kube_config_bundle(path: nil, name: nil)
18
- namespaces = make_client(bundle).get_namespaces
19
- expect(namespaces.any?).to be_truthy
20
- end
21
- end
22
- end
23
-
24
- context "with an invalid kube-config options" do
25
- it "returns a working client" do
26
- expect {
27
- subject.kube_config_bundle(path: "bad-path")
28
- }. to raise_exception(Exception)
29
- end
30
- end
31
- end
4
+ #
5
+ # def make_client(bundle)
6
+ # Kubeclient::Client.new(
7
+ # bundle[:endpoint],
8
+ # "v1",
9
+ # **bundle[:options]
10
+ # )
11
+ # end
12
+ #
13
+ # describe ".kube_config_client" do
14
+ # context "with valid kube-config options" do
15
+ # context "using the system default" do
16
+ # it "returns a working client" do
17
+ # bundle = subject.kube_config_bundle(path: nil, name: nil)
18
+ # namespaces = make_client(bundle).get_namespaces
19
+ # expect(namespaces.any?).to be_truthy
20
+ # end
21
+ # end
22
+ # end
23
+ #
24
+ # context "with an invalid kube-config options" do
25
+ # it "returns a working client" do
26
+ # expect {
27
+ # subject.kube_config_bundle(path: "bad-path")
28
+ # }. to raise_exception(Exception)
29
+ # end
30
+ # end
31
+ # end
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kerbi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Millot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-11 00:00:00.000000000 Z
11
+ date: 2022-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -118,17 +118,19 @@ extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
120
  - bin/kerbi
121
- - boilerplate/Gemfile.erb
122
- - boilerplate/kerbifile.rb.erb
123
- - boilerplate/values.yaml.erb
124
121
  - lib/cli/base_handler.rb
125
122
  - lib/cli/base_serializer.rb
126
123
  - lib/cli/config_handler.rb
127
124
  - lib/cli/entry_serializers.rb
128
125
  - lib/cli/project_handler.rb
126
+ - lib/cli/release_handler.rb
127
+ - lib/cli/release_serializer.rb
129
128
  - lib/cli/root_handler.rb
130
129
  - lib/cli/state_handler.rb
131
130
  - lib/cli/values_handler.rb
131
+ - lib/code-gen/new-project/Gemfile.erb
132
+ - lib/code-gen/new-project/kerbifile.rb.erb
133
+ - lib/code-gen/new-project/values.yaml.erb
132
134
  - lib/config/cli_schema.rb
133
135
  - lib/config/config_file.rb
134
136
  - lib/config/globals.rb
@@ -156,43 +158,55 @@ files:
156
158
  - lib/utils/mixing.rb
157
159
  - lib/utils/values.rb
158
160
  - spec/cli/config_handler_spec.rb
161
+ - spec/cli/release_handler_spec.rb
159
162
  - spec/cli/root_handler_spec.rb
160
163
  - spec/cli/state_handler_spec.rb
161
164
  - spec/cli/values_handler_spec.rb
162
- - spec/expectations/common/bad-tag.txt
163
- - spec/expectations/config/bad-set.txt
164
- - spec/expectations/config/set.txt
165
- - spec/expectations/config/show-default.yaml
166
- - spec/expectations/root/template-inlines.yaml
167
- - spec/expectations/root/template-production.yaml
168
- - spec/expectations/root/template-read-inlines.yaml
169
- - spec/expectations/root/template-read.yaml
170
- - spec/expectations/root/template-write.yaml
171
- - spec/expectations/root/template.yaml
172
- - spec/expectations/root/values.json
173
- - spec/expectations/state/delete.txt
174
- - spec/expectations/state/demote.txt
175
- - spec/expectations/state/init-already-existed.txt
176
- - spec/expectations/state/init-both-created.txt
177
- - spec/expectations/state/list.json
178
- - spec/expectations/state/list.txt
179
- - spec/expectations/state/list.yaml
180
- - spec/expectations/state/promote.txt
181
- - spec/expectations/state/prune-candidates.txt
182
- - spec/expectations/state/retag.txt
183
- - spec/expectations/state/set.txt
184
- - spec/expectations/state/show.json
185
- - spec/expectations/state/show.txt
186
- - spec/expectations/state/show.yaml
187
- - spec/expectations/state/status-all-working.txt
188
- - spec/expectations/state/status-not-provisioned.txt
189
- - spec/expectations/values/order-of-precedence.yaml
190
165
  - spec/fixtures/embedding.yaml.erb
166
+ - spec/fixtures/expectations/common/bad-tag.txt
167
+ - spec/fixtures/expectations/config/bad-set.txt
168
+ - spec/fixtures/expectations/config/set.txt
169
+ - spec/fixtures/expectations/config/show-default.yaml
170
+ - spec/fixtures/expectations/release/delete.txt
171
+ - spec/fixtures/expectations/release/init-already-existed.txt
172
+ - spec/fixtures/expectations/release/init-both-created.txt
173
+ - spec/fixtures/expectations/release/list.txt
174
+ - spec/fixtures/expectations/release/status-all-working.txt
175
+ - spec/fixtures/expectations/release/status-data-unreadable.txt
176
+ - spec/fixtures/expectations/release/status-not-provisioned.txt
177
+ - spec/fixtures/expectations/root/template-inlines.yaml
178
+ - spec/fixtures/expectations/root/template-production.yaml
179
+ - spec/fixtures/expectations/root/template-read-inlines.yaml
180
+ - spec/fixtures/expectations/root/template-read.yaml
181
+ - spec/fixtures/expectations/root/template-write.yaml
182
+ - spec/fixtures/expectations/root/template.yaml
183
+ - spec/fixtures/expectations/root/values.json
184
+ - spec/fixtures/expectations/state/delete.txt
185
+ - spec/fixtures/expectations/state/demote.txt
186
+ - spec/fixtures/expectations/state/list.json
187
+ - spec/fixtures/expectations/state/list.txt
188
+ - spec/fixtures/expectations/state/list.yaml
189
+ - spec/fixtures/expectations/state/promote.txt
190
+ - spec/fixtures/expectations/state/prune-candidates.txt
191
+ - spec/fixtures/expectations/state/retag.txt
192
+ - spec/fixtures/expectations/state/set.txt
193
+ - spec/fixtures/expectations/state/show.json
194
+ - spec/fixtures/expectations/state/show.txt
195
+ - spec/fixtures/expectations/state/show.yaml
196
+ - spec/fixtures/expectations/values/order-of-precedence.yaml
191
197
  - spec/main/configmap_backend_spec.rb
192
198
  - spec/main/mixer_spec.rb
193
199
  - spec/main/project_code_gen_spec.rb
194
200
  - spec/main/state_entry_set_spec.rb
195
201
  - spec/main/state_entry_spec.rb
202
+ - spec/mini-projects/hello-kerbi/common/metadata.yaml.erb
203
+ - spec/mini-projects/hello-kerbi/consts.rb
204
+ - spec/mini-projects/hello-kerbi/helpers.rb
205
+ - spec/mini-projects/hello-kerbi/kerbifile.rb
206
+ - spec/mini-projects/hello-kerbi/pod-and-service.yaml.erb
207
+ - spec/mini-projects/hello-kerbi/values/production.yaml
208
+ - spec/mini-projects/hello-kerbi/values/v2.yaml
209
+ - spec/mini-projects/hello-kerbi/values/values.yaml
196
210
  - spec/mixins/mixer_mixin_spec.rb
197
211
  - spec/spec_helper.rb
198
212
  - spec/utils/helm_spec.rb
@@ -224,6 +238,14 @@ signing_key:
224
238
  specification_version: 4
225
239
  summary: Multi-strategy Kubernetes manifest templating engine.
226
240
  test_files:
241
+ - spec/mini-projects/hello-kerbi/common/metadata.yaml.erb
242
+ - spec/mini-projects/hello-kerbi/consts.rb
243
+ - spec/mini-projects/hello-kerbi/pod-and-service.yaml.erb
244
+ - spec/mini-projects/hello-kerbi/values/values.yaml
245
+ - spec/mini-projects/hello-kerbi/values/v2.yaml
246
+ - spec/mini-projects/hello-kerbi/values/production.yaml
247
+ - spec/mini-projects/hello-kerbi/helpers.rb
248
+ - spec/mini-projects/hello-kerbi/kerbifile.rb
227
249
  - spec/spec_helper.rb
228
250
  - spec/mixins/mixer_mixin_spec.rb
229
251
  - spec/main/mixer_spec.rb
@@ -231,34 +253,37 @@ test_files:
231
253
  - spec/main/configmap_backend_spec.rb
232
254
  - spec/main/state_entry_set_spec.rb
233
255
  - spec/main/state_entry_spec.rb
234
- - spec/expectations/common/bad-tag.txt
235
- - spec/expectations/root/template-read-inlines.yaml
236
- - spec/expectations/root/values.json
237
- - spec/expectations/root/template-write.yaml
238
- - spec/expectations/root/template-read.yaml
239
- - spec/expectations/root/template-inlines.yaml
240
- - spec/expectations/root/template.yaml
241
- - spec/expectations/root/template-production.yaml
242
- - spec/expectations/values/order-of-precedence.yaml
243
- - spec/expectations/state/prune-candidates.txt
244
- - spec/expectations/state/list.txt
245
- - spec/expectations/state/status-all-working.txt
246
- - spec/expectations/state/init-both-created.txt
247
- - spec/expectations/state/list.json
248
- - spec/expectations/state/status-not-provisioned.txt
249
- - spec/expectations/state/show.yaml
250
- - spec/expectations/state/demote.txt
251
- - spec/expectations/state/delete.txt
252
- - spec/expectations/state/set.txt
253
- - spec/expectations/state/init-already-existed.txt
254
- - spec/expectations/state/show.json
255
- - spec/expectations/state/list.yaml
256
- - spec/expectations/state/promote.txt
257
- - spec/expectations/state/retag.txt
258
- - spec/expectations/state/show.txt
259
- - spec/expectations/config/bad-set.txt
260
- - spec/expectations/config/set.txt
261
- - spec/expectations/config/show-default.yaml
256
+ - spec/fixtures/expectations/common/bad-tag.txt
257
+ - spec/fixtures/expectations/root/template-read-inlines.yaml
258
+ - spec/fixtures/expectations/root/values.json
259
+ - spec/fixtures/expectations/root/template-write.yaml
260
+ - spec/fixtures/expectations/root/template-read.yaml
261
+ - spec/fixtures/expectations/root/template-inlines.yaml
262
+ - spec/fixtures/expectations/root/template.yaml
263
+ - spec/fixtures/expectations/root/template-production.yaml
264
+ - spec/fixtures/expectations/release/list.txt
265
+ - spec/fixtures/expectations/release/status-all-working.txt
266
+ - spec/fixtures/expectations/release/init-both-created.txt
267
+ - spec/fixtures/expectations/release/status-not-provisioned.txt
268
+ - spec/fixtures/expectations/release/delete.txt
269
+ - spec/fixtures/expectations/release/init-already-existed.txt
270
+ - spec/fixtures/expectations/release/status-data-unreadable.txt
271
+ - spec/fixtures/expectations/values/order-of-precedence.yaml
272
+ - spec/fixtures/expectations/state/prune-candidates.txt
273
+ - spec/fixtures/expectations/state/list.txt
274
+ - spec/fixtures/expectations/state/list.json
275
+ - spec/fixtures/expectations/state/show.yaml
276
+ - spec/fixtures/expectations/state/demote.txt
277
+ - spec/fixtures/expectations/state/delete.txt
278
+ - spec/fixtures/expectations/state/set.txt
279
+ - spec/fixtures/expectations/state/show.json
280
+ - spec/fixtures/expectations/state/list.yaml
281
+ - spec/fixtures/expectations/state/promote.txt
282
+ - spec/fixtures/expectations/state/retag.txt
283
+ - spec/fixtures/expectations/state/show.txt
284
+ - spec/fixtures/expectations/config/bad-set.txt
285
+ - spec/fixtures/expectations/config/set.txt
286
+ - spec/fixtures/expectations/config/show-default.yaml
262
287
  - spec/fixtures/embedding.yaml.erb
263
288
  - spec/utils/k8s_auth_spec.rb
264
289
  - spec/utils/helm_spec.rb
@@ -269,3 +294,4 @@ test_files:
269
294
  - spec/cli/root_handler_spec.rb
270
295
  - spec/cli/config_handler_spec.rb
271
296
  - spec/cli/state_handler_spec.rb
297
+ - spec/cli/release_handler_spec.rb
@@ -1,9 +0,0 @@
1
- module <%= (module_name = data[:user_module_name]) %>
2
- class RootMixer < Kerbi::Mixer
3
- def mix
4
- push dict(hello: values[:message])
5
- end
6
- end
7
- end
8
-
9
- Kerbi::Globals.mixers << <%= module_name %>::RootMixer
@@ -1 +0,0 @@
1
- message: "default message"
@@ -1,2 +0,0 @@
1
- \e[1;39;49mnamespaces/kerbi-spec: \e[0m\e[1;32;49mAlready existed\e[0m
2
- \e[1;39;49mkerbi-spec/configmaps/kerbi-state-tracker: \e[0m\e[1;32;49mAlready existed\e[0m
@@ -1,2 +0,0 @@
1
- \e[1;39;49mnamespaces/kerbi-spec: \e[0m\e[1;34;49mCreated\e[0m
2
- \e[1;39;49mkerbi-spec/configmaps/kerbi-state-tracker: \e[0m\e[1;34;49mCreated\e[0m