Skip to content

Commit

Permalink
Update Helm docs to include repo dependencies
Browse files Browse the repository at this point in the history
Add script to update Helm chart repository
  • Loading branch information
NeonDaniel committed Nov 1, 2023
1 parent 9062161 commit 06827c1
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 5 deletions.
8 changes: 7 additions & 1 deletion Helm_Deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ The Helm charts for Neon Diana are the recommended method for production deploym
Before deploying a Diana backend, ensure the following has been completed:
- Kubernetes Cluster is deployed and `helm` CLI is properly configured
- Desired domain is ready to forward all relevant subdomains to the cluster

- Add the following Helm repositories:
```shell
helm repo add diana https://neongeckocom.github.io/neon-diana-utils
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo add jetstack https://charts.jetstack.io
helm repo add bitnami https://charts.bitnami.com/bitnami
```
## Backend Configuration
Configure the backend deployment with
`diana configure-mq-backend <output_path>`. Follow the shell prompts to
Expand Down
61 changes: 57 additions & 4 deletions scripts/build_helm_charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,62 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

git clone https://github.com/neongeckocom/neon-diana-utils -b helm-charts
helm package ../neon_diana_utils/helm_charts/*
helm repo index --url https://neongeckocom.github.io/helm-charts helm-charts
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.." || exit 0

helm repo add diana https://neongeckocom.github.io/neon-diana-utils
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo add jetstack https://charts.jetstack.io
helm repo add bitnami https://charts.bitnami.com/bitnami

git clone https://github.com/NeonGeckoCom/neon-diana-utils -b helm-charts helm-charts > /dev/null
cd helm-charts || exit 10

# Package Base libraries
for d in ../neon_diana_utils/helm_charts/base/*; do
helm dependency build "${d}" > /dev/null
done
helm package ../neon_diana_utils/helm_charts/base/*

# Package HTTP Services
for d in ../neon_diana_utils/helm_charts/http/*; do
helm dependency build "${d}" > /dev/null
done
helm package ../neon_diana_utils/helm_charts/http/*

# Package MQ Services
for d in ../neon_diana_utils/helm_charts/mq/*; do
helm dependency build "${d}"
done
helm package ../neon_diana_utils/helm_charts/mq/*

# Package Backend
for d in ../neon_diana_utils/helm_charts/backend/*-services; do
helm dependency build "${d}" > /dev/null
done
helm package ../neon_diana_utils/helm_charts/backend/*-services
helm dependency build ../neon_diana_utils/helm_charts/backend/diana-backend > /dev/null
helm package ../neon_diana_utils/helm_charts/backend/*

# Package Neon
for d in ../neon_diana_utils/helm_charts/neon/neon-*; do
helm dependency build "${d}" > /dev/null
done
helm package ../neon_diana_utils/helm_charts/neon/neon-*
helm dependency build ../neon_diana_utils/helm_charts/neon/core > /dev/null
helm package ../neon_diana_utils/helm_charts/neon/*

# Package Klat
for d in ../neon_diana_utils/helm_charts/klat/*; do
helm dependency build "${d}" > /dev/null
done
helm package ../neon_diana_utils/helm_charts/klat/*

# Make sure existing charts aren't touched (new charts get new versions)
git reset --hard HEAD

# Update index.yaml and push changes
helm repo index --url https://neongeckocom.github.io/neon-diana-utils .
git add .
git commit -m "Update Helm Charts"
git push --set-upstream origin helm-charts
git push
cd .. && rm -rf helm-charts

0 comments on commit 06827c1

Please sign in to comment.