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 +4 -4
- data/README.md +2 -0
- data/lib/kubernetes_helper/version.rb +1 -1
- data/lib/kubernetes_helper.rb +5 -1
- data/lib/templates/cd.sh +2 -0
- data/lib/templates/deployment.yml +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: bf87f6d177cb37e15c19d46f4a4441499d2626343fd37ca723e6145ec2d28129
|
4
|
+
data.tar.gz: 6460afab6ef2fbc33c928ff22844520e0996f5782b1f5d53b3e615dfeed154ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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`
|
data/lib/kubernetes_helper.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erb
|