Skip to content

Commit

Permalink
Update Actions
Browse files Browse the repository at this point in the history
Update Actions
  • Loading branch information
kamal-mohammed authored Jan 26, 2024
2 parents c1dea7e + 75a5f14 commit a833e97
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions tools/config/update-configmap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
###########################################################
envValue=$1
APP_NAME=$2
OPENSHIFT_NAMESPACE=$3
GRAD_NAMESPACE=$3
COMMON_NAMESPACE=$4
SPLUNK_TOKEN=$5
BUSINESS_NAMESPACE=$5
SPLUNK_TOKEN=$6
APP_LOG_LEVEL=$7

SPLUNK_URL="gww.splunk.educ.gov.bc.ca"
FLB_CONFIG="[SERVICE]
Flush 1
Expand Down Expand Up @@ -47,20 +50,20 @@ PARSER_CONFIG="
#Setup for config-maps
###########################################################
echo Creating config map "$APP_NAME"-config-map
oc create -n "$OPENSHIFT_NAMESPACE"-"$envValue" configmap "$APP_NAME"-config-map \
--from-literal=APP_LOG_LEVEL="INFO" \
oc create -n "$GRAD_NAMESPACE"-"$envValue" configmap "$APP_NAME"-config-map \
--from-literal=APP_LOG_LEVEL="$APP_LOG_LEVEL" \
--from-literal=ENABLE_FLYWAY="true" \
--from-literal=GRAD_PROGRAM_API="http://educ-grad-program-api.$OPENSHIFT_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=GRAD_REPORT_API="http://educ-grad-report-api.$OPENSHIFT_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=GRAD_STUDENT_API="http://educ-grad-student-api.$OPENSHIFT_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=GRAD_TRAX_API="http://educ-grad-trax-api.$OPENSHIFT_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=GRAD_PROGRAM_API="http://educ-grad-program-api.$GRAD_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=GRAD_REPORT_API="http://educ-grad-report-api.$GRAD_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=GRAD_STUDENT_API="http://educ-grad-student-api.$GRAD_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=GRAD_TRAX_API="http://educ-grad-trax-api.$GRAD_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=PEN_API="http://student-api-master.$COMMON_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=MAXIMUM_POOL_SIZE="10" \
--dry-run=client -o yaml | oc apply -f -
echo

echo Creating config map "$APP_NAME"-flb-sc-config-map
oc create -n "$OPENSHIFT_NAMESPACE"-"$envValue" configmap "$APP_NAME"-flb-sc-config-map \
oc create -n "$GRAD_NAMESPACE"-"$envValue" configmap "$APP_NAME"-flb-sc-config-map \
--from-literal=fluent-bit.conf="$FLB_CONFIG" \
--from-literal=parsers.conf="$PARSER_CONFIG" \
--dry-run=client -o yaml | oc apply -f -
Expand Down

0 comments on commit a833e97

Please sign in to comment.