kubernetes_helper 1.23.1 → 1.23.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kubernetes_helper/version.rb +1 -1
- data/lib/templates/_job_liveness.yml +4 -4
- data/lib/templates/cd.sh +2 -2
- 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: 9d48076bbe50a1b283572fee70cfd2889b203eb5bd8b4289cb996366008978ec
|
4
|
+
data.tar.gz: 703cf97fae3f9258d1afbf4572d2d558a429e18bfb28bd3237a88d58ae3d9e7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8983209f3765e63a599d01be0102f5491e9e6d6b77561b8ae898a541332d7f390c775b138528266c1beaf1a192a8633628f931b500feab83a21dc63f16b7d5fb
|
7
|
+
data.tar.gz: d8bbaedb8bc43e47cc352ea21ae42e138146e62c7062e1c08643db4fe40c3507fd0112d090a81018228f869b34c28843cf0ec10563aec1fe16060af9168afa7f
|
@@ -2,10 +2,10 @@
|
|
2
2
|
<% if (locals[:services] || []).any? %>
|
3
3
|
livenessProbe: &liveness_probe
|
4
4
|
exec:
|
5
|
-
command:
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
command:
|
6
|
+
- /bin/sh
|
7
|
+
- -c
|
8
|
+
- '<%= locals[:services].map { |svc| "if [ $(ps -ef | grep \"#{svc}\" | grep -v \"grep\" | wc -l) -eq 0 ]; then echo \"Missing service: #{svc}\"; exit 1; fi" }.join('; ') %>'
|
9
9
|
initialDelaySeconds: 120
|
10
10
|
periodSeconds: 30
|
11
11
|
readinessProbe: *liveness_probe
|
data/lib/templates/cd.sh
CHANGED
@@ -16,8 +16,8 @@ CI_COMMIT_SHA=${CI_COMMIT_SHA:-$(date +%s) }
|
|
16
16
|
DEPLOY_NAME="${IMAGE_NAME}:${CI_COMMIT_SHA}"
|
17
17
|
LATEST_NAME="${IMAGE_NAME}:<%= continuous_deployment.image_tag || 'latest' %>"
|
18
18
|
|
19
|
-
|
20
|
-
DOCKER_BUILD_CMD="
|
19
|
+
DOCKER_ARGS=" -t $DEPLOY_NAME --build-arg DEPLOY_VERSION=${DEPLOY_VERSION} --build-arg DEPLOY_ENV=${DEPLOY_ENV}"
|
20
|
+
DOCKER_BUILD_CMD="<%= continuous_deployment.docker_cmd || "docker #{continuous_deployment.docker_build_cmd || 'build -f Dockerfile'} . $DOCKER_ARGS" %>"
|
21
21
|
|
22
22
|
<%= include_template "_cd_google.sh" if continuous_deployment.image_name.include?('gcr.io/') %>
|
23
23
|
<%= include_template "_cd_digital.sh" if continuous_deployment.image_name.include?('digitalocean.com/') %>
|
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.23.
|
4
|
+
version: 1.23.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- owen2345
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erb
|