kubernetes_helper 1.23.4 → 1.23.6

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: 833ed563a81c23d8d03251d2442403f2e9e46b21e822c178e9c243496a8da186
4
- data.tar.gz: b11b4d9956de1d0faa57696b9d18b1ca94888939e75afd3b54ba1648c2fd6736
3
+ metadata.gz: 1f100682b492030c023338248808bb39b8b32b9f8bbe8e62695e9046827ef5cb
4
+ data.tar.gz: d5bf9901f057c8c62aef123c50d29840baaac54b986e0023bf244e59de4f1ac2
5
5
  SHA512:
6
- metadata.gz: 8998112f49623fd6aca2cd49356ae2a9ab346e244e8a7892faf173657d66bef1d166ed45f3b4ca619faaa13cf0eb33c52cbae8319f4dd6ef2981e5f956180eb3
7
- data.tar.gz: 2798163ce50ac7f259bc564f38960a92c45e2a472de1433d39cf4dab55dea2526df3cdd45a878f765955c0302caf3d44b00157ae2a160a43f935017fd109ae37
6
+ metadata.gz: 4a94c4b53a2fcfa30a27171d2b8948375ea327af8c09a2667afec7d99848f66a3fb5a37192e6c3f9965d0bd8ca1b92e69a87931a591b74f823e677efcbf83bf8
7
+ data.tar.gz: 95d0111d9f72af8d75bd1c9c4f06ed4ba960962903a8ed6ee2a72de4cb22544e8de5069687ddbbe15bed551f83a2c176c6c7679c88454a78318b1734aa3ea282
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.23.4'
4
+ VERSION = '1.23.6'
5
5
  end
@@ -1,18 +1,25 @@
1
- # Download and install doctl
2
1
  if [ -z "$(which doctl)" ]; then
3
- sudo snap install doctl
2
+ wget https://github.com/digitalocean/doctl/releases/download/v1.72.0/doctl-1.72.0-linux-amd64.tar.gz
3
+ tar xf ./doctl-1.72.0-linux-amd64.tar.gz
4
+ mv ./doctl /usr/local/bin
4
5
  fi
5
6
 
6
- if [ ! -z "$KB_AUTH_TOKEN" ]
7
- then
8
- doctl auth init --access-token $KB_AUTH_TOKEN
9
- fi
7
+ ## login doctl
8
+ doctl auth init --access-token $KB_AUTH_TOKEN
9
+ doctl registry login --access-token $KB_AUTH_TOKEN --expiry-seconds 1200
10
10
 
11
11
  ## Build and push containers
12
- echo "****** building image..."
12
+ echo "****** building image...$DOCKER_BUILD_CMD"
13
13
  eval $DOCKER_BUILD_CMD
14
+
15
+ echo "****** pushing image...$DEPLOY_NAME"
14
16
  docker push $DEPLOY_NAME
15
17
 
16
- echo "****** tagging image $DEPLOY_NAME as $LATEST_NAME"
18
+ echo "****** tagging image... $DEPLOY_NAME as $LATEST_NAME"
17
19
  docker tag $DEPLOY_NAME $LATEST_NAME
18
20
  docker push $LATEST_NAME
21
+
22
+ ## enable registry to update deployment
23
+ <% if continuous_deployment.cluster_name %>
24
+ doctl kubernetes cluster kubeconfig save --expiry-seconds 600 <%= continuous_deployment.cluster_name %>
25
+ <% end %>
@@ -39,6 +39,10 @@ metadata:
39
39
  <% end %>
40
40
 
41
41
  spec:
42
+
43
+ <% if ingress.ingress_class %>
44
+ ingressClassName: <%= ingress.ingress_class %>
45
+ <% end %>
42
46
  defaultBackend:
43
47
  service:
44
48
  name: '<%=service.name%>'
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.4
4
+ version: 1.23.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - owen2345
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-12 00:00:00.000000000 Z
11
+ date: 2023-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb