Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support to replace entrypoint command and args #36

Merged
merged 10 commits into from
Feb 22, 2023
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ For more information on configuring the HTTP component, refer to the [Benthos HT
| podAnnotations | Sets pod annotations | {} |
| podLabels | Sets pod labels | {} |
| podSecurityContext | Sets pod security context | {} |
| command | Replaces entrypoint command of bemthos docker | "" |
bhataprameya marked this conversation as resolved.
Show resolved Hide resolved
| args | Override default arguments passed with `command` | "" |
| securityContext | Sets security context | {} |
| service.type | Kubernetes service type | ClusterIP |
| service.ports | Kubernetes service ports | [] |
Expand Down
9 changes: 9 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.command }}
command:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.args }}
args:
{{- toYaml .Values.args | nindent 12 }}
{{- else }}
### For debugging only - enable to allow exec into container
# command: ["/bin/sh","-c","sleep 300"]
args:
Expand All @@ -52,6 +60,7 @@ spec:
{{- end }}
- /streams/*.yaml
{{- end }}
{{- end }}
ports:
- name: http
containerPort: 4195
Expand Down
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ http:
# Create a secret of type `kubernetes.io/tls` in the same namespace and add the name here
# secretName: ""

# command -- Command replces the entrypoint command of the docker
bhataprameya marked this conversation as resolved.
Show resolved Hide resolved
command: []

# args -- Override Benthos's default arguments passed with command.
args: []

# EXPERIMENTAL: watch config files for changes and automatically apply them
watch: false

Expand Down