Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #74 from mumoshu/kubernetes-1.4.6
Browse files Browse the repository at this point in the history
Bump Kubernetes version to v1.4.6+coreos.0
  • Loading branch information
mumoshu authored Nov 18, 2016
2 parents 2e8db5c + 61d3891 commit 5232aa2
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func newDefaultCluster() *Cluster {
PodCIDR: "10.2.0.0/16",
ServiceCIDR: "10.3.0.0/24",
DNSServiceIP: "10.3.0.10",
K8sVer: "v1.4.5_coreos.0",
K8sVer: "v1.4.6_coreos.0",
HyperkubeImageRepo: "quay.io/coreos/hyperkube",
TLSCADurationDays: 365 * 10,
TLSCertDurationDays: 365,
Expand Down
2 changes: 1 addition & 1 deletion config/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ kmsKeyArn: "{{.KMSKeyARN}}"
#tlsCertDurationDays: 365

# Version of hyperkube image to use. This is the tag for the hyperkube image repository.
# kubernetesVersion: v1.4.5_coreos.0
# kubernetesVersion: v1.4.6_coreos.0

# Hyperkube image repository to use.
# hyperkubeImageRepo: quay.io/coreos/hyperkube
Expand Down
37 changes: 37 additions & 0 deletions contrib/bump-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
#
# This script will go through each of the tracked files in this repo and update
# the CURRENT_VERSION to the TARGET_VERSION. This is meant as a helper - but
# probably should still double-check the changes are correct

if [ $# -ne 1 ] || [ `expr $1 : ".*_.*"` == 0 ]; then
echo "USAGE: $0 <target-version>"
echo " example: $0 'v1.4.6_coreos.0'"
exit 1
fi

CURRENT_VERSION=${CURRENT_VERSION:-"v1.4.6_coreos.0"}
TARGET_VERSION=${1}

CURRENT_VERSION_BASE=${CURRENT_VERSION%%_*}
TARGET_VERSION_BASE=${TARGET_VERSION%%_*}

CURRENT_VERSION_SEMVER=${CURRENT_VERSION/_/+}
TARGET_VERSION_SEMVER=${TARGET_VERSION/_/+}

GIT_ROOT=$(git rev-parse --show-toplevel)

cd $GIT_ROOT
TRACKED=($(git grep -F "${CURRENT_VERSION_BASE}"| awk -F : '{print $1}' | sort -u))
for i in "${TRACKED[@]}"; do
echo Updating $i
if [ "$(uname -s)" == "Darwin" ]; then
sed -i "" "s/${CURRENT_VERSION}/${TARGET_VERSION}/g" $i
sed -i "" "s/${CURRENT_VERSION_SEMVER}/${TARGET_VERSION_SEMVER}/g" $i
sed -i "" "s/${CURRENT_VERSION_BASE}/${TARGET_VERSION_BASE}/g" $i
else
sed -i "s/${CURRENT_VERSION}/${TARGET_VERSION}/g" $i
sed -i "s/${CURRENT_VERSION_SEMVER}/${TARGET_VERSION_SEMVER}/g" $i
sed -i "s/${CURRENT_VERSION_BASE}/${TARGET_VERSION_BASE}/g" $i
fi
done
2 changes: 1 addition & 1 deletion e2e/kubernetes/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.7.1

ARG KUBERNETES_VERSION=${KUBERNETES_VERSION:-v1.4.5+coreos.0}
ARG KUBERNETES_VERSION=${KUBERNETES_VERSION:-v1.4.6+coreos.0}

RUN apt-get update && \
apt-get install -y rsync && \
Expand Down
2 changes: 1 addition & 1 deletion e2e/kubernetes/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KUBERNETES_VERSION ?= v1.4.5+coreos.0
KUBERNETES_VERSION ?= v1.4.6+coreos.0
DOCKER_REPO ?=
DOCKER_TAG ?= $(DOCKER_REPO)kube-e2e:$(KUBERNETES_VERSION)
DOCKER_TAG_SANITIZED ?= $(shell echo $(DOCKER_TAG) | sed -e 's/+/_/')
Expand Down

0 comments on commit 5232aa2

Please sign in to comment.