mirror of
https://github.com/helm/chart-testing.git
synced 2026-02-05 18:45:18 +01:00
Use latest helm v3 version, and remove install_tiller function
Signed-off-by: Scott Rigby <scott@r6by.com>
This commit is contained in:
@@ -15,6 +15,8 @@ jobs:
|
||||
machine:
|
||||
enabled: true
|
||||
image: circleci/classic:201808-01
|
||||
environment:
|
||||
HELM_VERSION: v3.0.0-rc.2
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
@@ -30,7 +32,7 @@ jobs:
|
||||
chmod +x ./kubectl
|
||||
sudo mv ./kubectl /usr/local/bin/kubectl
|
||||
|
||||
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash
|
||||
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash -s -- -v $HELM_VERSION
|
||||
curl -sSLo kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.5.1/kind-linux-amd64"
|
||||
chmod +x kind
|
||||
sudo mv kind /usr/local/bin/kind
|
||||
|
||||
@@ -22,14 +22,6 @@ create_kind_cluster() {
|
||||
echo
|
||||
}
|
||||
|
||||
install_tiller() {
|
||||
echo 'Installing Tiller...'
|
||||
kubectl --namespace kube-system --output yaml create serviceaccount tiller --dry-run | kubectl apply -f -
|
||||
kubectl create --output yaml clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller --dry-run | kubectl apply -f -
|
||||
helm init --service-account tiller --upgrade --wait
|
||||
echo
|
||||
}
|
||||
|
||||
install_local-path-provisioner() {
|
||||
# kind doesn't support Dynamic PVC provisioning yet, this is one way to get it working
|
||||
# https://github.com/rancher/local-path-provisioner
|
||||
@@ -57,7 +49,6 @@ main() {
|
||||
|
||||
create_kind_cluster
|
||||
install_local-path-provisioner
|
||||
install_tiller
|
||||
test_e2e
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user