-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helm Chart: Add imagelist to the helm chart (#3638)
* Add imagelist generation * Ensure patched files are removed. Add to concourse pipeline
- Loading branch information
1 parent
696ef8a
commit 86c1b06
Showing
4 changed files
with
138 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Colours | ||
CYAN="\033[96m" | ||
YELLOW="\033[93m" | ||
RESET="\033[0m" | ||
BOLD="\033[1m" | ||
|
||
__DIRNAME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
printf "${BOLD}${CYAN}Generating ${YELLOW}imagelist.txt${RESET}\n" | ||
echo "" | ||
|
||
|
||
CHART_FOLDER=${1} | ||
pushd ${CHART_FOLDER} > /dev/null | ||
helm template -f ${__DIRNAME}/imagelist.values.yaml ${CHART_FOLDER} | grep "image:" | grep --extended --only-matching '([^"/[:space:]]+/)?[^"/[:space:]]+/[^:[:space:]]+:[a-zA-Z0-9\._-]+' | sort | uniq | awk -F'/' '{print $2}' > imagelist.txt | ||
popd > /dev/null | ||
|
||
printf "${CYAN}" | ||
cat ${CHART_FOLDER}/imagelist.txt | ||
printf "${RESET}" | ||
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Values to be used to render the Helm Chart to ensure we get the full list of images in the Chart | ||
|
||
# i.e. with all features enabled | ||
|
||
# Use empty docker repository so names are consistent | ||
kube: | ||
registry: | ||
hostname: |