forked from Gitea/helm-actions
feat(chart): make timezone configurable for the act_runner (#38)
Once: https://gitea.com/gitea/act_runner/pulls/738 Is merged. Then this can be applied to specify timezone for example for cases such as:  Right now the correct time has to be retrieved with a ENV variable in the cmd: `git commit -m "Update custom ISO: $(TZ=Europe/Amsterdam date +'%Y-%m-%d %H:%M')" || echo "No changes to commit"` Co-authored-by: Daan Selen <dselen@systemec.nl> Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/38 Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com> Co-authored-by: Daan Selen <dselen@nerthus.nl> Co-committed-by: Daan Selen <dselen@nerthus.nl>
This commit is contained in:
@@ -26,6 +26,7 @@ If `.Values.image.rootless: true`, then the following will occur. In case you us
|
|||||||
| `init.image.repository` | The image used for the init containers | `busybox` |
|
| `init.image.repository` | The image used for the init containers | `busybox` |
|
||||||
| `init.image.tag` | The image tag used for the init containers | `1.37.0` |
|
| `init.image.tag` | The image tag used for the init containers | `1.37.0` |
|
||||||
| `statefulset.replicas` | the amount of (replica) runner pods deployed | `1` |
|
| `statefulset.replicas` | the amount of (replica) runner pods deployed | `1` |
|
||||||
|
| `statefulset.timezone` | is the timezone that will be set in the act_runner image | `Etc/UTC` |
|
||||||
| `statefulset.annotations` | Act runner annotations | `{}` |
|
| `statefulset.annotations` | Act runner annotations | `{}` |
|
||||||
| `statefulset.labels` | Act runner labels | `{}` |
|
| `statefulset.labels` | Act runner labels | `{}` |
|
||||||
| `statefulset.resources` | Act runner resources | `{}` |
|
| `statefulset.resources` | Act runner resources | `{}` |
|
||||||
|
@@ -64,6 +64,8 @@ spec:
|
|||||||
value: {{ include "gitea.actions.local_root_url" . }}
|
value: {{ include "gitea.actions.local_root_url" . }}
|
||||||
- name: CONFIG_FILE
|
- name: CONFIG_FILE
|
||||||
value: /actrunner/config.yaml
|
value: /actrunner/config.yaml
|
||||||
|
- name: TZ
|
||||||
|
value: {{ .Values.statefulset.timezone | default "Etc/UTC" }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.statefulset.resources | nindent 12 }}
|
{{- toYaml .Values.statefulset.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
## @param init.image.repository The image used for the init containers
|
## @param init.image.repository The image used for the init containers
|
||||||
## @param init.image.tag The image tag used for the init containers
|
## @param init.image.tag The image tag used for the init containers
|
||||||
## @param statefulset.replicas the amount of (replica) runner pods deployed
|
## @param statefulset.replicas the amount of (replica) runner pods deployed
|
||||||
|
## @param statefulset.timezone is the timezone that will be set in the act_runner image
|
||||||
## @param statefulset.annotations Act runner annotations
|
## @param statefulset.annotations Act runner annotations
|
||||||
## @param statefulset.labels Act runner labels
|
## @param statefulset.labels Act runner labels
|
||||||
## @param statefulset.resources Act runner resources
|
## @param statefulset.resources Act runner resources
|
||||||
@@ -29,6 +30,7 @@
|
|||||||
enabled: false
|
enabled: false
|
||||||
statefulset:
|
statefulset:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
timezone: Etc/UTC
|
||||||
annotations: {}
|
annotations: {}
|
||||||
labels: {}
|
labels: {}
|
||||||
resources: {}
|
resources: {}
|
||||||
|
Reference in New Issue
Block a user