Skip to content

Commit

Permalink
Merge pull request #1862 from amazeeio/fix-missing-template-folder
Browse files Browse the repository at this point in the history
only run helm template if the folder actually exists
  • Loading branch information
Schnitzel committed May 10, 2020
2 parents 9867056 + b9c156d commit 2afa7f4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ elif [[ $(helm show values /kubectl-build-deploy/helmcharts/${SERVICE_TYPE} | gr
SERVICE_NAME_IMAGE_HASH="${IMAGE_HASHES[${SERVICE_NAME_IMAGE}]}"
cat /kubectl-build-deploy/${SERVICE_NAME}-values.yaml
helm template ${SERVICE_NAME} /kubectl-build-deploy/helmcharts/${SERVICE_TYPE} -f /kubectl-build-deploy/values.yaml -f /kubectl-build-deploy/${SERVICE_NAME}-values.yaml --set image="${SERVICE_NAME_IMAGE_HASH}" "${HELM_SET_VALUES[@]}" "${HELM_ARGUMENTS[@]}" | outputToYaml
else
elif [ -d /kubectl-build-deploy/helmcharts/${SERVICE_TYPE} ]; then
cat /kubectl-build-deploy/${SERVICE_NAME}-values.yaml
helm template ${SERVICE_NAME} /kubectl-build-deploy/helmcharts/${SERVICE_TYPE} -f /kubectl-build-deploy/values.yaml -f /kubectl-build-deploy/${SERVICE_NAME}-values.yaml "${HELM_SET_VALUES[@]}" "${HELM_ARGUMENTS[@]}" | outputToYaml
fi

0 comments on commit 2afa7f4

Please sign in to comment.