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

Commit 5232aa2

Browse files
authored
Merge pull request #74 from mumoshu/kubernetes-1.4.6
Bump Kubernetes version to v1.4.6+coreos.0
2 parents 2e8db5c + 61d3891 commit 5232aa2

File tree

5 files changed

+41
-4
lines changed

5 files changed

+41
-4
lines changed

config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func newDefaultCluster() *Cluster {
4343
PodCIDR: "10.2.0.0/16",
4444
ServiceCIDR: "10.3.0.0/24",
4545
DNSServiceIP: "10.3.0.10",
46-
K8sVer: "v1.4.5_coreos.0",
46+
K8sVer: "v1.4.6_coreos.0",
4747
HyperkubeImageRepo: "quay.io/coreos/hyperkube",
4848
TLSCADurationDays: 365 * 10,
4949
TLSCertDurationDays: 365,

config/templates/cluster.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ kmsKeyArn: "{{.KMSKeyARN}}"
143143
#tlsCertDurationDays: 365
144144

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

148148
# Hyperkube image repository to use.
149149
# hyperkubeImageRepo: quay.io/coreos/hyperkube

contrib/bump-version

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
#
3+
# This script will go through each of the tracked files in this repo and update
4+
# the CURRENT_VERSION to the TARGET_VERSION. This is meant as a helper - but
5+
# probably should still double-check the changes are correct
6+
7+
if [ $# -ne 1 ] || [ `expr $1 : ".*_.*"` == 0 ]; then
8+
echo "USAGE: $0 <target-version>"
9+
echo " example: $0 'v1.4.6_coreos.0'"
10+
exit 1
11+
fi
12+
13+
CURRENT_VERSION=${CURRENT_VERSION:-"v1.4.6_coreos.0"}
14+
TARGET_VERSION=${1}
15+
16+
CURRENT_VERSION_BASE=${CURRENT_VERSION%%_*}
17+
TARGET_VERSION_BASE=${TARGET_VERSION%%_*}
18+
19+
CURRENT_VERSION_SEMVER=${CURRENT_VERSION/_/+}
20+
TARGET_VERSION_SEMVER=${TARGET_VERSION/_/+}
21+
22+
GIT_ROOT=$(git rev-parse --show-toplevel)
23+
24+
cd $GIT_ROOT
25+
TRACKED=($(git grep -F "${CURRENT_VERSION_BASE}"| awk -F : '{print $1}' | sort -u))
26+
for i in "${TRACKED[@]}"; do
27+
echo Updating $i
28+
if [ "$(uname -s)" == "Darwin" ]; then
29+
sed -i "" "s/${CURRENT_VERSION}/${TARGET_VERSION}/g" $i
30+
sed -i "" "s/${CURRENT_VERSION_SEMVER}/${TARGET_VERSION_SEMVER}/g" $i
31+
sed -i "" "s/${CURRENT_VERSION_BASE}/${TARGET_VERSION_BASE}/g" $i
32+
else
33+
sed -i "s/${CURRENT_VERSION}/${TARGET_VERSION}/g" $i
34+
sed -i "s/${CURRENT_VERSION_SEMVER}/${TARGET_VERSION_SEMVER}/g" $i
35+
sed -i "s/${CURRENT_VERSION_BASE}/${TARGET_VERSION_BASE}/g" $i
36+
fi
37+
done

e2e/kubernetes/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM golang:1.7.1
22

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

55
RUN apt-get update && \
66
apt-get install -y rsync && \

e2e/kubernetes/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KUBERNETES_VERSION ?= v1.4.5+coreos.0
1+
KUBERNETES_VERSION ?= v1.4.6+coreos.0
22
DOCKER_REPO ?=
33
DOCKER_TAG ?= $(DOCKER_REPO)kube-e2e:$(KUBERNETES_VERSION)
44
DOCKER_TAG_SANITIZED ?= $(shell echo $(DOCKER_TAG) | sed -e 's/+/_/')

0 commit comments

Comments
 (0)