Skip to content

Commit

Permalink
Moving stuff around.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Nov 16, 2024
1 parent f7f3a6b commit ab02c60
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
19 changes: 16 additions & 3 deletions scripts/helm-functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/bin/bash
CHART_PROJECT_NAME=${CHART_PROJECT_NAME:-openshift-chart-deployment}
CHART_VERSION=${CHART_VERSION:-3.2}
TRACE=${TRACE:-false}

OS_PROJECT=${OS_PROJECT:-poms}
OS_ENV=${OS_ENV:-test}

HELM_REPO=${HELM_REPO:-oci://registry.npohosting.nl/poms}
HELM_REGISTRY=${HELM_REGISTRY:-https://registry.npohosting.nl}

OC_CONTEXT_PROD=${OC_CONTEXT_PROD:=pomsp}
OC_CONTEXT_TEST=${OC_CONTEXT_TEST:=pomst}

echo "helm build setup"
if ! type os_app_name &> /dev/null ; then
. "$KANIKO_SCRIPTS"dockerfile-functions.sh
Expand All @@ -11,10 +24,10 @@ login_oc() {
export SERVER
if [ "$OS_ENV" = "prod" ]; then
SERVER=$OPENSHIFT_PROD_SERVER
CONTEXT=pomsp
CONTEXT=$OC_CONTEXT_PROD
else
SERVER=$OPENSHIFT_TEST_SERVER
CONTEXT=pomst
CONTEXT=$OC_CONTEXT_TEST
fi

if [ "$KUBECONFIG" != "" ]; then
Expand All @@ -33,7 +46,7 @@ login_oc() {
oc projects
}

echo "${BASH_VERSION} $LINENO Defining setup_oc_helm function"
echo "Defining setup_oc_helm function"

function setup_oc_helm() {
DIR=$1
Expand Down
12 changes: 1 addition & 11 deletions scripts/script.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
#!/bin/bash
export CHART_PROJECT_NAME=openshift-chart-deployment
export CHART_VERSION=3.2
export TRACE=false

export OS_PROJECT=poms
export OS_ENV=test
export HELM_REPO=oci://registry.npohosting.nl/poms
export HELM_REGISTRY=https://registry.npohosting.nl


export HARBOR_USER
export HARBOR_PASSWORD
. /conf/harbor.properties
#. /conf/harbor.properties

cd /workspace || exit 1

Expand Down

0 comments on commit ab02c60

Please sign in to comment.