Skip to content

Commit 0824f98

Browse files
authored
Update kind, Helm, and Go (#206)
Signed-off-by: Reinhard Naegele <[email protected]>
1 parent ecd4546 commit 0824f98

File tree

3 files changed

+8
-40
lines changed

3 files changed

+8
-40
lines changed

.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ jobs:
2222
command: |
2323
# We need to install Golang 1.13 because the CircleCI machine image has an outdated version.
2424
# We need to use a CircleCI machine in order to be able to run kind.
25-
curl -sSLO https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
25+
curl -sSLO https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz
2626
sudo rm -r /usr/local/go
27-
sudo tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz
27+
sudo tar -C /usr/local -xzf go1.13.8.linux-amd64.tar.gz
2828
2929
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
3030
chmod +x ./kubectl
3131
sudo mv ./kubectl /usr/local/bin/kubectl
3232
33-
helm_version=v3.0.1
33+
helm_version=v3.0.3
3434
curl -sSLO "https://get.helm.sh/helm-$helm_version-linux-amd64.tar.gz"
3535
sudo mkdir -p "/usr/local/helm-$helm_version"
3636
sudo tar -xzf "helm-$helm_version-linux-amd64.tar.gz" -C "/usr/local/helm-$helm_version"
3737
sudo ln -s "/usr/local/helm-$helm_version/linux-amd64/helm" /usr/local/bin/helm
3838
39-
curl -sSLo kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.5.1/kind-linux-amd64"
39+
curl -sSLo kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64"
4040
chmod +x kind
4141
sudo mv kind /usr/local/bin/kind
4242
- run:

e2e-kind.sh

+1-16
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ set -o pipefail
77
CLUSTER_NAME=chart-testing
88
readonly CLUSTER_NAME
99

10-
K8S_VERSION=v1.15.3
10+
K8S_VERSION=v1.17.0
1111
readonly K8S_VERSION
1212

1313
create_kind_cluster() {
1414
kind create cluster --name "$CLUSTER_NAME" --image "kindest/node:$K8S_VERSION" --wait 60s
15-
KUBECONFIG="$(kind get kubeconfig-path --name="$CLUSTER_NAME")"
16-
export KUBECONFIG
1715

1816
kubectl cluster-info || kubectl cluster-info dump
1917
echo
@@ -25,18 +23,6 @@ create_kind_cluster() {
2523
echo
2624
}
2725

28-
install_local-path-provisioner() {
29-
# kind doesn't support Dynamic PVC provisioning yet, this is one way to get it working
30-
# https://github.com/rancher/local-path-provisioner
31-
32-
# Remove default storage class. It will be recreated by local-path-provisioner
33-
kubectl delete storageclass standard
34-
35-
echo 'Installing local-path-provisioner...'
36-
kubectl apply -f examples/kind/test/local-path-provisioner.yaml
37-
echo
38-
}
39-
4026
test_e2e() {
4127
go test -cover -race -tags=integration ./...
4228
echo
@@ -51,7 +37,6 @@ main() {
5137
trap cleanup EXIT
5238

5339
create_kind_cluster
54-
install_local-path-provisioner
5540
test_e2e
5641
}
5742

examples/kind/test/e2e-kind.sh

+3-20
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ set -o nounset
55
set -o pipefail
66

77
readonly CT_VERSION=v3.0.0-beta.1
8-
readonly KIND_VERSION=v0.5.1
8+
readonly KIND_VERSION=v0.7.0
99
readonly CLUSTER_NAME=chart-testing
10-
readonly K8S_VERSION=v1.15.3
10+
readonly K8S_VERSION=v1.17.0
1111

1212
run_ct_container() {
1313
echo 'Running ct container...'
@@ -40,12 +40,8 @@ create_kind_cluster() {
4040

4141
kind create cluster --name "$CLUSTER_NAME" --config test/kind-config.yaml --image "kindest/node:$K8S_VERSION" --wait 60s
4242

43-
docker_exec mkdir -p /root/.kube
44-
4543
echo 'Copying kubeconfig to container...'
46-
local kubeconfig
47-
kubeconfig="$(kind get kubeconfig-path --name "$CLUSTER_NAME")"
48-
docker cp "$kubeconfig" ct:/root/.kube/config
44+
docker cp /root/.kube/config ct:/root/.kube/config
4945

5046
docker_exec kubectl cluster-info
5147
echo
@@ -57,18 +53,6 @@ create_kind_cluster() {
5753
echo
5854
}
5955

60-
install_local-path-provisioner() {
61-
# kind doesn't support Dynamic PVC provisioning yet, this is one ways to get it working
62-
# https://github.com/rancher/local-path-provisioner
63-
64-
# Remove default storage class. It will be recreated by local-path-provisioner
65-
docker_exec kubectl delete storageclass standard
66-
67-
echo 'Installing local-path-provisioner...'
68-
docker_exec kubectl apply -f test/local-path-provisioner.yaml
69-
echo
70-
}
71-
7256
install_charts() {
7357
docker_exec ct install
7458
echo
@@ -79,7 +63,6 @@ main() {
7963
trap cleanup EXIT
8064

8165
create_kind_cluster
82-
install_local-path-provisioner
8366
install_charts
8467
}
8568

0 commit comments

Comments
 (0)