kubes 0.7.5 → 0.7.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: 5d1ec1d6ee1348fc20d3e56bca7f82275510eee4b6d7cc2d6830aa0ae21016a1
4
- data.tar.gz: 2edc8e10565bbeba2551e8b1463ebe2ea122c8c089413bbc41283daefb9eeceb
3
+ metadata.gz: e73d57fba41a00e9ace349a4b3d9da7815e52a5025fcda97b64cfc185797ba35
4
+ data.tar.gz: a6114d33d48893ed2f748b0720aaf7dca8f71a75b4b3e3f4ae3f690680b35f26
5
5
  SHA512:
6
- metadata.gz: 7d7ef397578596e7dc9c9225447073eb2d0dedd21b6429d6ee1febd1b5d45cebcea69171fd5d4ed1de1a45772824d919e9287a43306c0796e8d33c295eb250ce
7
- data.tar.gz: a3fc1e2e6ba21cbb820ccf290acda1f353bc536be0a72c769467314057a25dd83a1de93bac2aee461b5c3cb70abf59cb60ce83c5250a2e48f28197a311b46d64
6
+ metadata.gz: e28f97ff9b675adbce4066afbbde6fa4c853f2172e430659db25b8865409d5fb19aace0a464c809a95ddee6152e8f389cd9e43c6dc9696c9297fd2b8465c5c77
7
+ data.tar.gz: 42c6780d303119bb42d65075043bcaaf38fd1eec20a8b4448695a598ae22e7ab1b28f6d3920116c7cd9c76630be4d332871833f194383e1c05537ac3bab00a73
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.7.6] - 2021-10-12
7
+ - remove init yaml templates, removed duplication
8
+ - write full.yaml to .kubes/tmp instead
9
+
6
10
  ## [0.7.5] - 2021-06-03
7
11
  - [#47](https://github.com/boltops-tools/kubes/pull/47) add search
8
12
  - [#48](https://github.com/boltops-tools/kubes/pull/48) use deep_merge overwrite_arrays option fixes #45
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  [![BoltOps Badge](https://img.boltops.com/boltops/badges/boltops-badge.png)](https://www.boltops.com)
10
10
 
11
- Kubernetes Deployment Tool: build docker image, compile Kubernetes YAML files, and apply them.
11
+ Kubernetes App Deploy Tool: build docker image, compile Kubernetes YAML files, and apply them.
12
12
 
13
13
  Please **watch/star** this repo to help grow and support the project.
14
14
 
@@ -20,6 +20,8 @@ The deploy command simpifily does all 3 steps: build, compile, and apply.
20
20
 
21
21
  kubes deploy
22
22
 
23
+ Kubes is very transparent about it does. It prints out the `kubectl` commands as they are being called.
24
+
23
25
  You can also run the `kubectl apply` only. The `kube apply` command compiles but will skip the docker build stage if it's already been built.
24
26
 
25
27
  kubes apply
@@ -4,7 +4,7 @@ nav_text: Helm
4
4
  categories: vs
5
5
  ---
6
6
 
7
- Though both Kubes and Helm can be used to deploy applications to Kubernetes, they work quite differently. Kubernetes is more focused on deploying your application. Helm is more like a package manager.
7
+ Kubes and Helm are quite different. Helm is a package manager tool. In contrast, Kubernetes is focused on deploying your application. While you can use package manager tools like Helm to deploy your application, application-focused deploy tools are better for the job. For example, apt-get and yum are also package manager tools. But few companies use `apt-get install` or `yum install` to deploy their application code. Instead, people usually use application-specific tools to deploy their web app.
8
8
 
9
9
  {% include vs/article.md %}
10
10
 
@@ -168,7 +168,7 @@ Helm supports a wide variety of hooks for the install, delete, upgrade, and roll
168
168
 
169
169
  Kubes also supports hook as the kubes-level; this is similar to the helm-level. Kubes also provide finer-grain control hooks at the kubectl-level.
170
170
 
171
- Overally, Helm and Kubes hooks work quite differently. We'll take a look at **some** examples:
171
+ Overall, Helm and Kubes hooks work quite differently. We'll take a look at **some** examples:
172
172
 
173
173
  ### Helm Hook Example
174
174
 
@@ -240,4 +240,4 @@ Kubes supports the deployment workflow. It can build the docker image from your
240
240
 
241
241
  ## Summary
242
242
 
243
- Helm and Kubes are quite different. Helm is a full-fledge package management. Kubes is a more focused on deployment. Both tools support templating logic to help keep your code DRY. Additionally, Kubes supports layering to merge YAML files together for DRYness. Kubes also helps you build your Docker images.
243
+ Helm and Kubes are quite different. Helm is a full-fledge package management tool. In contrast, Kubes is more focused on app deployment. Both tools support templating logic to help keep your code DRY. Additionally, Kubes supports layering to merge YAML files together for DRYness. Kubes also helps you build your Docker images.
@@ -1,3 +1,3 @@
1
- Kubes is a Kubernetes deployment tool. It automates the deployment process. Kubes will:
1
+ Kubes is a Kubernetes deployment tool. It focuses on deploying your specific application. It is very good at automating the deployment process. Kubes will:
2
2
 
3
3
  {% include kubes-steps.md %}
data/docs/index.html CHANGED
@@ -9,8 +9,8 @@ sidebar: false
9
9
  <div class="col-sm-8 col-sm-offset-2">
10
10
  <div class="header-content">
11
11
  <div class="header-content-inner">
12
- <h1>Kubes: Kubernetes Deployment Tool</h1>
13
- <h2>Kubes is a Kubernetes Deployment Tool. It builds the docker image, creates the Kubernetes YAML, and runs kubectl apply. It automates the deployment process and saves you precious finger-typing energy.</h2>
12
+ <h1>Kubes: Kubernetes App Deploy Tool</h1>
13
+ <h2>Kubes is a Kubernetes App Deployment Tool. It focuses on deploying your specific application. It builds the docker image, creates the Kubernetes YAML, and runs kubectl apply. It automates the deployment process and saves you precious finger-typing energy.</h2>
14
14
  </div>
15
15
  </div>
16
16
  </div>
@@ -86,10 +86,11 @@ class Kubes::CLI
86
86
  ignores = %w[
87
87
  .kubes/output
88
88
  .kubes/state
89
+ .kubes/tmp
89
90
  ].map {|l| "#{l}\n"} # the readlines will have lines with \n so keep consistent for processing
90
91
  if File.exist?(".gitignore")
91
92
  lines = IO.readlines(".gitignore")
92
- if lines.detect { |l| l.include?('.kubes/output') }
93
+ if lines.detect { |l| l.include?('.kubes/tmp') }
93
94
  return # early
94
95
  else
95
96
  lines += ignores
@@ -57,7 +57,8 @@ module Kubes
57
57
  acc << IO.read(file)
58
58
  end
59
59
  content = full.join("\n")
60
- path = "#{Kubes.root}/.kubes/output/full.yaml"
60
+ path = "#{Kubes.root}/.kubes/tmp/full.yaml" # write to tmp instead of output so it doesnt interfere with kubes get
61
+ FileUtils.mkdir_p(File.dirname(path))
61
62
  IO.write(path, content)
62
63
  logger.debug "Compiled #{pretty(path)}"
63
64
  end
@@ -22,10 +22,6 @@ module Kubes::Docker::Args
22
22
 
23
23
 
24
24
  private
25
- def common_args
26
- %w[--recursive -f ]
27
- end
28
-
29
25
  def resource_path
30
26
  [".kubes/output", @options[:role], resource].compact.join('/')
31
27
  end
data/lib/kubes/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kubes
2
- VERSION = "0.7.5"
2
+ VERSION = "0.7.6"
3
3
  end
@@ -1,6 +1,3 @@
1
- metadata:
2
- labels:
3
- app: <%= app %>
4
1
  spec:
5
2
  selector:
6
3
  matchLabels:
@@ -2,5 +2,3 @@ apiVersion: v1
2
2
  kind: Namespace
3
3
  metadata:
4
4
  name: <%= namespace %>
5
- labels:
6
- app: <%= app %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2021-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -791,7 +791,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
791
791
  - !ruby/object:Gem::Version
792
792
  version: '0'
793
793
  requirements: []
794
- rubygems_version: 3.2.5
794
+ rubygems_version: 3.1.6
795
795
  signing_key:
796
796
  specification_version: 4
797
797
  summary: 'Kubernetes Deployment Tool: build docker image, compile Kubernetes YAML