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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/docs/_docs/intro/how-kubes-works.md +2 -0
- data/docs/_docs/vs/helm.md +3 -3
- data/docs/_includes/reference.md +1 -1
- data/docs/index.html +2 -2
- data/lib/kubes/cli/init.rb +2 -1
- data/lib/kubes/compiler.rb +2 -1
- data/lib/kubes/docker/args/default.rb +0 -4
- data/lib/kubes/version.rb +1 -1
- data/lib/templates/yaml/.kubes/resources/base/deployment.yaml.tt +0 -3
- data/lib/templates/yaml/.kubes/resources/shared/namespace.yaml.tt +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e73d57fba41a00e9ace349a4b3d9da7815e52a5025fcda97b64cfc185797ba35
|
4
|
+
data.tar.gz: a6114d33d48893ed2f748b0720aaf7dca8f71a75b4b3e3f4ae3f690680b35f26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/docs/_docs/vs/helm.md
CHANGED
@@ -4,7 +4,7 @@ nav_text: Helm
|
|
4
4
|
categories: vs
|
5
5
|
---
|
6
6
|
|
7
|
-
|
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
|
-
|
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
|
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.
|
data/docs/_includes/reference.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
Kubes is a Kubernetes deployment tool. It
|
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
|
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>
|
data/lib/kubes/cli/init.rb
CHANGED
@@ -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/
|
93
|
+
if lines.detect { |l| l.include?('.kubes/tmp') }
|
93
94
|
return # early
|
94
95
|
else
|
95
96
|
lines += ignores
|
data/lib/kubes/compiler.rb
CHANGED
@@ -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/
|
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
|
data/lib/kubes/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|