mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-11 20:21:02 +00:00
Add environment variables and volumes for GitHub Apps credentials
This commit is contained in:
@@ -35,6 +35,25 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: controller-manager
|
name: controller-manager
|
||||||
key: github_token
|
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:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
@@ -42,4 +61,8 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 20Mi
|
memory: 20Mi
|
||||||
|
volumes:
|
||||||
|
- name: controller-manager
|
||||||
|
secret:
|
||||||
|
secretName: controller-manager
|
||||||
terminationGracePeriodSeconds: 10
|
terminationGracePeriodSeconds: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user