1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-05 09:45:14 +01:00

Fix kind example (#80)

Signed-off-by: rimas <rmocius@gmail.com>
This commit is contained in:
Rimas Mocevicius
2019-01-09 10:49:14 +00:00
committed by Reinhard Nägele
parent 0c74683826
commit 678da9fc35
2 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ jobs:
CHART_TESTING_IMAGE: quay.io/helmpack/chart-testing
CHART_TESTING_TAG: v2.1.0
CHARTS_REPO: https://github.com/your_git_repo/charts
K8S_VERSION: "v1.11.3"
K8S_VERSION: "v1.12.3"
steps:
- checkout
- run:

View File

@@ -8,8 +8,8 @@ readonly REPO_ROOT="${REPO_ROOT:-$(git rev-parse --show-toplevel)}"
run_kind() {
echo "Get kind binary..."
docker run --rm -it -v "$(pwd)":/go/bin golang go get sigs.k8s.io/kind && chmod +x kind && sudo mv kind /usr/local/bin/
echo "Download kind binary..."
docker run --rm -it -v "$(pwd)":/go/bin golang go get sigs.k8s.io/kind && sudo mv kind /usr/local/bin/
echo "Download kubectl..."
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/"${K8S_VERSION}"/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
@@ -73,7 +73,7 @@ main() {
# Copy kubeconfig file
docker exec "$config_container_id" mkdir /root/.kube
docker cp "$KUBECONFIG" "$config_container_id:/root/.kube/config"
# Update in kubeconfig localhost to kind container IP
# Update in kubeconfig from localhost to kind container IP
docker exec "$config_container_id" sed -i "s/localhost/$kind_container_ip/g" /root/.kube/config
echo "Add git remote k8s ${CHARTS_REPO}"