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

Commit 9230a32

Browse files
authored
Merge pull request #729 from aaronlevy/v1.8.0
Bump k8s v1.8.1
2 parents af5339f + e47b760 commit 9230a32

File tree

13 files changed

+496
-178
lines changed

13 files changed

+496
-178
lines changed

bill-of-materials.json

Lines changed: 392 additions & 128 deletions
Large diffs are not rendered by default.

e2e/checkpointer_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func verifyCheckpoint(c *Cluster, namespace, daemonsetName string, shouldExist,
7272

7373
return nil
7474
}
75-
return retry(20, 10*time.Second, checkpointed)
75+
return retry(60, 10*time.Second, checkpointed)
7676
}
7777

7878
func verifyPod(c *Cluster, daemonsetName string, shouldRun bool) error {
@@ -90,7 +90,7 @@ func verifyPod(c *Cluster, daemonsetName string, shouldRun bool) error {
9090
}
9191
return nil
9292
}
93-
return retry(20, 10*time.Second, checkpointsRunning)
93+
return retry(60, 10*time.Second, checkpointsRunning)
9494
}
9595

9696
func isNodeReady(n *Node) bool {
@@ -131,7 +131,7 @@ func waitCluster(t *testing.T) *Cluster {
131131
return nil
132132
}
133133

134-
if err := retry(20, 10*time.Second, f); err != nil {
134+
if err := retry(60, 10*time.Second, f); err != nil {
135135
t.Fatalf("Failed to wait cluster: %v", err)
136136
}
137137
return c
@@ -144,7 +144,7 @@ func waitForCheckpointDeactivation(t *testing.T) {
144144
t.Log("Waiting 120 seconds for checkpoints to deactivate.")
145145
time.Sleep(120 * time.Second)
146146
successes := 0
147-
if err := retry(20, 3*time.Second, func() error {
147+
if err := retry(60, 3*time.Second, func() error {
148148
_, err := client.Discovery().ServerVersion()
149149
if err != nil {
150150
successes = 0
@@ -222,8 +222,8 @@ func TestCheckpointerUnscheduleCheckpointer(t *testing.T) {
222222
}
223223

224224
// Delete the pod checkpointer on the worker node by updating the daemonset.
225-
patch = `[{"op": "replace", "path": "/spec/template/spec/nodeSelector", "value": {"node-role.kubernetes.io/master":""}}]`
226-
_, err = client.ExtensionsV1beta1().DaemonSets("kube-system").Patch("pod-checkpointer", types.JSONPatchType, []byte(patch))
225+
patch = `{"spec":{"template":{"spec":{"nodeSelector":{"node-role.kubernetes.io/master":""}}}}}`
226+
_, err = client.ExtensionsV1beta1().DaemonSets("kube-system").Patch("pod-checkpointer", types.MergePatchType, []byte(patch))
227227
if err != nil {
228228
t.Fatalf("Failed to patch checkpointer: %v", err)
229229
}
@@ -352,8 +352,8 @@ func TestCheckpointerUnscheduleParent(t *testing.T) {
352352
}
353353

354354
// Delete test pod on the workers.
355-
patch = `[{"op": "replace", "path": "/spec/template/spec/nodeSelector", "value": {"node-role.kubernetes.io/master":""}}]`
356-
_, err = client.ExtensionsV1beta1().DaemonSets(testNS).Patch("nginx-daemonset", types.JSONPatchType, []byte(patch))
355+
patch = `{"spec":{"template":{"spec":{"nodeSelector":{"node-role.kubernetes.io/master":""}}}}}`
356+
_, err = client.ExtensionsV1beta1().DaemonSets(testNS).Patch("nginx-daemonset", types.MergePatchType, []byte(patch))
357357
if err != nil {
358358
t.Fatalf("unable to patch daemonset: %v", err)
359359
}

e2e/node.go

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,23 @@ func (n *Node) SSH(cmd string) (stdout, stderr []byte, err error) {
5454
}
5555

5656
func (n *Node) Reboot() error {
57-
stdout, stderr, err := n.SSH("sudo reboot")
58-
if _, ok := err.(*ssh.ExitMissingError); ok {
59-
// A terminated session is perfectly normal during reboot.
60-
err = nil
61-
}
62-
if err != nil {
63-
return fmt.Errorf("issuing reboot command failed: %v\nstdout:%s\nstderr:%s", err, stdout, stderr)
57+
58+
// ssh to node and reboot
59+
rebooter := func() error {
60+
stdout, stderr, err := n.SSH("sudo reboot")
61+
if _, ok := err.(*ssh.ExitMissingError); ok {
62+
// A terminated session is perfectly normal during reboot.
63+
err = nil
64+
}
65+
if err != nil {
66+
return fmt.Errorf("issuing reboot command failed: %v\nstdout:%s\nstderr:%s", err, stdout, stderr)
67+
}
68+
return err
6469
}
6570

71+
// ensure rebooted node is running
6672
checker := func() error {
67-
stdout, stderr, err = n.SSH("systemctl is-system-running")
73+
stdout, stderr, err := n.SSH("systemctl is-system-running")
6874
if err != nil {
6975
return fmt.Errorf("%v: %v", err, stderr)
7076
}
@@ -74,6 +80,10 @@ func (n *Node) Reboot() error {
7480
return nil
7581
}
7682

83+
if err := retry(5, 30*time.Second, rebooter); err != nil {
84+
return err
85+
}
86+
7787
return retry(20, 10*time.Second, checker)
7888
}
7989

glide.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glide.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ import:
4747
- ssh/agent
4848
- curve25519
4949
- package: github.com/coreos/ktestutil
50-
version: 28c4856c11030d7cb4885cd40137f57e814b5d38
50+
version: e715fca7103c954b24fa636de412ac043efe6c49
5151
- package: github.com/pkg/sftp
5252
version: 98203f5a8333288eb3163b7c667d4260fe1333e9
53+
- package: k8s.io/metrics
54+
version: 8efbc8e22d00b9c600afec5f1c14073fd2412fce
55+
subpackages:
56+
- pkg/apis/metrics
57+
- pkg/apis/metrics/v1alpha1
58+
- pkg/client/clientset_generated/clientset
59+
- pkg/client/clientset_generated/clientset/scheme
60+
- pkg/client/clientset_generated/clientset/typed/metrics/v1alpha1
61+

hack/multi-node/user-data.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ coreos:
99
[Service]
1010
EnvironmentFile=/etc/environment
1111
Environment=KUBELET_IMAGE_URL=quay.io/coreos/hyperkube
12-
Environment=KUBELET_IMAGE_TAG=v1.7.7_coreos.0
12+
Environment=KUBELET_IMAGE_TAG=v1.8.1_coreos.0
1313
Environment="RKT_RUN_ARGS=--uuid-file-save=/var/cache/kubelet-pod.uuid \
1414
--volume var-lib-cni,kind=host,source=/var/lib/cni \
1515
--volume opt-cni-bin,kind=host,source=/opt/cni/bin \

hack/quickstart/kubelet.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Service]
22
Environment=KUBELET_IMAGE_URL=quay.io/coreos/hyperkube
3-
Environment=KUBELET_IMAGE_TAG=v1.7.7_coreos.0
3+
Environment=KUBELET_IMAGE_TAG=v1.8.1_coreos.0
44
Environment="RKT_RUN_ARGS=\
55
--uuid-file-save=/var/cache/kubelet-pod.uuid \
66
--volume etc-resolv,kind=host,source=/etc/resolv.conf --mount volume=etc-resolv,target=/etc/resolv.conf \

hack/quickstart/kubelet.worker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Service]
22
Environment=KUBELET_IMAGE_URL=quay.io/coreos/hyperkube
3-
Environment=KUBELET_IMAGE_TAG=v1.7.7_coreos.0
3+
Environment=KUBELET_IMAGE_TAG=v1.8.1_coreos.0
44
Environment="RKT_RUN_ARGS=\
55
--uuid-file-save=/var/cache/kubelet-pod.uuid \
66
--volume etc-resolv,kind=host,source=/etc/resolv.conf --mount volume=etc-resolv,target=/etc/resolv.conf \

hack/single-node/user-data.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ coreos:
99
[Service]
1010
EnvironmentFile=/etc/environment
1111
Environment=KUBELET_IMAGE_URL=quay.io/coreos/hyperkube
12-
Environment=KUBELET_IMAGE_TAG=v1.7.7_coreos.0
12+
Environment=KUBELET_IMAGE_TAG=v1.8.1_coreos.0
1313
Environment="RKT_RUN_ARGS=--uuid-file-save=/var/cache/kubelet-pod.uuid \
1414
--volume var-lib-cni,kind=host,source=/var/lib/cni \
1515
--volume opt-cni-bin,kind=host,source=/opt/cni/bin \

hack/tests/conformance-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
CONFORMANCE_REPO=${CONFORMANCE_REPO:-github.com/coreos/kubernetes}
5-
CONFORMANCE_VERSION=${CONFORMANCE_VERSION:-v1.7.7+coreos.0}
5+
CONFORMANCE_VERSION=${CONFORMANCE_VERSION:-v1.8.1+coreos.0}
66

77
usage() {
88
echo "USAGE:"

0 commit comments

Comments
 (0)