kubernetes_helper 1.12.3 → 1.12.6

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: bf87f6d177cb37e15c19d46f4a4441499d2626343fd37ca723e6145ec2d28129
4
+ data.tar.gz: 6460afab6ef2fbc33c928ff22844520e0996f5782b1f5d53b3e615dfeed154ff
5
5
  SHA512:
6
- metadata.gz: a363b7f947690f2355ee5629184ad230725956f3d5f0ce0829f00b070c28312da0584b2f9059945cdf05097d210187baeb355e5e3a2254b1e519e95c5a543d7d
7
- data.tar.gz: 6ca97a213ece9cc99af0141d26d582d4f342fe583b68f5c9e2f55d69becf67d144942f898ec173dbcbb7ea27966c3817a6f154537b6faf9215f78146b8b8fd87
6
+ metadata.gz: 816d757cc8ce84fb99cd8036a7f9aea425b47c012a7740f1ea1c158196d66dc94d806c158203a37562c5157ae89dfbb7f3820d5ec5405088db40ef623522b25c
7
+ data.tar.gz: a967a0be0baa0dc7c8f5706a709fe4e4e3e944a74d09c4007f6e8ba93ff979262126ad5ebe44725705c8df462344b401590651787ed77d177173d2f5304076ea
data/README.md CHANGED
@@ -61,6 +61,8 @@ 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
65
+ - `continuous_deployment.after_building_image` (String, default: empty): Add the ability to enter commands after building docker image
64
66
 
65
67
  Below settings are used when configuring the application in the k8s environment
66
68
  - `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.6'
5
5
  end
@@ -24,7 +24,11 @@ module KubernetesHelper
24
24
  },
25
25
  deployment: {
26
26
  log_container: true
27
- }
27
+ },
28
+ service: {},
29
+ secrets: {},
30
+ continuous_deployment: {},
31
+ ingress: {}
28
32
  }
29
33
  deep_merge(def_settings, settings || {})
30
34
  end
data/lib/templates/cd.sh CHANGED
@@ -42,7 +42,9 @@ if [ -z $ALREADY_DEPLOYED ]
42
42
  then
43
43
  ## Build and push containers
44
44
  echo "****** image not created yet, building image..."
45
+ <%=continuous_deployment.before_building_image || ''%>
45
46
  docker $DOCKER_BUILD_CMD -t $DEPLOY_NAME .
47
+ <%=continuous_deployment.after_building_image || ''%>
46
48
  docker push $DEPLOY_NAME
47
49
  else
48
50
  echo "****** image was already created: $ALREADY_DEPLOYED"
@@ -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.6
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