cuber 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cuber/templates/deployment.yml.erb +53 -48
- data/lib/cuber/templates/pod.yml.erb +2 -2
- data/lib/cuber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5791ce33c71c03935fda3c59aa5b9ee5c5694ae0b3f0c359dc6522078745510
|
4
|
+
data.tar.gz: ddf9c67fbd2840334fb15efe4a595dd57200448b85f05943204250a5a1a43e4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a97f170cb22b7e70254991ba0271787904d6578c2d3bbdc4dd5cef474244c0d27d6327ab7abe0c541210a49c0db1dd5744bdb2a0329f0e7ae28e536fa0ecfe3e
|
7
|
+
data.tar.gz: 4fb13ed216d12812886944298df382d7162d058d64f7e6e863338f2b8a29fe8feb826972c37f36bdcedb7ce89568a502e9ee340a41470fb3513de4a5f57cd933
|
@@ -3,9 +3,9 @@ apiVersion: v1
|
|
3
3
|
metadata:
|
4
4
|
name: <%= @options[:app] %>
|
5
5
|
labels:
|
6
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
7
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
8
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
6
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
7
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
8
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
9
9
|
app.kubernetes.io/managed-by: cuber
|
10
10
|
annotations:
|
11
11
|
image: <%= @options[:image].to_s.to_json %>
|
@@ -19,9 +19,9 @@ metadata:
|
|
19
19
|
name: regcred
|
20
20
|
namespace: <%= @options[:app] %>
|
21
21
|
labels:
|
22
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
23
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
24
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
22
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
23
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
24
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
25
25
|
app.kubernetes.io/managed-by: cuber
|
26
26
|
data:
|
27
27
|
.dockerconfigjson: <%= @options[:dockerconfigjson] %>
|
@@ -34,9 +34,9 @@ metadata:
|
|
34
34
|
name: app-secrets
|
35
35
|
namespace: <%= @options[:app] %>
|
36
36
|
labels:
|
37
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
38
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
39
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
37
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
38
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
39
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
40
40
|
app.kubernetes.io/managed-by: cuber
|
41
41
|
data:
|
42
42
|
<%- @options[:secrets].each do |key, value| -%>
|
@@ -50,9 +50,9 @@ metadata:
|
|
50
50
|
name: env
|
51
51
|
namespace: <%= @options[:app] %>
|
52
52
|
labels:
|
53
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
54
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
55
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
53
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
54
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
55
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
56
56
|
app.kubernetes.io/managed-by: cuber
|
57
57
|
data:
|
58
58
|
<%- @options[:env].each do |key, value| -%>
|
@@ -66,9 +66,9 @@ metadata:
|
|
66
66
|
name: web-pdb
|
67
67
|
namespace: <%= @options[:app] %>
|
68
68
|
labels:
|
69
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
70
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
71
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
69
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
70
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
71
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
72
72
|
app.kubernetes.io/managed-by: cuber
|
73
73
|
spec:
|
74
74
|
maxUnavailable: "50%"
|
@@ -84,17 +84,17 @@ metadata:
|
|
84
84
|
name: migrate-<%= @options[:instance] %>
|
85
85
|
namespace: <%= @options[:app] %>
|
86
86
|
labels:
|
87
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
88
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
89
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
87
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
88
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
89
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
90
90
|
app.kubernetes.io/managed-by: cuber
|
91
91
|
spec:
|
92
92
|
template:
|
93
93
|
metadata:
|
94
94
|
labels:
|
95
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
96
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
97
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
95
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
96
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
97
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
98
98
|
app.kubernetes.io/managed-by: cuber
|
99
99
|
spec:
|
100
100
|
containers:
|
@@ -125,9 +125,9 @@ metadata:
|
|
125
125
|
name: <%= procname %>
|
126
126
|
namespace: <%= @options[:app] %>
|
127
127
|
labels:
|
128
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
129
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
130
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
128
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
129
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
130
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
131
131
|
app.kubernetes.io/managed-by: cuber
|
132
132
|
spec:
|
133
133
|
revisionHistoryLimit: 0
|
@@ -135,12 +135,17 @@ spec:
|
|
135
135
|
selector:
|
136
136
|
matchLabels:
|
137
137
|
app: <%= procname %>-proc
|
138
|
+
strategy:
|
139
|
+
type: RollingUpdate
|
140
|
+
rollingUpdate:
|
141
|
+
maxUnavailable: "25%"
|
142
|
+
maxSurge: 0
|
138
143
|
template:
|
139
144
|
metadata:
|
140
145
|
labels:
|
141
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
142
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
143
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
146
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
147
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
148
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
144
149
|
app.kubernetes.io/managed-by: cuber
|
145
150
|
app: <%= procname %>-proc
|
146
151
|
spec:
|
@@ -223,9 +228,9 @@ metadata:
|
|
223
228
|
name: cron-<%= jobname %>
|
224
229
|
namespace: <%= @options[:app] %>
|
225
230
|
labels:
|
226
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
227
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
228
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
231
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
232
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
233
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
229
234
|
app.kubernetes.io/managed-by: cuber
|
230
235
|
spec:
|
231
236
|
schedule: <%= cron[:schedule].to_s.to_json %>
|
@@ -235,18 +240,18 @@ spec:
|
|
235
240
|
jobTemplate:
|
236
241
|
metadata:
|
237
242
|
labels:
|
238
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
239
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
240
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
243
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
244
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
245
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
241
246
|
app.kubernetes.io/managed-by: cuber
|
242
247
|
spec:
|
243
248
|
backoffLimit: 0
|
244
249
|
template:
|
245
250
|
metadata:
|
246
251
|
labels:
|
247
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
248
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
249
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
252
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
253
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
254
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
250
255
|
app.kubernetes.io/managed-by: cuber
|
251
256
|
spec:
|
252
257
|
containers:
|
@@ -277,9 +282,9 @@ metadata:
|
|
277
282
|
name: ssl
|
278
283
|
namespace: <%= @options[:app] %>
|
279
284
|
labels:
|
280
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
281
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
282
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
285
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
286
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
287
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
283
288
|
app.kubernetes.io/managed-by: cuber
|
284
289
|
data:
|
285
290
|
tls.crt: <%= Base64.strict_encode64 File.read @options[:ssl][:crt] %>
|
@@ -295,9 +300,9 @@ metadata:
|
|
295
300
|
name: web-service
|
296
301
|
namespace: <%= @options[:app] %>
|
297
302
|
labels:
|
298
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
299
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
300
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
303
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
304
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
305
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
301
306
|
app.kubernetes.io/managed-by: cuber
|
302
307
|
spec:
|
303
308
|
selector:
|
@@ -314,9 +319,9 @@ metadata:
|
|
314
319
|
name: web-ingress
|
315
320
|
namespace: <%= @options[:app] %>
|
316
321
|
labels:
|
317
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
318
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
319
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
322
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
323
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
324
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
320
325
|
app.kubernetes.io/managed-by: cuber
|
321
326
|
annotations:
|
322
327
|
<%- @options[:lb].each do |key, value| -%>
|
@@ -345,9 +350,9 @@ metadata:
|
|
345
350
|
name: load-balancer
|
346
351
|
namespace: <%= @options[:app] %>
|
347
352
|
labels:
|
348
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
349
|
-
app.kubernetes.io/instance: <%= @options[:instance] %>
|
350
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
353
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
354
|
+
app.kubernetes.io/instance: <%= @options[:instance].to_s.to_json %>
|
355
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
351
356
|
app.kubernetes.io/managed-by: cuber
|
352
357
|
annotations:
|
353
358
|
<%- @options[:lb].each do |key, value| -%>
|
@@ -4,8 +4,8 @@ metadata:
|
|
4
4
|
name: <%= @options[:pod] %>
|
5
5
|
namespace: <%= @options[:app] %>
|
6
6
|
labels:
|
7
|
-
app.kubernetes.io/name: <%= @options[:app] %>
|
8
|
-
app.kubernetes.io/version: <%= @options[:release] %>
|
7
|
+
app.kubernetes.io/name: <%= @options[:app].to_s.to_json %>
|
8
|
+
app.kubernetes.io/version: <%= @options[:release].to_s.to_json %>
|
9
9
|
app.kubernetes.io/managed-by: cuber
|
10
10
|
spec:
|
11
11
|
containers:
|
data/lib/cuber/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cuber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|