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 +4 -4
- data/lib/kubernetes_helper/version.rb +1 -1
- data/lib/templates/cd.sh +2 -5
- data/lib/templates/ingress.yml +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6669ec9f4a5853dbcf7e1fb5153f880a16402b3a3b7ee81fc75bc014486db7c5
|
4
|
+
data.tar.gz: 69631b19583b74ed3ee68c91d88d92af198363a750b7ab0f8f71a717700d89bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c16eadb36f9521d3461aa0d6b7d878c69a5a5191060626e2f4ce78642e7734afc075c11396183dfec8c739f124c0309da242eaf21467c8efc96d8bb5f9697ca
|
7
|
+
data.tar.gz: 2290b3690b95cc3391cabb7b0e3f1b64603ea88c8874ea369192ce18fdd7d03a3ed9a58f7c07f0b5d22b1eb4239d3094b17cf654d829e47ab9cecad4c4fe333e
|
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
|
-
|
20
|
-
|
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/') %>
|
data/lib/templates/ingress.yml
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2022-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erb
|