Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
support application/global (#9)
Browse files Browse the repository at this point in the history
* support application/global

* support application/global

* fix order
  • Loading branch information
dorsradek committed May 9, 2024
1 parent 1305d90 commit 7350240
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ FROM alpine:3.18.4

RUN apk add bash

RUN apk add wget

RUN wget https://github.com/stedolan/jq/releases/download/jq-1.7/jq-linux64 && \
mv jq-linux64 /usr/local/bin/jq && \
chmod +x /usr/local/bin/jq

COPY ./parse-config.sh parse-config.sh

ENTRYPOINT [ "bash", "parse-config.sh" ]
5 changes: 5 additions & 0 deletions parse-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ load_dir() {
if [[ "$KEY" == "infrastructure.global."* ]]; then
KEY=${KEY#"infrastructure.global."}
fi

# Removes the application.global prefix if it exists
if [[ "$KEY" == "application.global."* ]]; then
KEY=${KEY#"application.global."}
fi

# Removes the application.$application_name prefix if it exists
if [[ "$KEY" == "application.$APPLICATION_NAME."* ]]; then
Expand Down
1 change: 1 addition & 0 deletions test/expectation/.expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
kerberos.cache.kerberos-authz.url=kerberos-authz.cache.dev.pleo.io
sqs.sales.endpoint=https://sputnik-buckname.name.com
msk.endpoint=https://msk.com
launch-darkly.key=secret_value
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kerberos-authz.cache.dev.pleo.io

0 comments on commit 7350240

Please sign in to comment.