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 +4 -4
- data/assets/arguments/container/node-pools.yml +6 -0
- data/assets/resource_representations/container-engine/projects.zones.clusters.nodePools.yml +1 -0
- data/lib/gclouder/config/cluster.rb +4 -0
- data/lib/gclouder/resources/container/node_pools.rb +5 -0
- data/lib/gclouder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2788b774d1d6b96c5db8075e1c3f1c85f136891
|
4
|
+
data.tar.gz: 2b5ac5b4a77dcbf5b70dec76c4f5de71cb2cc195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83895db2443160c116c72ec002cd193c3734f07b2f6b22725a366c8ea12a9ff4c52341d0fcdce01065d6308b0d06c3ca484c556d0bf28cd7ba1e4aa7ea86ea65
|
7
|
+
data.tar.gz: e96453365276df4c823a8495401d8058f8cf75069a4d0cedfd9ba4b26db33b545555b25d782f601a9365e623c124ff894e2910e09f1d5b60c5edfd81810a59c4
|
@@ -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)
|
data/lib/gclouder/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: trollop
|