actions-runner-controller/controllers
Daniel 8a73560dbc
if a Volume is defined by the operator don't add another "work" volume. (#1015)
This allows providing a different `work` Volume.

This should be a cloud agnostic way of allowing the operator to use (for example) NVME backed storage.

This is a working example where the workDir will use the provided volume, additionally here docker is placed on the same NVME.
```
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
  name: runner-2
spec:
  template:
    spec:
      dockerdContainerResources: {}
      env:
      - name: POD_NAME
        valueFrom:
          fieldRef:
            fieldPath: metadata.name
      # this is to mount the docker in docker onto NVME disk
      dockerVolumeMounts:
      - mountPath: /var/lib/docker
        name: scratch
        subPathExpr: $(POD_NAME)-docker
      - mountPath: /runner/_work
        name: work
        subPathExpr: $(POD_NAME)-work
      volumeMounts:
      - mountPath: /runner/_work
        name: work
        subPathExpr: $(POD_NAME)-work
      dockerEnv:
      - name: POD_NAME
        valueFrom:
          fieldRef:
            fieldPath: metadata.name
      volumes:
      - hostPath:
          path: /mnt/disks/ssd0
        name: scratch
      - hostPath:
          path: /mnt/disks/ssd0
        name: work
      nodeSelector:
       cloud.google.com/gke-nodepool: runner-16-with-nvme
      ephemeral: false
      image: ""
      imagePullPolicy: Always
      labels:
        - runner-2
        - self-hosted
      organization: yourorganization

```
2022-01-07 10:01:40 +09:00
..
metrics Clean up import list (#645) 2021-06-22 17:55:06 +09:00
testdata test: Add tests with self-hosted label for #953 (#1030) 2022-01-07 08:50:26 +09:00
autoscaling.go fix: pagination for ListWorkflowJobs in autoscaler (#990) (#992) 2021-12-24 09:12:36 +09:00
autoscaling_test.go Add HRA support for RunnerSet (#647) 2021-06-23 20:25:03 +09:00
horizontal_runner_autoscaler_webhook.go test: Add tests with self-hosted label for #953 (#1030) 2022-01-07 08:50:26 +09:00
horizontal_runner_autoscaler_webhook_on_check_run.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
horizontal_runner_autoscaler_webhook_on_pull_request.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
horizontal_runner_autoscaler_webhook_on_push.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
horizontal_runner_autoscaler_webhook_test.go test: Add tests with self-hosted label for #953 (#1030) 2022-01-07 08:50:26 +09:00
horizontalrunnerautoscaler_controller.go fix(deps): update module sigs.k8s.io/controller-runtime to v0.11.0 (#740) 2021-12-17 09:06:55 +09:00
horizontalrunnerautoscaler_controller_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
integration_test.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
pod_runner_token_injector.go RunnerSet: Automatic-recovery from registration timeout and deregistration on pod termination (#652) 2021-06-24 20:39:37 +09:00
runner_controller.go if a Volume is defined by the operator don't add another "work" volume. (#1015) 2022-01-07 10:01:40 +09:00
runner_pod_controller.go fix(deps): update module sigs.k8s.io/controller-runtime to v0.11.0 (#740) 2021-12-17 09:06:55 +09:00
runnerdeployment_controller.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
runnerdeployment_controller_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
runnerreplicaset_controller.go Stop creating registration-only runners on scale-to-zero (#1028) 2022-01-07 09:56:21 +09:00
runnerreplicaset_controller_test.go Stop creating registration-only runners on scale-to-zero (#1028) 2022-01-07 09:56:21 +09:00
runnerset_controller.go Stop creating registration-only runners on scale-to-zero (#1028) 2022-01-07 09:56:21 +09:00
schedule.go Experimental support for ScheduledOverrides (#515) 2021-05-03 23:31:17 +09:00
schedule_test.go Experimental support for ScheduledOverrides (#515) 2021-05-03 23:31:17 +09:00
suite_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
utils.go feat: EKS IAM Roles for Service Accounts for Runner Pods (#226) 2020-12-08 17:56:06 +09:00
utils_test.go feat: EKS IAM Roles for Service Accounts for Runner Pods (#226) 2020-12-08 17:56:06 +09:00