Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#316 from andrewsykim/clusterctl-te…
Browse files Browse the repository at this point in the history
…mplatize-k8s-version

clusterctl: templatize kubernetes version
  • Loading branch information
k8s-ci-robot authored Jun 19, 2019
2 parents ed1f6b6 + 5954b27 commit d15cfe3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions cmd/clusterctl/examples/vsphere/generate-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ export VSPHERE_TEMPLATE=${VSPHERE_TEMPLATE:-}
export VSPHERE_DISK=${VSPHERE_DISK:-}
export VSPHERE_DISK_SIZE_GB=${VSPHERE_DISK_SIZE_GB:-20}

# TODO: check if KUBERNETES_VERSION has format "v1.13.6" and
# trim the "v" from the version. Alternatively, have CAPV or CAPI
# handle both 1.13.6 and v1.13.6
export KUBERNETES_VERSION=${KUBERNETES_VERSION:-1.13.6}

# validate all required variables before generating any files
if [ ! "${CAPV_YAML_VALIDATION:-1}" = "0" ]; then
if [ -z "${VSPHERE_USER}" ]; then
Expand Down
4 changes: 2 additions & 2 deletions cmd/clusterctl/examples/vsphere/machines.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ items:
diskSizeGB: ${VSPHERE_DISK_SIZE_GB}
preloaded: false
versions:
kubelet: 1.11.3
controlPlane: 1.11.3
kubelet: ${KUBERNETES_VERSION}
controlPlane: ${KUBERNETES_VERSION}
roles:
- Master
2 changes: 1 addition & 1 deletion cmd/clusterctl/examples/vsphere/machineset.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ spec:
diskSizeGB: ${VSPHERE_DISK_SIZE_GB}
preloaded: false
versions:
kubelet: 1.11.3
kubelet: ${KUBERNETES_VERSION}
roles:
- Node

0 comments on commit d15cfe3

Please sign in to comment.