kubernetes_helper 1.12.3 → 1.12.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7707e54b5816b249a071c784b724c18c75917322f8ade8a8311dd369ff387ba
4
- data.tar.gz: ae5a6eedf86732e72084d810a39100ad8be121a9f28e42a7ed1b1e26c756a9eb
3
+ metadata.gz: ac69b9f6972032067714455719b0c5563e5f2c0fed0a82a21665fdbae3b7cf41
4
+ data.tar.gz: a5b8d1b32f9fe5d9d8cdc6e96e45e0d96090db42f61bbfb11c896bd6ec92c5dd
5
5
  SHA512:
6
- metadata.gz: a363b7f947690f2355ee5629184ad230725956f3d5f0ce0829f00b070c28312da0584b2f9059945cdf05097d210187baeb355e5e3a2254b1e519e95c5a543d7d
7
- data.tar.gz: 6ca97a213ece9cc99af0141d26d582d4f342fe583b68f5c9e2f55d69becf67d144942f898ec173dbcbb7ea27966c3817a6f154537b6faf9215f78146b8b8fd87
6
+ metadata.gz: 1d0189b8f37392fcaeba4e8982936f3ddc8fd6bfd4866cd47f04b5f8989e12f95863de50fb6a9201f7a58ca07ca00c4a1ceb1445fe4857eed07ad79a83c1ca6c
7
+ data.tar.gz: d39a3d77f973eb1e05c8dc5357b22102f6cf7bb0baa24ccbeb96d88a9c134b4f1ded05c40588e6e4baff74adf0d46d709897e3123798c172f60c142a775bbbb8
data/README.md CHANGED
@@ -61,6 +61,7 @@ Below settings are used when running Continuous Deployment
61
61
  - `continuous_deployment.cluster_region`: Cluster region name. Sample: `europe-west4-a`
62
62
  - `continuous_deployment.docker_build_cmd`: Docker command to build the corresponding image. Sample: `build --target production -f Dockerfile `
63
63
  - `continuous_deployment.update_deployment` (Boolean, default: false): If true permits to re-generate and update the k8s deployment(s) before applying the new version (new docker image)
64
+ - `continuous_deployment.before_building_image` (String, default: empty): Add the ability to enter commands before building docker image
64
65
 
65
66
  Below settings are used when configuring the application in the k8s environment
66
67
  - `deployment.name` (String): Web deployment name (Note: Underscores are not accepted). Sample: `my-app`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.12.3'
4
+ VERSION = '1.12.4'
5
5
  end
data/lib/templates/cd.sh CHANGED
@@ -37,6 +37,7 @@ then
37
37
  fi
38
38
 
39
39
 
40
+ <%=continuous_deployment.before_building_image || ''%>
40
41
  ALREADY_DEPLOYED="$(gcloud container images list-tags --format='get(tags)' $IMAGE_NAME | grep $CI_COMMIT_SHA || :;)"
41
42
  if [ -z $ALREADY_DEPLOYED ]
42
43
  then
@@ -30,7 +30,7 @@ documents:
30
30
  import_secrets: ['secrets.yml', '<%=secrets.name%>']
31
31
  ports:
32
32
  - containerPort: &port <%= deployment.app_port || 3000 %>
33
- name: '<%=service.backend_port_name%>'
33
+ name: '<%=service.backend_port_name || 'b-port'%>'
34
34
 
35
35
  <% if deployment.liveness_path %>
36
36
  livenessProbe: &liveness_probe
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubernetes_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.3
4
+ version: 1.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - owen2345
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-10 00:00:00.000000000 Z
11
+ date: 2022-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb