kubernetes_helper 1.21.2.pre → 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: db3da9f1e665e6444e3c4ade4b8a2c8e69286861dd236c4baf9ddbd6767e06fe
4
- data.tar.gz: b3f71c2e4e1bab007f04a38bdb3756a70e96ef33907537fd2549c5eeef50e27c
3
+ metadata.gz: 6669ec9f4a5853dbcf7e1fb5153f880a16402b3a3b7ee81fc75bc014486db7c5
4
+ data.tar.gz: 69631b19583b74ed3ee68c91d88d92af198363a750b7ab0f8f71a717700d89bc
5
5
  SHA512:
6
- metadata.gz: 0f0a8b6e2e9646aee25471d21c49a46e07f02518833017f620498dc536e2d82be0ca36232e1dbfd56c637a0b1872e50b12632edef918c3077ac3f9241e753f53
7
- data.tar.gz: 9f1e5231d13b49d776b80633ca43cd378ba95edde50e150dee2c79344ad8a8fc7a1ae2878be723c6e96d575c566623ddfee1c44bd6ac296578676c171d572ca7
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.21.2.pre'
4
+ VERSION = '1.23.1'
5
5
  end
@@ -14,6 +14,7 @@ then
14
14
  export USE_GKE_GCLOUD_AUTH_PLUGIN=True
15
15
  gcloud components install gke-gcloud-auth-plugin
16
16
  gcloud auth activate-service-account --key-file $AUTH_PATH --project $PROJECT_NAME
17
+ gcloud auth configure-docker
17
18
  gcloud docker --authorize-only --project $PROJECT_NAME
18
19
  gcloud container clusters get-credentials $CLUSTER_NAME --region $CLUSTER_REGION
19
20
  ## ***** END GOOGLE CONNECTOR
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.21.2.pre
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
@@ -78,9 +78,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '1'
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">"
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: 1.3.1
83
+ version: '0'
84
84
  requirements: []
85
85
  rubygems_version: 3.1.2
86
86
  signing_key: