Skip to content

Commit 85f3678

Browse files
committed
add postStartCommand option to gitlab
1 parent 7d65478 commit 85f3678

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

charts/gitlab-omnibus/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: gitlab-omnibus
33
description: |-
44
Helm chart to deploy [Omnibus Gitlab](https://docs.gitlab.com/omnibus/).
55
type: application
6-
version: 0.1.3
6+
version: 0.1.4
77
# https://hub.docker.com/r/gitlab/gitlab-ee/tags
88
appVersion: "15.2.1-ee.0"
99
home: https://github.com/slamdev/helm-charts/tree/master/charts/gitlab-omnibus

charts/gitlab-omnibus/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# gitlab-omnibus
22

3-
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 15.2.1-ee.0](https://img.shields.io/badge/AppVersion-15.2.1--ee.0-informational?style=flat-square)
3+
![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 15.2.1-ee.0](https://img.shields.io/badge/AppVersion-15.2.1--ee.0-informational?style=flat-square)
44

55
Helm chart to deploy [Omnibus Gitlab](https://docs.gitlab.com/omnibus/).
66

charts/gitlab-omnibus/templates/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ spec:
5555
httpGet:
5656
path: /-/readiness?token={{.Values.healthCheckToken}}
5757
port: http
58+
{{- end }}
59+
{{- if .Values.postStartCommand }}
60+
lifecycle:
61+
postStart:
62+
exec:
63+
command: {{ .Values.postStartCommand }}
5864
{{- end }}
5965
resources:
6066
{{- toYaml .Values.resources | nindent 12 }}

charts/gitlab-omnibus/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ envFrom: []
161161
# - configMapRef:
162162
# name: gitlab-cm
163163

164+
# postStartCommand -- command to execute in gitlab container after start
165+
postStartCommand: []
166+
# - /bin/bash
167+
# - -c
168+
# - echo Hello
169+
164170
# additionalResources -- list of additional resources to create (are processed via `tpl` function)
165171
additionalResources: []
166172
# - |

0 commit comments

Comments
 (0)