Skip to content

Commit fb1446f

Browse files
committed
fix: a couple other minor details
1 parent 32907f7 commit fb1446f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/config/update-configmap.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ oc create -n "$PEN_NAMESPACE-$envValue" configmap "$APP_NAME-config-map" \
146146
--from-literal=EMAIL_TEMPLATE_MACRO_UPDATE="<!DOCTYPE html><html xmlns:th=\"http://www.thymeleaf.org\"><head><meta charset=\"ISO-8859-1\"></head><body><span th:text=\"\${\$}{businessUseTypeName}\"></span> macro <span th:text=\"\${\$}{macroCode}\"></span> was updated to:<br><br>Code: <span th:text=\"\${\$}{macroCode}\"></span><br>Type: <span th:text=\"\${\$}{macroTypeCode}\"></span><br>Text: <span th:text=\"\${\$}{macroText}\"></span></body></html>" \
147147
--from-literal=PURGE_RECORDS_EVENT_AFTER_DAYS=365 \
148148
--from-literal=SCHEDULED_JOBS_PURGE_OLD_EVENT_RECORDS_CRON="@midnight" \
149-
--dry-run -o yaml | oc apply -f -
149+
--dry-run=client -o yaml | oc apply -f -
150150

151151
echo
152-
echo Setting environment variables for "$APP_NAME-$SOAM_KC_REALM_ID" application
152+
echo Setting environment variables for "$APP_NAME-$BRANCH" application
153153
oc -n "$PEN_NAMESPACE-$envValue" set env --from="configmap/$APP_NAME-config-map" "deployment/$APP_NAME-$BRANCH"
154154

155-
echo Creating config map "$APP_NAME"-flb-sc-config-map
156-
oc create -n "$PEN_NAMESPACE-$envValue" configmap "$APP_NAME-flb-sc-config-map" --from-literal="fluent-bit.conf=$FLB_CONFIG" --from-literal=parsers.conf="$PARSER_CONFIG" --dry-run -o yaml | oc apply -f -
155+
echo Creating config map "$APP_NAME-flb-sc-config-map"
156+
oc create -n "$PEN_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 -
157157

158158
echo Removing un-needed config entries
159-
oc -n "$PEN_NAMESPACE"-"$envValue" set env "deployment/$APP_NAME-$SOAM_KC_REALM_ID" SOAM_PUBLIC_KEY-
159+
oc -n "$PEN_NAMESPACE-$envValue" set env "deployment/$APP_NAME-$SOAM_KC_REALM_ID" SOAM_PUBLIC_KEY-

0 commit comments

Comments
 (0)