Skip to content

Commit

Permalink
Merge pull request #5 from isovalent/fix-cilium-extra-args
Browse files Browse the repository at this point in the history
This commit fixes a bug that removed CILIUM_HELM_EXTRA_ARGS
  • Loading branch information
darox authored Jun 28, 2023
2 parents 3275eff + 83785e2 commit 03d71b2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scripts/provisioner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,14 @@ envsubst < "${CILIUM_HELM_VALUES_FILE}" > tmp1
if [[ "${CILIUM_HELM_VALUES_OVERRIDE_FILE}" != "" ]];
then
# Substitute environment variables into the Cilium Helm values override file.
envsubst < "${CILIUM_HELM_VALUES_OVERRIDE_FILE}" > tmp2
envsubst < "${CILIUM_HELM_VALUES_OVERRIDE_FILE}" | \
helm upgrade --install "${CILIUM_HELM_RELEASE_NAME}" "${CILIUM_HELM_CHART}" \
--version "${CILIUM_HELM_VERSION}" -n "${CILIUM_NAMESPACE}" -f tmp1 -f tmp2
rm -f tmp1 tmp2
--version "${CILIUM_HELM_VERSION}" -n "${CILIUM_NAMESPACE}" -f tmp1 -f /dev/stdin ${CILIUM_HELM_EXTRA_ARGS}
rm -f tmp1
else
envsubst < tmp1 | \
helm upgrade --install "${CILIUM_HELM_RELEASE_NAME}" "${CILIUM_HELM_CHART}" \
--version "${CILIUM_HELM_VERSION}" -n "${CILIUM_NAMESPACE}" -f tmp1
--version "${CILIUM_HELM_VERSION}" -n "${CILIUM_NAMESPACE}" -f /dev/stdin ${CILIUM_HELM_EXTRA_ARGS}
rm -f tmp1
fi

Expand All @@ -99,6 +100,4 @@ fi
if [[ "${POST_CILIUM_INSTALL_SCRIPT}" != "" ]];
then
base64 --decode <<< "${POST_CILIUM_INSTALL_SCRIPT}" | bash
fi


fi

0 comments on commit 03d71b2

Please sign in to comment.