kubernetes_helper 1.1 → 1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bed0753481fee12fa822da715a6836b55fb561deaca02e8763e59d05b3edc6b
4
- data.tar.gz: 28d56d40d55c667e479ee26126fc7014415afec77ee884eb58daac2c4e60809e
3
+ metadata.gz: a680149c9a36ebc58fc0f7560a1257bc48bedfbf8a12ed93cfed112b12799407
4
+ data.tar.gz: b0b0dafefba5594194bed8bf990ace04f04297939f2861575d79b84c716aacca
5
5
  SHA512:
6
- metadata.gz: d4d8b5606a4d3d9649de1add4341dcea076e2892e2d908d24f1cce5c14fb206b9bd779da7546544634b0341806163f3949f98c24bdd9a0a16dbf4149fa597117
7
- data.tar.gz: 331f4263fb0ad4fd29bda318f079e36e0954c58bd8a50dc4507e49d0e88043afcfe03a8bad22390d5776042bd07837d4232c5b7879a06074870369274866537d
6
+ metadata.gz: 2b3829818e7e37a552fe645686b954a27ac7779ab6097aaba16fe3b6b91538c471c4501b9c9d1346230737553772058ae0c4cc5183b4fe61ca1a289cf5422d24
7
+ data.tar.gz: c98898c74f76a1d796387953450360a5d167b070a23461a58f3ae20b93a840906920fc191b196354132ff124925d6c877bd1baf28a60a5d6f766fd7c0af89e60
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.1'
4
+ VERSION = '1.2'
5
5
  end
File without changes
@@ -0,0 +1,7 @@
1
+ apiVersion: networking.gke.io/v1beta1
2
+ kind: ManagedCertificate
3
+ metadata:
4
+ name: '<%=ingress.certificate_name%>'
5
+ spec:
6
+ domains: # does not support for willcard domains
7
+ - '<%=ingress.domain_name%>'
@@ -61,6 +61,7 @@ documents:
61
61
  command: ["/cloud_sql_proxy", "--dir=/cloudsql",
62
62
  "-instances=<%=deployment.cloud_sql_instance%>",
63
63
  "-credential_file=/secrets/gcloud/credentials.json"]
64
+ env: []
64
65
  volumeMounts:
65
66
  - *cloud_credentials_volume
66
67
  <% end %>
@@ -68,7 +69,8 @@ documents:
68
69
  - &logs_container # print to stdout all log files
69
70
  name: print-logs
70
71
  image: busybox
71
- command: [/bin/sh, -c, 'until find log/*.log; do sleep 1; done; tail -n+1 -f log/*.log']
72
+ command: [/bin/sh, -c, 'until find /app/log/*.log; do sleep 1; done; tail -n+1 -f /app/log/*.log']
73
+ env: []
72
74
  volumeMounts:
73
75
  - *log_volume
74
76
 
@@ -108,7 +110,7 @@ documents:
108
110
  <% end %>
109
111
 
110
112
  <% if deployment.job_sidekiq_alive_gem %>
111
- <%= include_template "_sidekiq_alive_gem.yml.erb" %>
113
+ <%= include_template "_sidekiq_alive_gem.yml" %>
112
114
  <% else %>
113
115
  ports: [ ]
114
116
  <% if (deployment.job_services || []).any? %>
@@ -132,5 +134,5 @@ documents:
132
134
  <% end %>
133
135
 
134
136
  <% if deployment.replicas_range %>
135
- <%= include_template "_replicas.yml.erb" %>
137
+ <%= include_template "_replicas.yml" %>
136
138
  <% end %>
@@ -1,11 +1,5 @@
1
1
  <% if ingress.domain_name %>
2
- apiVersion: networking.gke.io/v1beta1
3
- kind: ManagedCertificate
4
- metadata:
5
- name: '<%=ingress.certificate_name%>'
6
- spec:
7
- domains: # does not support for willcard domains
8
- - '<%=ingress.domain_name%>'
2
+ <%= include_template "certificate.yml" %>
9
3
  <% end %>
10
4
 
11
5
  ---
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.1'
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - owen2345
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-06 00:00:00.000000000 Z
11
+ date: 2021-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb
@@ -40,9 +40,10 @@ files:
40
40
  - lib/kubernetes_helper/railtie.rb
41
41
  - lib/kubernetes_helper/version.rb
42
42
  - lib/templates/README.md
43
- - lib/templates/_replicas.yml.erb
44
- - lib/templates/_sidekiq_alive_gem.yml.erb
43
+ - lib/templates/_replicas.yml
44
+ - lib/templates/_sidekiq_alive_gem.yml
45
45
  - lib/templates/cd.sh
46
+ - lib/templates/certificate.yml
46
47
  - lib/templates/deployment.yml
47
48
  - lib/templates/ingress.yml
48
49
  - lib/templates/secrets.yml