blob: ce447a0370ef47eb0973c40f0c804b199dae7780 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
if [[ -o xtrace ]]; then
export XTRACE=true
fi
# this flag doesn't work with the dry-run switch
if [[ "$*" == *"--allow-unreleased"* || "$*" == *"--install"* ]]; then
HELM_DIFF_USE_UPGRADE_DRY_RUN=false
HELM_DIFF_USE_INSECURE_SERVER_SIDE_DRY_RUN=false
fi
HELM_DIFF_USE_UPGRADE_DRY_RUN="${HELM_DIFF_USE_UPGRADE_DRY_RUN:-true}" HELM_DIFF_USE_INSECURE_SERVER_SIDE_DRY_RUN="${HELM_DIFF_USE_INSECURE_SERVER_SIDE_DRY_RUN:-true}" exec helmrelease "diff" "$@"
|