From 41664c6517919bbc0394b7d136dd55d901b70c8e Mon Sep 17 00:00:00 2001 From: David Hoese <david.hoese@ssec.wisc.edu> Date: Thu, 20 Aug 2020 15:02:14 -0500 Subject: [PATCH] More debugging --- ci_gcp/gitlab-ci.yaml | 4 +++- helpers/shell_aliases.sh | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ci_gcp/gitlab-ci.yaml b/ci_gcp/gitlab-ci.yaml index 84ad3c6..577c6bf 100644 --- a/ci_gcp/gitlab-ci.yaml +++ b/ci_gcp/gitlab-ci.yaml @@ -56,9 +56,11 @@ gstest deploy client: - echo $HOME - ls ~/.kube || echo "Nope" - ls ~/.config || echo "Nope" + - helm_debug ls -a /root + - helm_debug ls -a /root/.kube - helm_for_gcp list --kubeconfig /root/.kube/config # namespace names are the same as domain names - - helm_for_gcp upgrade -v 2 --kubeconfig /root/.kube/config --install --namespace $ns -f values-client.yaml geosphere-client geosphere-client/ + - helm_for_gcp upgrade -v 2 --kubeconfig /root/.kube/config --install --namespace $ns -f /apps/values-client.yaml geosphere-client /apps/geosphere-client/ dependencies: - get_chart_client_test rules: diff --git a/helpers/shell_aliases.sh b/helpers/shell_aliases.sh index f5ce375..11e8947 100644 --- a/helpers/shell_aliases.sh +++ b/helpers/shell_aliases.sh @@ -7,8 +7,14 @@ helm() { } export -f helm +helm_debug() { + docker run -it --rm -e HELM_EXPERIMENTAL_OCI="$HELM_EXPERIMENTAL_OCI" -e KUBECONFIG="/root/.kube/config" -v $(pwd):/apps -v ~/.kube:/root/.kube -v ~/.helm:/root/.helm -v ~/.config:/root/.config -v ~/.cache:/root/.cache --entrypoint="" alpine/helm:3.2.3 "$@" +} +export -f helm_debug + + helm_for_gcp() { - docker run -t --rm -e HELM_EXPERIMENTAL_OCI="$HELM_EXPERIMENTAL_OCI" -e KUBECONFIG="/root/.kube/config" -v $(pwd):/apps -w /apps -v ~/.kube:/root/.kube -v ~/.helm:/root/.helm -v ~/.config:/root/.config -v ~/.cache:/root/.cache alpine/helm:3.2.3 "$@" + docker run -it --rm -e HELM_EXPERIMENTAL_OCI="$HELM_EXPERIMENTAL_OCI" -e KUBECONFIG="/root/.kube/config" -v $(pwd):/apps -v ~/.kube:/root/.kube -v ~/.helm:/root/.helm -v ~/.config:/root/.config -v ~/.cache:/root/.cache alpine/helm:3.2.3 "$@" } export -f helm_for_gcp -- GitLab