kubernetes_helper 1.22.0 → 1.23.1

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: a5b39c5234db5ea545085a760edc80bd97ad25588ff9fb741f52bda0bd75c872
4
- data.tar.gz: a334b733b94e042c266428c2667016712acd48a586517dc41170e0bfa9e56f76
3
+ metadata.gz: 6669ec9f4a5853dbcf7e1fb5153f880a16402b3a3b7ee81fc75bc014486db7c5
4
+ data.tar.gz: 69631b19583b74ed3ee68c91d88d92af198363a750b7ab0f8f71a717700d89bc
5
5
  SHA512:
6
- metadata.gz: 84ee9ef1e8cf30d3e184382c1bf58c6378f7afc0669c607cfeffb7c9c24a4b0c46e876fceefac22b00559ba2ddb3ff4638856f7f40268404e2a6d799379a8f57
7
- data.tar.gz: f559f4fa38b7e120e17d4fea278a9c506fcfa83836a0ab98ed103a6c6de8209dc2a53a13715086b0d26b0d64ad878e58cd833247777e59a36785f4ea00cf8c1e
6
+ metadata.gz: 8c16eadb36f9521d3461aa0d6b7d878c69a5a5191060626e2f4ce78642e7734afc075c11396183dfec8c739f124c0309da242eaf21467c8efc96d8bb5f9697ca
7
+ data.tar.gz: 2290b3690b95cc3391cabb7b0e3f1b64603ea88c8874ea369192ce18fdd7d03a3ed9a58f7c07f0b5d22b1eb4239d3094b17cf654d829e47ab9cecad4c4fe333e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.22.0'
4
+ VERSION = '1.23.1'
5
5
  end
data/lib/templates/cd.sh CHANGED
@@ -16,11 +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
- <% if continuous_deployment.docker_cmd %>
20
- DOCKER_BUILD_CMD="<%= continuous_deployment.docker_cmd %>"
21
- <% else %>
22
- DOCKER_BUILD_CMD="docker <%=continuous_deployment.docker_build_cmd || 'build -f Dockerfile'%> -t $DEPLOY_NAME --build-arg DEPLOY_VERSION=${DEPLOY_VERSION} --build-arg DEPLOY_ENV=${DEPLOY_ENV} ."
23
- <% end %>
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}"
24
21
 
25
22
  <%= include_template "_cd_google.sh" if continuous_deployment.image_name.include?('gcr.io/') %>
26
23
  <%= include_template "_cd_digital.sh" if continuous_deployment.image_name.include?('digitalocean.com/') %>
@@ -8,6 +8,18 @@
8
8
 
9
9
  ---
10
10
 
11
+ <% if ingress.certificate_domain && cloud.name == 'gcloud' %>
12
+ # Https redirection
13
+ apiVersion: networking.gke.io/v1beta1
14
+ kind: FrontendConfig
15
+ metadata:
16
+ name: ssl-redirect-<%=ingress.name%>
17
+ spec:
18
+ redirectToHttps:
19
+ enabled: true
20
+ ---
21
+ <% end %>
22
+
11
23
  apiVersion: networking.k8s.io/v1
12
24
  kind: Ingress
13
25
  metadata:
@@ -23,6 +35,7 @@ metadata:
23
35
 
24
36
  <% if ingress.certificate_domain %>
25
37
  networking.gke.io/managed-certificates: '<%= domains.values.join(", ") %>'
38
+ networking.gke.io/v1beta1.FrontendConfig: ssl-redirect-<%=ingress.name%>
26
39
  <% end %>
27
40
 
28
41
  spec:
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.22.0
4
+ version: 1.23.1
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-16 00:00:00.000000000 Z
11
+ date: 2022-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb