diff --git a/charts/actions-runner-controller/README.md b/charts/actions-runner-controller/README.md index 5028e479..ce2719df 100644 --- a/charts/actions-runner-controller/README.md +++ b/charts/actions-runner-controller/README.md @@ -32,6 +32,7 @@ All additional docs are kept in the `docs/` folder, this README is solely for do | `image.dindSidecarRepositoryAndTag` | The "repository/image" of the dind sidecar container | docker:dind | | `image.pullPolicy` | The pull policy of the controller image | IfNotPresent | | `metrics.serviceMonitor` | Deploy serviceMonitor kind for for use with prometheus-operator CRDs | false | +| `metrics.serviceAnnotations` | Set annotations for the provisioned metrics service resource | | | `metrics.port` | Set port of metrics service | 8443 | | `metrics.proxy.enabled` | Deploy kube-rbac-proxy container in controller pod | true | | `metrics.proxy.image.repository` | The "repository/image" of the kube-proxy container | quay.io/brancz/kube-rbac-proxy | @@ -47,6 +48,7 @@ All additional docs are kept in the `docs/` folder, this README is solely for do | `serviceAccount.name` | Set the name of the service account | | | `securityContext` | Set the security context for each container in the controller pod | | | `podSecurityContext` | Set the security context to controller pod | | +| `service.annotations` | Set annotations for the provisioned webhook service resource | | | `service.port` | Set controller service type | | | `service.type` | Set controller service ports | | | `topologySpreadConstraints` | Set the controller pod topologySpreadConstraints | | diff --git a/charts/actions-runner-controller/templates/controller.metrics.service.yaml b/charts/actions-runner-controller/templates/controller.metrics.service.yaml index dee332c7..1dc422be 100644 --- a/charts/actions-runner-controller/templates/controller.metrics.service.yaml +++ b/charts/actions-runner-controller/templates/controller.metrics.service.yaml @@ -5,6 +5,10 @@ metadata: {{- include "actions-runner-controller.labels" . | nindent 4 }} name: {{ include "actions-runner-controller.metricsServiceName" . }} namespace: {{ .Release.Namespace }} + {{- with .Values.metrics.serviceAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: ports: - name: metrics-port diff --git a/charts/actions-runner-controller/templates/webhook_service.yaml b/charts/actions-runner-controller/templates/webhook_service.yaml index e633a69f..c7014a56 100644 --- a/charts/actions-runner-controller/templates/webhook_service.yaml +++ b/charts/actions-runner-controller/templates/webhook_service.yaml @@ -5,6 +5,10 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "actions-runner-controller.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index 4a924588..3b8939fa 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -71,11 +71,15 @@ securityContext: # runAsNonRoot: true # runAsUser: 1000 +# Webhook service resource service: type: ClusterIP port: 443 + annotations: {} +# Metrics service resource metrics: + serviceAnnotations: {} serviceMonitor: false serviceMonitorLabels: {} port: 8443