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: