feat(chart): set the Deezer ARL from values
- new deezer.arl value rendered as DEEZER_ARL - existingSecret and arl are mutually exclusive - values.local.yaml is gitignored; README documents both options - chart 0.4.1 and a chart check for the new value
This commit is contained in:
1 parent
26c41cc7d9
commit
de1e95bfc6
6 files changed
+67
-5
No files matched your search
@@ -77,4 +77,21 @@ helm template "$RELEASE" "$CHART_DIR" \
|
||||
--set users.existingSecret=test \
|
||||
--set allowDefaultNamespace=true >/dev/null
|
||||
|
||||
echo "render with deezer.arl"
|
||||
helm template "$RELEASE" "$CHART_DIR" \
|
||||
--namespace "$NAMESPACE" \
|
||||
--set users.existingSecret=test \
|
||||
--set deezer.arl=test-arl > "$workdir/arl.yaml"
|
||||
grep -A1 'name: DEEZER_ARL' "$workdir/arl.yaml" | grep -q 'value: "test-arl"'
|
||||
|
||||
echo "deezer.arl and deezer.existingSecret are mutually exclusive"
|
||||
if helm template "$RELEASE" "$CHART_DIR" \
|
||||
--namespace "$NAMESPACE" \
|
||||
--set users.existingSecret=test \
|
||||
--set deezer.arl=test-arl \
|
||||
--set deezer.existingSecret=test-secret >/dev/null 2>&1; then
|
||||
echo "FAIL: the chart accepted both deezer.arl and deezer.existingSecret" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "chart check passed"
|
||||
Reference in new issue
Block a user