From e9838ecb50e34b624a91fcb23ff489f0b7427e0d Mon Sep 17 00:00:00 2001 From: Gerd Oberlechner Date: Fri, 25 Oct 2024 13:16:23 +0200 Subject: [PATCH] docs Signed-off-by: Gerd Oberlechner --- svc-deploy | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/svc-deploy b/svc-deploy index 8962985d8..01bd2cda7 100755 --- a/svc-deploy +++ b/svc-deploy @@ -1,10 +1,21 @@ #!/bin/bash +# deploy a service to a cluster +# ./svc-deploy +# this script expects the to contain a Makefile.tmpl.mk template that can +# be processed with ./templatized according to config/config.yml + cd $(dirname "$(realpath "${BASH_SOURCE[0]}")") export DEPLOY_ENV=$1 export DIR=$2 export CLUSTER=$3 + +if [[ "$CLUSTER" != "svc" && "$CLUSTER" != "mgmt" ]]; then + echo "Error: CLUSTER must be either 'svc' or 'mgmt'." + exit 1 +fi + export KUBECONFIG=$(./dev-infrastructure/make $DEPLOY_ENV $CLUSTER.aks.kubeconfigfile) ./templatize $DEPLOY_ENV $DIR/Makefile.tmpl.mk $DIR/Makefile