diff --git a/gitea-act-runner/Chart.yaml b/gitea-act-runner/Chart.yaml index f0cddb2..66b4f17 100644 --- a/gitea-act-runner/Chart.yaml +++ b/gitea-act-runner/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.5 +version: 0.1.6 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/gitea-act-runner/templates/persistentvolumeclaim.yaml b/gitea-act-runner/templates/persistentvolumeclaim.yaml index 6256edd..44ad8cc 100644 --- a/gitea-act-runner/templates/persistentvolumeclaim.yaml +++ b/gitea-act-runner/templates/persistentvolumeclaim.yaml @@ -2,7 +2,7 @@ kind: PersistentVolumeClaim apiVersion: v1 metadata: - name: {{ template "gitea-act-runner.fullname" . }} + name: {{ template "gitea-act-runner.fullname" . }}-data labels: app: {{ template "gitea-act-runner.name" . }} chart: {{ template "gitea-act-runner.chart" . }} diff --git a/gitea-act-runner/templates/statefulset.yaml b/gitea-act-runner/templates/statefulset.yaml index bef8827..9977549 100644 --- a/gitea-act-runner/templates/statefulset.yaml +++ b/gitea-act-runner/templates/statefulset.yaml @@ -88,8 +88,10 @@ spec: securityContext: privileged: true volumeMounts: - - name: docker-certs - mountPath: /certs + - name: gitea-act-runner-data + mountPath: /data + - name: docker-certs + mountPath: /certs resources: {{- toYaml .Values.resources | nindent 12 }} volumes: @@ -98,7 +100,7 @@ spec: - name: gitea-act-runner-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: - claimName: {{ .Values.persistence.existingClaim | default (include "gitea-act-runner.fullname" .) }} + claimName: {{ .Values.persistence.existingClaim | default (include "gitea-act-runner.fullname" .) }}-data {{- else }} emptyDir: {} {{- end }} diff --git a/gitea-act-runner/values.yaml b/gitea-act-runner/values.yaml index d0e1dde..ff5f551 100644 --- a/gitea-act-runner/values.yaml +++ b/gitea-act-runner/values.yaml @@ -68,6 +68,23 @@ configAsCode: # The parent directory of a job's working directory. # If it's empty, /workspace will be used. workdir_parent: + # Volumes (including bind mounts) can be mounted to containers. Glob syntax is supported, see https://github.com/gobwas/glob + # You can specify multiple volumes. If the sequence is empty, no volumes can be mounted. + # For example, if you only allow containers to mount the `data` volume and all the json files in `/src`, you should change the config to: + # valid_volumes: + # - data + # - /src/*.json + # If you want to allow any volume, please use the following configuration: + # valid_volumes: + # - '**' + valid_volumes: + - /data/containers + # overrides the docker client host with the specified one. + # If it's empty, act_runner will find an available docker host automatically. + # If it's "-", act_runner will find an available docker host automatically, but the docker host won't be mounted to the job containers and service containers. + # If it's not empty or "-", the specified docker host will be used. An error will be returned if it doesn't work. + docker_host: "" + serviceAccount: # Specifies whether a service account should be created