Skip to content

Commit

Permalink
add command and args
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnuttinck committed Dec 21, 2020
1 parent 30747a5 commit 2b036af
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ jobs:
environment:
- GITHUB_PAGES_REPO: cetic/helm-charts
- HELM_CHART: microservice
- HELM_VERSION: 3.2.4
- HELM_VERSION: 3.3.1
command: wget -O - https://gist.githubusercontent.com/alexnuttinck/2e9b8595e9a94ba3b3d00eea690e37ac/raw/9989a66c1de2eb4a8bce7c44ec5fbe1f43459762/publish.sh | sh
1 change: 1 addition & 0 deletions .helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@
*.tmproj

.circleci/
.github/
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
apiVersion: v2
name: microservice
version: 0.2.4
appVersion: 0.2.4
version: 0.2.5
appVersion: 0.2.5
description: A Helm chart which provide a DRY microservice deployment mechanism
keywords:
- microservice
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TBD

### Install the chart

Install the microseAboutrvice helm chart with a release name `my-release`:
Install the microservice helm chart with a release name `my-release`:

```bash
helm install my-release cetic/microservice
Expand Down
6 changes: 6 additions & 0 deletions templates/_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.command }}
command: {{ .Values.command }}
{{- end }}
{{- if .Values.args }}
args: {{ .Values.args }}
{{- end }}
ports:
{{- range .Values.services -}}
{{- range $port:= .specs}}
Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ image:
tag: "latest"
pullPolicy: IfNotPresent

#command: ["/bin/sh","-c"]
#args: ["echo 'consuming a message'; sleep 5"]

nameOverride: ""
fullnameOverride: ""

Expand Down

0 comments on commit 2b036af

Please sign in to comment.