kubernetes_helper 1.23.6 → 1.24.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: 1f100682b492030c023338248808bb39b8b32b9f8bbe8e62695e9046827ef5cb
4
- data.tar.gz: d5bf9901f057c8c62aef123c50d29840baaac54b986e0023bf244e59de4f1ac2
3
+ metadata.gz: be24c1c6683955dd3aaa71a017a53fb928aef8f0ae38e834d7e933c6ae2ec190
4
+ data.tar.gz: 97a909e2619f633a2c76f606c8d45ff59bccc4660cfdf29540afeb699f65c153
5
5
  SHA512:
6
- metadata.gz: 4a94c4b53a2fcfa30a27171d2b8948375ea327af8c09a2667afec7d99848f66a3fb5a37192e6c3f9965d0bd8ca1b92e69a87931a591b74f823e677efcbf83bf8
7
- data.tar.gz: 95d0111d9f72af8d75bd1c9c4f06ed4ba960962903a8ed6ee2a72de4cb22544e8de5069687ddbbe15bed551f83a2c176c6c7679c88454a78318b1734aa3ea282
6
+ metadata.gz: 3cca324a7f49befa7179a371547a122edcd9cf880319b01e2af6892c6c6f1766c52c4d5817e8474ad220bbf500c82f7172ee477b117c2cecc0cd3f89bcf6c889
7
+ data.tar.gz: d276b401af604cd906d0170812909babfc99aafa300b1c3b85247066c91ad8ffd4ffff4b32ac208ea0d5f86f184c0ff43debadee06542cb449c609f2749f4caa
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.23.6'
4
+ VERSION = '1.24.1'
5
5
  end
data/lib/templates/cd.sh CHANGED
@@ -22,15 +22,17 @@ DOCKER_BUILD_CMD="<%= continuous_deployment.docker_cmd || "docker #{continuous_d
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/') %>
24
24
 
25
- ## Update new secrets defined in secrets.yml as ENV vars for deployments
26
- <% if continuous_deployment.update_deployment %>
27
- DEPLOY_IMAGE_TAG=$CI_COMMIT_SHA kubernetes_helper run_yml 'deployment.yml' 'kubectl apply'
25
+ <% unless ENV['SSH_PRIVATE_KEY'] %>
26
+ ## Update new secrets defined in secrets.yml as ENV vars for deployments
27
+ <% if continuous_deployment.update_deployment %>
28
+ DEPLOY_IMAGE_TAG=$CI_COMMIT_SHA kubernetes_helper run_yml 'deployment.yml' 'kubectl apply'
29
+ <% end %>
30
+
31
+ ## Apply deployments
32
+ IFS=',' read -r -a deployments <<< "$DEPLOYMENTS"
33
+ for deployment in "${deployments[@]}"; do
34
+ [ -z "$deployment" ] && continue # if empty value
35
+
36
+ <%= include_template "_cd_apply_images.sh" %>
37
+ done
28
38
  <% end %>
29
-
30
- ## Apply deployments
31
- IFS=',' read -r -a deployments <<< "$DEPLOYMENTS"
32
- for deployment in "${deployments[@]}"; do
33
- [ -z "$deployment" ] && continue # if empty value
34
-
35
- <%= include_template "_cd_apply_images.sh" %>
36
- done
@@ -32,6 +32,10 @@ metadata:
32
32
  <% if ingress.ip_name %>
33
33
  kubernetes.io/ingress.global-static-ip-name: "<%=ingress.ip_name%>"
34
34
  <% end %>
35
+
36
+ <% if ingress.ingress_class.to_s == 'nginx' %>
37
+ nginx.ingress.kubernetes.io/proxy-body-size: <%= ingress.max_body_size || '50m' %>
38
+ <% end %>
35
39
 
36
40
  <% if ingress.certificate_domain %>
37
41
  networking.gke.io/managed-certificates: '<%= domains.values.join(", ") %>'
@@ -24,6 +24,11 @@ metadata:
24
24
  service.beta.kubernetes.io/do-loadbalancer-certificate-id: <%= service.do_certificate_id %>
25
25
  service.beta.kubernetes.io/do-loadbalancer-redirect-http-to-https: "true"
26
26
  <% end %>
27
+ <% if cloud.name == 'digital_ocean' && service.load_balancer_id %>
28
+ kubernetes.digitalocean.com/load-balancer-id: <%= service.load_balancer_id %>
29
+ service.beta.kubernetes.io/do-loadbalancer-size-unit: "3"
30
+ service.beta.kubernetes.io/do-loadbalancer-disable-lets-encrypt-dns-records: "false"
31
+ <% end %>
27
32
  <% if cloud.name == 'gcloud' %>
28
33
  beta.cloud.google.com/backend-config: '{"ports": {"80":"<%=service.name%>-bconfig"}}'
29
34
  <% end %>
@@ -37,7 +42,7 @@ spec:
37
42
  name: '<%=service.port_name%>'
38
43
  targetPort: '<%=service.backend_port_name%>'
39
44
 
40
- <% if cloud.name == 'digital_ocean' && service.do_certificate_id %>
45
+ <% if cloud.name == 'digital_ocean' && (service.do_certificate_id || service.load_balancer_id) %>
41
46
  - name: https
42
47
  protocol: TCP
43
48
  port: 443
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.6
4
+ version: 1.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - owen2345
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb
@@ -67,7 +67,7 @@ metadata:
67
67
  homepage_uri: https://github.com/owen2345/kubernetes_helper
68
68
  source_code_uri: https://github.com/owen2345/kubernetes_helper
69
69
  changelog_uri: https://github.com/owen2345/kubernetes_helper
70
- post_install_message:
70
+ post_install_message:
71
71
  rdoc_options: []
72
72
  require_paths:
73
73
  - lib
@@ -82,8 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.1.2
86
- signing_key:
85
+ rubygems_version: 3.0.3.1
86
+ signing_key:
87
87
  specification_version: 4
88
88
  summary: Kubernetes helper to manage deployment files
89
89
  test_files: []