From ab25907050e258dd6b1734a11b68cc14b39e50d0 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Tue, 11 May 2021 02:25:10 +0000 Subject: [PATCH] chart: Add githubAPICacheDuration Ref #502 --- charts/actions-runner-controller/templates/deployment.yaml | 3 +++ charts/actions-runner-controller/values.yaml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/charts/actions-runner-controller/templates/deployment.yaml b/charts/actions-runner-controller/templates/deployment.yaml index 0ed5a0c9..a178ef72 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -39,6 +39,9 @@ spec: {{- if .Values.scope.singleNamespace }} - "--watch-namespace={{ default .Release.Namespace .Values.scope.watchNamespace }}" {{- end }} + {{- if .Values.githubAPICacheDuration }} + - "--github-api-cache-duration={{ .Values.githubAPICacheDuration }}" + {{- end }} command: - "/manager" env: diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index 956a9617..e24dd2b2 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -8,6 +8,11 @@ replicaCount: 1 syncPeriod: 10m +# The controller tries its best not to repeat the duplicate GitHub API call +# within this duration. +# Defaults to syncPeriod - 10s. +#githubAPICacheDuration: 30s + # Only 1 authentication method can be deployed at a time # Uncomment the configuration you are applying and fill in the details authSecret: