diff --git a/charts/woodpecker-agent/templates/deployment.yaml b/charts/woodpecker-agent/templates/deployment.yaml index a07c4459a..09baa8e83 100644 --- a/charts/woodpecker-agent/templates/deployment.yaml +++ b/charts/woodpecker-agent/templates/deployment.yaml @@ -57,12 +57,14 @@ spec: name: {{ . }} {{- end }} - name: dind - image: "docker:20.10.12-dind" + image: {{ .Values.dind.image }} env: - - name: DOCKER_DRIVER - value: overlay2 + {{- range $key, $value := .Values.dind.env }} + - name: {{ $key }} + value: {{ $value | quote }} + {{- end }} resources: - {{- toYaml .Values.resources | nindent 12 }} + {{- toYaml .Values.dind.resources | nindent 12 }} securityContext: privileged: true volumeMounts: diff --git a/charts/woodpecker-agent/values.yaml b/charts/woodpecker-agent/values.yaml index d4841d4b8..fa79704c5 100644 --- a/charts/woodpecker-agent/values.yaml +++ b/charts/woodpecker-agent/values.yaml @@ -7,6 +7,13 @@ image: # Overrides the image tag whose default is the chart appVersion. tag: "" +dind: + image: "docker:20.10.12-dind" + env: + - name: DOCKER_DRIVER + value: overlay2 + resources: {} + env: WOODPECKER_SERVER: "woodpecker-server..svc.cluster.local:9000"