This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push:
new acf542c Enable TravisCI testing with Kubernetes 1.12 (#403)
acf542c is described below
commit acf542c888785712bd265d5c0c3249c6ebbadedc
Author: David Grove <[email protected]>
AuthorDate: Mon Jan 7 17:23:47 2019 -0500
Enable TravisCI testing with Kubernetes 1.12 (#403)
1. Adjustments to deploy-chart.sh for kubectl 1.12
a. Format of `kubectl get jobs -o wide` changed from 1.11 to 1.12,
so change jobHealthCheck to use `get pods` instead.
b. --show-all is deprecated.
2. Update all documentation with Kubernetes version
numbers to include Kubernetes 1.12 and remove a dangling
reference to Kubernetes 1.9 (we no longer test 1.9).
---
.travis.yml | 1 +
docs/k8s-dind-cluster.md | 4 ++--
docs/k8s-technical-requirements.md | 7 ++-----
helm/openwhisk/README.md | 2 +-
tools/travis/deploy-chart.sh | 8 ++++----
5 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 976a1bb..a56efb6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,6 +15,7 @@ env:
- TRAVIS_KUBE_VERSION=1.10 OW_INCLUDE_SYSTEM_TESTS=true
OW_CONTAINER_FACTORY=docker
- TRAVIS_KUBE_VERSION=1.10 OW_INCLUDE_SYSTEM_TESTS=false
OW_CONTAINER_FACTORY=kubernetes
- TRAVIS_KUBE_VERSION=1.11 OW_INCLUDE_SYSTEM_TESTS=true
OW_CONTAINER_FACTORY=docker
+ - TRAVIS_KUBE_VERSION=1.12 OW_INCLUDE_SYSTEM_TESTS=true
OW_CONTAINER_FACTORY=docker
services:
- docker
diff --git a/docs/k8s-dind-cluster.md b/docs/k8s-dind-cluster.md
index 5c0318e..659b3df 100644
--- a/docs/k8s-dind-cluster.md
+++ b/docs/k8s-dind-cluster.md
@@ -39,8 +39,8 @@ There are "fixed" scripts
[available](https://github.com/kubernetes-sigs/kubeadm-dind-cluster/tree/master/fixed)
for each major release of Kubernetes.
Our TravisCI testing uses kubeadm-dind-cluster.sh on an ubuntu 16.04
-host. The `fixed` `dind-cluster` scripts for Kubernetes version 1.10
-and 1.11 are known to work for deploying OpenWhisk.
+host. The `fixed` `dind-cluster` scripts for Kubernetes version 1.10,
+1.11, and 1.12 are known to work for deploying OpenWhisk.
### Creating the Kubernetes Cluster
diff --git a/docs/k8s-technical-requirements.md
b/docs/k8s-technical-requirements.md
index 448e60d..f19cc06 100644
--- a/docs/k8s-technical-requirements.md
+++ b/docs/k8s-technical-requirements.md
@@ -21,11 +21,8 @@
The Kubernetes cluster on which you are deploying OpenWhisk must meet
the following requirements:
-* [Kubernetes](https://github.com/kubernetes/kubernetes) version
- 1.9+. However, version 1.9.4 will not work for OpenWhisk due to a
- bug with volume mount subpaths
-
(see[[kubernetes-61076](https://github.com/kubernetes/kubernetes/issues/61076)]).
This
- bug will surface as a failure when deploying the nginx container.
+* [Kubernetes](https://github.com/kubernetes/kubernetes) version 1.10+.
+ Our automated testing currently covers Kubernetes versions 1.10, 1.11 and
1.12.
* The ability to create Ingresses to make a Kubernetes service
available outside of the cluster so you can actually use OpenWhisk.
* Unless you disable persistence (see
diff --git a/helm/openwhisk/README.md b/helm/openwhisk/README.md
index c2810e1..8520a8e 100644
--- a/helm/openwhisk/README.md
+++ b/helm/openwhisk/README.md
@@ -57,7 +57,7 @@ The chart requires one or more Kubernetes worker nodes to be
designated to be us
## Prerequisites
-* Kubernetes 1.10 - 1.11.*
+* Kubernetes 1.10 - 1.12.*
### Image Policy Requirements
diff --git a/tools/travis/deploy-chart.sh b/tools/travis/deploy-chart.sh
index 5f4e88a..d44e583 100755
--- a/tools/travis/deploy-chart.sh
+++ b/tools/travis/deploy-chart.sh
@@ -84,8 +84,8 @@ jobHealthCheck () {
PASSED=false
TIMEOUT=0
until $PASSED || [ $TIMEOUT -eq $TIMEOUT_STEP_LIMIT ]; do
- KUBE_SUCCESSFUL_JOB=$(kubectl -n openwhisk get jobs -o wide | grep "$1" |
awk '{print $3}')
- if [ "$KUBE_SUCCESSFUL_JOB" == "1" ]; then
+ KUBE_DEPLOY_STATUS=$(kubectl -n openwhisk get pods -l name="$1" -o wide |
grep "$1" | awk '{print $3}')
+ if [ "$KUBE_DEPLOY_STATUS" == "Completed" ]; then
PASSED=true
echo "The job $1 has completed"
break
@@ -100,7 +100,7 @@ jobHealthCheck () {
if [ "$PASSED" == "false" ]; then
echo "Failed to finish running $1"
# Dump all namespaces in case the problem is with a pod in the kube-system
namespace
- kubectl get jobs --all-namespaces -o wide --show-all
+ kubectl get pods --all-namespaces -o wide
kubectl -n openwhisk logs jobs/$1
exit 1
@@ -130,7 +130,7 @@ verifyHealthyInvoker () {
if [ "$PASSED" == "false" ]; then
# Dump all namespaces in case the problem is with a pod in the kube-system
namespace
- kubectl get pods --all-namespaces -o wide --show-all
+ kubectl get pods --all-namespaces -o wide
echo "No healthy invokers available"
exit 1