Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm integration test framework #237

Merged
merged 18 commits into from
Feb 20, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only install helm in helm_test
  • Loading branch information
yorinasub17 committed Feb 16, 2019
commit 7a2893f1447728187ca8a614e2bc9275150695bd
25 changes: 18 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ setup_minikube: &setup_minikube
mkdir -p ${HOME}/.kube
touch ${HOME}/.kube/config

# install helm
curl -Lo helm.tar.gz https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz
tar -xvf helm.tar.gz
chmod +x linux-amd64/helm
sudo mv linux-amd64/helm /usr/local/bin/

# Install minikube
curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/${MINIKUBE_VERSION}/minikube-linux-amd64
chmod +x minikube
Expand All @@ -59,6 +53,22 @@ setup_minikube: &setup_minikube
)


install_helm: &install_helm
name: install helm
command: |
# install helm
curl -Lo helm.tar.gz https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz
tar -xvf helm.tar.gz
chmod +x linux-amd64/helm
sudo mv linux-amd64/helm /usr/local/bin/

# Grant the default service account cluster admin rights so helm works
kubectl create clusterrolebinding default-service-account-cluster-admin-binding --clusterrole cluster-admin --serviceaccount kube-system:default

# Deploy Tiller
helm init --wait


install_gruntwork_utils: &install_gruntwork_utils
name: install gruntwork utils
command: |
Expand Down Expand Up @@ -204,7 +214,8 @@ jobs:
- run:
<<: *setup_minikube

- run: helm init --wait
- run:
<<: *install_helm

# Run the Helm tests. These tests are run because the helm build tag is included, and we explicitly
# select the helm tests
Expand Down