kubes 0.2.2 → 0.2.3
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 -1
- data/docs/_docs/dsl/resources/deployment.md +0 -5
- data/docs/_docs/dsl/resources/network_policy.md +1 -1
- data/docs/_docs/helpers.md +2 -2
- data/docs/_docs/learn/yaml/review-project.md +0 -5
- data/docs/_docs/yaml.md +0 -5
- data/lib/kubes/compiler/dsl/syntax/deployment.rb +5 -8
- data/lib/kubes/version.rb +1 -1
- data/lib/templates/dsl/.kubes/resources/web/deployment.rb +1 -0
- data/lib/templates/yaml/.kubes/resources/web/deployment.yaml.tt +0 -5
- 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: c4f9062190dfd5888032514dc726587aeb3f55c826d1af71670c22268942ca4f
|
4
|
+
data.tar.gz: 9cfe8ce6833abc6c25323ceb960cbd8f63d9ba2bec698572328420607c12f8da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db1890f00464a7ed111dae86f8bdd084c7a947d36f8d74ba84e4e3abe6175d04cd6b6b81fe2dad59601c5553ba77a86cc8fd6ebfab9553d2a74c707562e935de
|
7
|
+
data.tar.gz: a02cd12c91fc241b281182a6773f2e58c8d12246881757374e3d07994541b9d0e83a0edd74e7d069e640b0f1a756bcba9d30088f62d75f84a3949dbf11974d5f
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
#
|
1
|
+
# Changelog
|
2
2
|
|
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.2.3]
|
7
|
+
- #15 use kubernetes default deployment strategy instead
|
8
|
+
|
6
9
|
## [0.2.2]
|
7
10
|
- #14 init template updates, dockerfile_port helper
|
8
11
|
|
@@ -50,7 +50,7 @@ Note, the behavior of the from is an *or* since the namespaceSelector and podSel
|
|
50
50
|
|
51
51
|
## Example 2
|
52
52
|
|
53
|
-
If you need more control over the ingress selectors you can use the from method.
|
53
|
+
If you need more control over the ingress selectors, you can use the `from` method. Here's an example:
|
54
54
|
|
55
55
|
.kubes/resources/web/network_policy.rb
|
56
56
|
|
data/docs/_docs/helpers.md
CHANGED
@@ -8,8 +8,8 @@ Helper | Description
|
|
8
8
|
--- | ---
|
9
9
|
built_image | Method refers to the latest Docker image built by Kubes. This spares you from having to update the image manually in the deployment resource.
|
10
10
|
dockerfile_port | Exposed port extracted from the Dockerfile of the project.
|
11
|
-
extra | The `
|
12
|
-
with_extra | Appends the `
|
11
|
+
extra | The `KUBES_EXTRA` value.
|
12
|
+
with_extra | Appends the `KUBES_EXTRA` value to a string if it's set. It's covered in the [Extra Env Docs]({% link _docs/extra-env.md %}).
|
13
13
|
|
14
14
|
Here's also the source code with the helpers: [helpers.rb](https://github.com/boltops-tools/kubes/blob/master/lib/kubes/compiler/shared/helpers.rb).
|
15
15
|
|
data/docs/_docs/yaml.md
CHANGED
@@ -82,6 +82,11 @@ module Kubes::Compiler::Dsl::Syntax
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def default_strategy
|
85
|
+
return unless maxUnavailable || maxSurge
|
86
|
+
|
87
|
+
maxSurge = maxUnavailable if maxUnavailable && !maxSurge
|
88
|
+
maxUnavailable = maxSurge if !maxUnavailable && maxSurge
|
89
|
+
|
85
90
|
{
|
86
91
|
rollingUpdate: {
|
87
92
|
maxSurge: maxSurge,
|
@@ -91,14 +96,6 @@ module Kubes::Compiler::Dsl::Syntax
|
|
91
96
|
}
|
92
97
|
end
|
93
98
|
|
94
|
-
def default_maxSurge
|
95
|
-
25
|
96
|
-
end
|
97
|
-
|
98
|
-
def default_maxUnavailable
|
99
|
-
25
|
100
|
-
end
|
101
|
-
|
102
99
|
def default_template
|
103
100
|
{
|
104
101
|
metadata: templateMetadata,
|
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.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|