kubernetes_helper 1.24.1 → 1.25.1

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: be24c1c6683955dd3aaa71a017a53fb928aef8f0ae38e834d7e933c6ae2ec190
4
- data.tar.gz: 97a909e2619f633a2c76f606c8d45ff59bccc4660cfdf29540afeb699f65c153
3
+ metadata.gz: a23b329c8a1c0a1e8c26e51abb8bdee2bb0348cd25bd6480d9ed44901d391cda
4
+ data.tar.gz: 14cf4354ea26683aaae8ae12907637e1c0e01f96fafd152280d5164e9f9bdffb
5
5
  SHA512:
6
- metadata.gz: 3cca324a7f49befa7179a371547a122edcd9cf880319b01e2af6892c6c6f1766c52c4d5817e8474ad220bbf500c82f7172ee477b117c2cecc0cd3f89bcf6c889
7
- data.tar.gz: d276b401af604cd906d0170812909babfc99aafa300b1c3b85247066c91ad8ffd4ffff4b32ac208ea0d5f86f184c0ff43debadee06542cb449c609f2749f4caa
6
+ metadata.gz: 7dd61c15ece585e7094cb7551e9efb02e979444722304434ed8afce5b914f02394cb44d4f0ed5bd16f6dd956c107f16b573bed747fab3aace0821627f921d9cf
7
+ data.tar.gz: 705c908ac9431a2d82339352af17825bccb4ab9d58c2af9113457636925899407c58ca9f514b28909a57fad6fea79f4d98c241065deb99464b184fd8ea2a101e
data/README.md CHANGED
@@ -192,6 +192,11 @@ it looks for the file inside kubernetes_helper template folder.
192
192
  - Add one_step_configuration.sh
193
193
  - Change `include_template` into `ERB render partial`
194
194
 
195
+ ## Deploy a new version:
196
+ - Change version in `version.rb`
197
+ - gem build kubernetes_helper.gemspec
198
+ - gem push kubernetes_helper-...
199
+
195
200
  ## Contributing
196
201
 
197
202
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/kubernetes_helper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/kubernetes_helper/blob/master/CODE_OF_CONDUCT.md).
@@ -3,6 +3,7 @@
3
3
  require 'yaml'
4
4
  require 'json'
5
5
  require 'erb'
6
+ require 'ostruct'
6
7
  # require 'byebug' rescue nil
7
8
 
8
9
  module KubernetesHelper
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.24.1'
4
+ VERSION = '1.25.1'
5
5
  end
@@ -0,0 +1,15 @@
1
+ ## Build and push containers
2
+ echo "****** building image...$DOCKER_BUILD_CMD"
3
+ eval $DOCKER_BUILD_CMD
4
+
5
+ echo "****** pushing image...$DEPLOY_NAME"
6
+ docker push $DEPLOY_NAME
7
+
8
+ echo "****** tagging image... $DEPLOY_NAME as $LATEST_NAME"
9
+ docker tag $DEPLOY_NAME $LATEST_NAME
10
+ docker push $LATEST_NAME
11
+
12
+ ## enable registry to update deployment
13
+ <% if continuous_deployment.cluster_name %>
14
+ doctl kubernetes cluster kubeconfig save --expiry-seconds 600 <%= continuous_deployment.cluster_name %>
15
+ <% end %>
data/lib/templates/cd.sh CHANGED
@@ -21,6 +21,7 @@ DOCKER_BUILD_CMD="<%= continuous_deployment.docker_cmd || "docker #{continuous_d
21
21
 
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
+ <%= include_template "_cd_github.sh" if continuous_deployment.image_name.include?('ghcr.io/') %>
24
25
 
25
26
  <% unless ENV['SSH_PRIVATE_KEY'] %>
26
27
  ## Update new secrets defined in secrets.yml as ENV vars for deployments
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.24.1
4
+ version: 1.25.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: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2026-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb
@@ -42,6 +42,7 @@ files:
42
42
  - lib/templates/README.md
43
43
  - lib/templates/_cd_apply_images.sh
44
44
  - lib/templates/_cd_digital.sh
45
+ - lib/templates/_cd_github.sh
45
46
  - lib/templates/_cd_google.sh
46
47
  - lib/templates/_container_extra_settings.yml
47
48
  - lib/templates/_cronjobs_pod.yml
@@ -67,7 +68,7 @@ metadata:
67
68
  homepage_uri: https://github.com/owen2345/kubernetes_helper
68
69
  source_code_uri: https://github.com/owen2345/kubernetes_helper
69
70
  changelog_uri: https://github.com/owen2345/kubernetes_helper
70
- post_install_message:
71
+ post_install_message:
71
72
  rdoc_options: []
72
73
  require_paths:
73
74
  - lib
@@ -82,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
83
  - !ruby/object:Gem::Version
83
84
  version: '0'
84
85
  requirements: []
85
- rubygems_version: 3.0.3.1
86
- signing_key:
86
+ rubygems_version: 3.5.11
87
+ signing_key:
87
88
  specification_version: 4
88
89
  summary: Kubernetes helper to manage deployment files
89
90
  test_files: []