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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6669ec9f4a5853dbcf7e1fb5153f880a16402b3a3b7ee81fc75bc014486db7c5
4
- data.tar.gz: 69631b19583b74ed3ee68c91d88d92af198363a750b7ab0f8f71a717700d89bc
3
+ metadata.gz: 9d48076bbe50a1b283572fee70cfd2889b203eb5bd8b4289cb996366008978ec
4
+ data.tar.gz: 703cf97fae3f9258d1afbf4572d2d558a429e18bfb28bd3237a88d58ae3d9e7f
5
5
  SHA512:
6
- metadata.gz: 8c16eadb36f9521d3461aa0d6b7d878c69a5a5191060626e2f4ce78642e7734afc075c11396183dfec8c739f124c0309da242eaf21467c8efc96d8bb5f9697ca
7
- data.tar.gz: 2290b3690b95cc3391cabb7b0e3f1b64603ea88c8874ea369192ce18fdd7d03a3ed9a58f7c07f0b5d22b1eb4239d3094b17cf654d829e47ab9cecad4c4fe333e
6
+ metadata.gz: 8983209f3765e63a599d01be0102f5491e9e6d6b77561b8ae898a541332d7f390c775b138528266c1beaf1a192a8633628f931b500feab83a21dc63f16b7d5fb
7
+ data.tar.gz: d8bbaedb8bc43e47cc352ea21ae42e138146e62c7062e1c08643db4fe40c3507fd0112d090a81018228f869b34c28843cf0ec10563aec1fe16060af9168afa7f
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.23.1'
4
+ VERSION = '1.23.3'
5
5
  end
@@ -2,10 +2,10 @@
2
2
  <% if (locals[:services] || []).any? %>
3
3
  livenessProbe: &liveness_probe
4
4
  exec:
5
- command: [ /bin/sh, -c,
6
- 'if [ $(ps -ef | grep "<%= locals[:services].join("\\|") %>" | grep -v "grep" | wc -l) -lt <%= locals[:services].count %> ]; then
7
- echo "Some required services are not running"; exit 1;
8
- fi' ]
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
- build_cmd="<%= continuous_deployment.docker_cmd || "docker #{continuous_deployment.docker_build_cmd || 'build -f Dockerfile'} ." %>"
20
- DOCKER_BUILD_CMD="$build_cmd -t $DEPLOY_NAME --build-arg DEPLOY_VERSION=${DEPLOY_VERSION} --build-arg DEPLOY_ENV=${DEPLOY_ENV}"
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.1
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: 2022-12-27 00:00:00.000000000 Z
11
+ date: 2023-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb