chart: Allow customization of admission webhook timeout (#2398)

Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
Zane Hala
2023-03-27 18:42:20 -05:00
committed by GitHub
parent c23e31123c
commit 65184f1ed8
3 changed files with 13 additions and 0 deletions

View File

@@ -69,6 +69,9 @@ if [ "${tool}" == "helm" ]; then
flags+=( --set githubWebhookServer.logFormat=${LOG_FORMAT})
flags+=( --set actionsMetricsServer.logFormat=${LOG_FORMAT})
fi
if [ "${ADMISSION_WEBHOOKS_TIMEOUT}" != "" ]; then
flags+=( --set admissionWebHooks.timeoutSeconds=${ADMISSION_WEBHOOKS_TIMEOUT})
fi
if [ -n "${CREATE_SECRETS_USING_HELM}" ]; then
if [ -z "${WEBHOOK_GITHUB_TOKEN}" ]; then
echo 'Failed deploying secret "actions-metrics-server" using helm. Set WEBHOOK_GITHUB_TOKEN to deploy.' 1>&2