Skip to content

Commit 56897f3

Browse files
update helm-chart
Signed-off-by: Jonathan Irvin <djfoxyslpr@gmail.com>
1 parent 63bb637 commit 56897f3

File tree

7 files changed

+4
-149
lines changed

7 files changed

+4
-149
lines changed

helm-charts/bingo/Chart.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

helm-charts/bingo/templates/_helpers.tpl

Lines changed: 0 additions & 18 deletions
This file was deleted.

helm-charts/bingo/templates/configmap.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

helm-charts/bingo/templates/deployment.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

helm-charts/bingo/templates/service.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

helm-charts/bingo/values.yaml

Lines changed: 0 additions & 66 deletions
This file was deleted.

helm/package.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
set -e
55

66
# Default values
7+
DIST_DIR="../dist"
78
CHART_DIR="bingo"
89
CHART_VERSION=$(grep 'version:' ${CHART_DIR}/Chart.yaml | awk '{print $2}')
910
RELEASE_NAME="bingo"
@@ -53,15 +54,15 @@ while [[ $# -gt 0 ]]; do
5354
done
5455

5556
echo "Packaging Helm chart ${CHART_DIR} version ${CHART_VERSION}..."
56-
helm package ${CHART_DIR}
57+
helm package ${CHART_DIR} --destination ${DIST_DIR}
5758

5859
if [ "$DEPLOY" = true ]; then
5960
echo "Deploying chart to Kubernetes namespace ${NAMESPACE} with release name ${RELEASE_NAME}..."
60-
helm upgrade --install ${RELEASE_NAME} ${CHART_DIR}-${CHART_VERSION}.tgz --namespace ${NAMESPACE} --create-namespace
61+
helm upgrade --install ${RELEASE_NAME} ${DIST_DIR}/${CHART_DIR}-${CHART_VERSION}.tgz --namespace ${NAMESPACE} --create-namespace
6162

6263
echo "Deployment complete. You can access the application using:"
6364
echo "kubectl port-forward -n ${NAMESPACE} svc/${RELEASE_NAME} 8080:8080"
6465
else
6566
echo "Chart packaged successfully. To deploy, run:"
66-
echo "helm install ${RELEASE_NAME} ${CHART_DIR}-${CHART_VERSION}.tgz --namespace ${NAMESPACE} --create-namespace"
67+
echo "helm install ${RELEASE_NAME} ${DIST_DIR}/${CHART_DIR}-${CHART_VERSION}.tgz --namespace ${NAMESPACE} --create-namespace"
6768
fi

0 commit comments

Comments
 (0)