k3s/cluster/gce
Kubernetes Submit Queue ef98b80bd0 Merge pull request #49172 from ianchakeres/gce-local-ssd-fix
Automatic merge from submit-queue (batch tested with PRs 48565, 49172)

On GCE check whether NODE_LOCAL_SSDS=0 and handle this case appropriately

**What this PR does / why we need it**: Presently if you are using a mac and GCE and specify NODE_LOCAL_SSDS=0, or use the default, you end up with 2 local SSDs.

**Which issue this PR fixes** : fixes https://github.com/kubernetes/kubernetes/issues/49171

**Special notes for your reviewer**:

I've discovered that this issue is due to b353792f9c/cluster/gce/util.sh (L579)

If NODE_LOCAL_SSDS=0, this evaluates to $(seq 0)

```
$ for i in $(seq 0); do echo $i; done
1
0
```

From man seq on mac osx

```
The seq utility prints a sequence of numbers, one per line (default), from first (default 1), 
to near last as possible, in increments of incr (default 1).When first is larger than last the 
default incr is -1.
```

This was run on mac with the seq manpage indicating it comes from BSD Feb 19 2010.

**Release note**:

```release-note
NONE
```
2017-07-21 01:13:19 -07:00
..
container-linux Revert "Merge pull request #48560 from nicksardo/gce-network-project" 2017-07-13 18:34:24 +02:00
debian Allow creating special node for heapster in GCE 2017-06-28 21:27:36 +02:00
gci Merge pull request #49337 from jingxu97/July/mounterfix 2017-07-20 23:01:23 -07:00
BUILD Use cos-stable-59-9460-64-0 instead of cos-beta-59-9460-20-0. 2017-06-16 13:48:50 -07:00
OWNERS adding vishh to gce cluster owners 2017-02-27 10:58:43 -08:00
config-common.sh Create 64-core masters for huge clusters 2017-07-17 15:03:39 +02:00
config-default.sh use overrided api endpoint in gce cloud provider 2017-07-12 15:10:13 -07:00
config-test.sh use overrided api endpoint in gce cloud provider 2017-07-12 15:10:13 -07:00
configure-vm.sh Merge pull request #47632 from mwielgus/node-taints-scripts 2017-06-20 18:18:59 -07:00
cos Symlink cluster/gce/cos to cluster/gce/gci 2017-03-15 15:31:51 -07:00
delete-stranded-load-balancers.sh
list-resources.sh Don't fail if the grep fails to match any resources 2017-02-22 14:55:57 -08:00
ubuntu Makes cluster/gce/ubuntu to be a symlink to cluster/gce/gci and changes the gci's [master|node].yaml to enable kubernetes.target. 2017-04-25 16:19:00 -07:00
upgrade.sh Respect PDBs during GCE node upgrades. 2017-06-01 17:58:45 -07:00
util.sh Merge pull request #49172 from ianchakeres/gce-local-ssd-fix 2017-07-21 01:13:19 -07:00