mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
* Fix wrong trim * add missing MutatingWeghookConfiguration.webhooks[*].sideEffects * fix missing admissionReviewVersions * admissionregistration.k8s.io/v1 for kustomization manifests * revert webhook config
90 lines
3.3 KiB
YAML
90 lines
3.3 KiB
YAML
{{- if .Values.githubWebhookServer.enabled }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "actions-runner-controller-github-webhook-server.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "actions-runner-controller.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: {{ .Values.githubWebhookServer.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "actions-runner-controller-github-webhook-server.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
{{- with .Values.githubWebhookServer.podAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "actions-runner-controller-github-webhook-server.selectorLabels" . | nindent 8 }}
|
|
spec:
|
|
{{- with .Values.githubWebhookServer.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ include "actions-runner-controller-github-webhook-server.serviceAccountName" . }}
|
|
securityContext:
|
|
{{- toYaml .Values.githubWebhookServer.podSecurityContext | nindent 8 }}
|
|
{{- with .Values.githubWebhookServer.priorityClassName }}
|
|
priorityClassName: "{{ . }}"
|
|
{{- end }}
|
|
containers:
|
|
- args:
|
|
- "--metrics-addr=127.0.0.1:8080"
|
|
- "--sync-period={{ .Values.githubWebhookServer.syncPeriod }}"
|
|
command:
|
|
- "/github-webhook-server"
|
|
env:
|
|
- name: GITHUB_WEBHOOK_SECRET_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: github_webhook_secret_token
|
|
name: {{ include "actions-runner-controller-github-webhook-server.secretName" . }}
|
|
optional: true
|
|
{{- range $key, $val := .Values.githubWebhookServer.env }}
|
|
- name: {{ $key }}
|
|
value: {{ $val | quote }}
|
|
{{- end }}
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
name: github-webhook-server
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- containerPort: 8000
|
|
name: http
|
|
protocol: TCP
|
|
resources:
|
|
{{- toYaml .Values.githubWebhookServer.resources | nindent 12 }}
|
|
securityContext:
|
|
{{- toYaml .Values.githubWebhookServer.securityContext | nindent 12 }}
|
|
- args:
|
|
- "--secure-listen-address=0.0.0.0:8443"
|
|
- "--upstream=http://127.0.0.1:8080/"
|
|
- "--logtostderr=true"
|
|
- "--v=10"
|
|
image: "{{ .Values.kube_rbac_proxy.image.repository }}:{{ .Values.kube_rbac_proxy.image.tag }}"
|
|
name: kube-rbac-proxy
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- containerPort: 8443
|
|
name: https
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
securityContext:
|
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
terminationGracePeriodSeconds: 10
|
|
{{- with .Values.githubWebhookServer.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.githubWebhookServer.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.githubWebhookServer.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }}
|