From af81c7f4c97427b60eaeed4346d077d335672fb8 Mon Sep 17 00:00:00 2001 From: Moto Ishizawa Date: Thu, 26 Mar 2020 23:12:54 +0900 Subject: [PATCH] Add environment variables and volumes for GitHub Apps credentials --- config/manager/manager.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 9ceb2326..c31d2e28 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -35,6 +35,25 @@ spec: secretKeyRef: name: controller-manager key: github_token + optional: true + - name: GITHUB_APP_ID + valueFrom: + secretKeyRef: + name: controller-manager + key: github_app_id + optional: true + - name: GITHUB_APP_INSTALLATION_ID + valueFrom: + secretKeyRef: + name: controller-manager + key: github_app_installation_id + optional: true + - name: GITHUB_APP_PRIVATE_KEY + value: /etc/actions-runner-controller/github_app_private_key + volumeMounts: + - name: controller-manager + mountPath: "/etc/actions-runner-controller" + readOnly: true resources: limits: cpu: 100m @@ -42,4 +61,8 @@ spec: requests: cpu: 100m memory: 20Mi + volumes: + - name: controller-manager + secret: + secretName: controller-manager terminationGracePeriodSeconds: 10