Skip to content

Commit

Permalink
wip(charts): be verbose when doing stuff in initContainers [pack]
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Feb 8, 2022
1 parent ca6b2f7 commit 51d4fad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/common/templates/_envsubstConfig.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Builds an initContainer definition to perform envsubst on a configMap and store
- -exec
- sh
- -c
- OUT_FILE=$(echo "$0" | sed -e "s#^/source#/target#") && OUT_DIR=$(dirname "$OUT_FILE") && mkdir -p "$OUT_DIR" && envsubst < "$0" > "$OUT_FILE"
- OUT_FILE=$(echo "$0" | sed -e "s#^/source#/target#") && OUT_DIR=$(dirname "$OUT_FILE") && mkdir -p "$OUT_DIR" && echo "Running envsubst on $OUT_FILE ..." && envsubst < "$0" > "$OUT_FILE"
- '{}'
- ';'
env:
Expand Down
2 changes: 1 addition & 1 deletion charts/common/templates/_rclone.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Builds an initContainer using rclone to pull an archive of the config from an ob
command:
- sh
- -c
- SRC_FILE=$(basename {{ $source }}) && cd /target && rclone copy {{ $source }} . --progress && tar -xf "$SRC_FILE" && rm "$SRC_FILE"
- SRC_FILE=$(basename {{ $source }}) && cd /target && echo "Rcloning from {{ $source }} ..." && rclone copy {{ $source }} . --progress && tar -xf "$SRC_FILE" && rm "$SRC_FILE"
volumeMounts:
- mountPath: /config/rclone/rclone.conf
name: rclone-config
Expand Down

0 comments on commit 51d4fad

Please sign in to comment.