-
Notifications
You must be signed in to change notification settings - Fork 40.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace containervm with GCI as default master image for GCE clusters
- Loading branch information
Showing
6 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,11 +35,11 @@ if [[ "${OS_DISTRIBUTION}" == "gci" ]]; then | |
# Otherwise, we respect whatever set by the user. | ||
gci_images=( $(gcloud compute images list --project google-containers \ | ||
--regexp='gci-dev.*' --format='value(name)') ) | ||
if [[ -z "${KUBE_GCE_MASTER_IMAGE:-}" ]]; then | ||
if [[ -z "${MASTER_IMAGE:-}" ]]; then | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wonderfly
Author
Contributor
|
||
MASTER_IMAGE="${gci_images[0]}" | ||
MASTER_IMAGE_PROJECT="google-containers" | ||
fi | ||
if [[ -z "${KUBE_GCE_NODE_IMAGE:-}" ]]; then | ||
if [[ -z "${NODE_IMAGE:-}" ]]; then | ||
This comment has been minimized.
Sorry, something went wrong.
andyzheng0831
|
||
NODE_IMAGE="${gci_images[0]}" | ||
NODE_IMAGE_PROJECT="google-containers" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I don't understand why the if condition should be changed. The default value of KUBE_GCE_MASTER_IMAGE is changed to be empty. It is unnecessary to change this if condition.