gclouder 0.3.8 → 0.3.9

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
  SHA1:
3
- metadata.gz: 983ef436ec9447f24a0c9a1b49971b287335c9cc
4
- data.tar.gz: ef378d2525eb87e5a8155c71e9297fc42eee42fa
3
+ metadata.gz: a2788b774d1d6b96c5db8075e1c3f1c85f136891
4
+ data.tar.gz: 2b5ac5b4a77dcbf5b70dec76c4f5de71cb2cc195
5
5
  SHA512:
6
- metadata.gz: 2a5949911e1382ac8633646068514dbeb4580f0d6b7e0ed3021529acad61f1ec63d0560325765fd1552671822ff7dc0102613af1b067f3fa1c3830118e79d6f9
7
- data.tar.gz: 16799610787255a6cdab40f9e9828281c338c7dfc14f6562a6686984b96defa063f0f2f9974f2666c839872a0cc4224daea2bbba499ffec272d04a2e38d99b85
6
+ metadata.gz: 83895db2443160c116c72ec002cd193c3734f07b2f6b22725a366c8ea12a9ff4c52341d0fcdce01065d6308b0d06c3ca484c556d0bf28cd7ba1e4aa7ea86ea65
7
+ data.tar.gz: e96453365276df4c823a8495401d8058f8cf75069a4d0cedfd9ba4b26db33b545555b25d782f601a9365e623c124ff894e2910e09f1d5b60c5edfd81810a59c4
@@ -27,6 +27,12 @@ min_nodes:
27
27
  max_nodes:
28
28
  type: Integer
29
29
  required: false
30
+ node_labels:
31
+ type: Array
32
+ required: false
33
+ preemptible:
34
+ type: Boolean
35
+ required: false
30
36
  scopes:
31
37
  type: Array
32
38
  required: false
@@ -9,3 +9,4 @@ status: Array
9
9
  status_message: String
10
10
  autoscaling: Object
11
11
  management: Object
12
+ preemptible: Boolean
@@ -22,8 +22,10 @@ module GClouder
22
22
  "machine_type",
23
23
  "max_nodes_per_pool",
24
24
  "network",
25
+ "node_labels",
25
26
  "num_nodes",
26
27
  "password",
28
+ "preemptible",
27
29
  "scopes",
28
30
  "subnetwork",
29
31
  "username",
@@ -44,7 +46,9 @@ module GClouder
44
46
  "machine_type",
45
47
  "max_nodes",
46
48
  "min_nodes",
49
+ "node_labels",
47
50
  "num_nodes",
51
+ "preemptible",
48
52
  "scopes",
49
53
  "zone",
50
54
  "cluster",
@@ -181,6 +181,11 @@ module GClouder
181
181
  end
182
182
 
183
183
  autoscaling = gcloud("container node-pools list --cluster #{cluster["name"]} --zone #{cluster["zone"]} | jq '.[] | select(.name == \"#{pool["name"]}\") | .autoscaling'", force: true)
184
+
185
+ if !autoscaling.key?("minNodeCount")
186
+ autoscaling["minNodeCount"] = 0
187
+ end
188
+
184
189
  if pool["min_nodes"] != autoscaling["minNodeCount"] or pool["max_nodes"] != autoscaling["maxNodeCount"]
185
190
  config = pool.context(:autoscale_cluster)
186
191
  parameters = hash_to_args(config)
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  module GClouder
4
- VERSION = "0.3.8"
4
+ VERSION = "0.3.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gclouder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Wilson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-20 00:00:00.000000000 Z
12
+ date: 2018-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop