You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/02/21 20:24:00 UTC

[couchdb-helm] 01/01: Use Chart Testing v3

This is an automated email from the ASF dual-hosted git repository.

willholley pushed a commit to branch ct_3
in repository https://gitbox.apache.org/repos/asf/couchdb-helm.git

commit 71820b61aef206f505843b31c0f5376ba4fb4abc
Author: Will Holley <wi...@gmail.com>
AuthorDate: Mon Feb 17 10:57:42 2020 +0000

    Use Chart Testing v3
    
     * Chart Testing v3.0.0-beta.1
     * Kind to 0.7.0
     * Kubernetes 1.17
---
 test/ct.yaml     |  2 +-
 test/e2e-kind.sh | 28 +++-------------------------
 2 files changed, 4 insertions(+), 26 deletions(-)

diff --git a/test/ct.yaml b/test/ct.yaml
index d40aa57..1ba45a4 100644
--- a/test/ct.yaml
+++ b/test/ct.yaml
@@ -1 +1 @@
-helm-extra-args: --timeout 800
+helm-extra-args: --timeout 800s
diff --git a/test/e2e-kind.sh b/test/e2e-kind.sh
index 4cb57b4..36b96ac 100755
--- a/test/e2e-kind.sh
+++ b/test/e2e-kind.sh
@@ -4,10 +4,10 @@ set -o errexit
 set -o nounset
 set -o pipefail
 
-readonly CT_VERSION=v2.3.3
-readonly KIND_VERSION=v0.5.1
+readonly CT_VERSION=v3.0.0-beta.1
+readonly KIND_VERSION=v0.7.0
 readonly CLUSTER_NAME=chart-testing
-readonly K8S_VERSION=v1.14.3
+readonly K8S_VERSION=v1.17.0
 
 run_ct_container() {
     echo 'Running ct container...'
@@ -59,26 +59,6 @@ create_kind_cluster() {
     echo
 }
 
-install_tiller() {
-    echo 'Installing Tiller...'
-    docker_exec kubectl --namespace kube-system create sa tiller
-    docker_exec kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
-    docker_exec helm init --service-account tiller --upgrade --wait
-    echo
-}
-
-install_local-path-provisioner() {
-    # kind doesn't support Dynamic PVC provisioning yet, this is one ways to get it working
-    # https://github.com/rancher/local-path-provisioner
-
-    # Remove default storage class. It will be recreated by local-path-provisioner
-    docker_exec kubectl delete storageclass standard
-
-    echo 'Installing local-path-provisioner...'
-    docker_exec kubectl apply -f test/local-path-provisioner.yaml
-    echo
-}
-
 install_charts() {
     docker_exec ct lint-and-install --charts couchdb --upgrade --chart-dirs .
     echo
@@ -89,8 +69,6 @@ main() {
     trap cleanup EXIT
 
     create_kind_cluster
-    install_local-path-provisioner
-    install_tiller
     install_charts
 }