kubes 0.2.5 → 0.2.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: 658324c3828bd9f6ee60ad1fd925eb47ff9706fe08256b791e180b0daf3cfba0
4
- data.tar.gz: 5a2cc328105e6ac7dd7847f4d92697db98827e81b214b7dc3f6b353bf78e224f
3
+ metadata.gz: 38315c41de75e3132ebd72d88227c7b2dfd5051e62beaebba937081bd04bf87a
4
+ data.tar.gz: 1e5ad418c423fee55f4b735a446b20835fc2256699d00ed58b162390526e1610
5
5
  SHA512:
6
- metadata.gz: 307badb633d97365c4072a7e089c5a36b2abb81e761aa3a5abb46e4aaa4e3da2878023edb12cf203b817ee6aa4484b4d2d758e6f4a20b1e571fdaec75bf61ddc
7
- data.tar.gz: e5d6f7434c93a73bc996fc661d026f5c601a4bd7c6680c14f0219af4561f1f7ac362370123efe381fac0538021ccb151adc308658b1f3f70c0dbff58334fed9d
6
+ metadata.gz: 74e34ea429c1acfa0b642c99b83ea6f7d5889f0539fb905c329380d9f31f116241401ec5af16445694b6507d205b5c3f17d6e099086b9208a68afc835396c01e
7
+ data.tar.gz: 200b3bec023fec1caf42d418449533035b1f05ecf069770800a90538c93ca344e755701ef35883956512383710fcb1668893ecf9ea2f2e5e148ba0c4fd9fff13
@@ -3,6 +3,9 @@
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.6]
7
+ - #18 gcloud builder. change to config.builder
8
+
6
9
  ## [0.2.5]
7
10
  - #17 cloudbuild build strategy
8
11
 
@@ -1,24 +1,24 @@
1
1
  ---
2
- title: Build Strategy
2
+ title: Builder Strategy
3
3
  ---
4
4
 
5
- Kubes uses the `docker` to build the docker image by default. Kubes can also support an additional build strategy: gcloud.
5
+ Kubes uses the `docker` command to build the docker image by default. Kubes can also support an additional builder: gcloud.
6
6
 
7
- ## Gcloud Build Strategy
7
+ ## Gcloud Builder
8
8
 
9
- With the gcloud build strategy, you do not need docker installed locally. Google CloudBuild is used to build and push the image to a GCR registry.
9
+ With the gcloud builder, you do not need docker installed locally. Google CloudBuild is used to build and push the image to a GCR registry.
10
10
 
11
11
  You must set up the [gcloud cli](https://cloud.google.com/sdk/gcloud/reference/builds/submit). Please refer to the [gcloud sdk install docs](https://cloud.google.com/sdk/install). Kubes will call out to `gcloud builds submit` to create the Docker image.
12
12
 
13
13
  ## Configure
14
14
 
15
- You configure gcloud as the build strategy like so:
15
+ You configure gcloud as the builder like so:
16
16
 
17
17
  ```ruby
18
18
  Kubes.configure do |config|
19
19
  config.repo = "gcr.io/#{ENV['GOOGLE_PROJECT']}/demo"
20
20
  config.logger.level = "info"
21
- config.build_strategy = "gcloud" # <= changed to gcloud
21
+ config.builder = "gcloud" # <= changed to gcloud
22
22
  end
23
23
  ```
24
24
 
@@ -28,7 +28,7 @@ The kubes builds command will remain the same.
28
28
 
29
29
  kubes docker build
30
30
 
31
- There is no need to run the push command, as the build command with the gcloud strategy will always push.
31
+ There is no need to run the push command, as the build command with the gcloud builder will always push.
32
32
 
33
33
  ## Deploy
34
34
 
@@ -56,7 +56,7 @@
56
56
  <li><a href="{% link _docs/config/docker.md %}">Docker</a></li>
57
57
  <li><a href="{% link _docs/config/env.md %}">Env</a></li>
58
58
  <li><a href="{% link _docs/config/kubectl.md %}">Kubectl</a></li>
59
- <li><a href="{% link _docs/config/build-strategy.md %}">Build Strategy</a></li>
59
+ <li><a href="{% link _docs/config/builder.md %}">Builder</a></li>
60
60
  </ul>
61
61
  </li>
62
62
  <li><a href="{% link _docs/yaml.md %}">YAML</a></li>
@@ -35,7 +35,7 @@ module Kubes
35
35
 
36
36
  config.repo = nil # expected to be set by .kubes/config.rb
37
37
 
38
- config.build_strategy = "docker" # IE: docker or gcloud
38
+ config.builder = "docker" # IE: docker or gcloud
39
39
 
40
40
  config
41
41
  end
@@ -11,7 +11,7 @@ module Kubes
11
11
  end
12
12
 
13
13
  def strategy_class
14
- strategy = Kubes.config.build_strategy.to_s.camelize # IE: Docker or Gcloud
14
+ strategy = Kubes.config.builder.to_s.camelize # IE: Docker or Gcloud
15
15
  klass_name = "Kubes::Docker::Strategy::#{@name.camelize}::#{strategy}"
16
16
  klass_name.constantize
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Kubes
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
@@ -235,7 +235,7 @@ files:
235
235
  - docs/_docs/auto-context.md
236
236
  - docs/_docs/ci/cloudbuild.md
237
237
  - docs/_docs/config.md
238
- - docs/_docs/config/build-strategy.md
238
+ - docs/_docs/config/builder.md
239
239
  - docs/_docs/config/docker.md
240
240
  - docs/_docs/config/env.md
241
241
  - docs/_docs/config/kubectl.md