Skip to content

Commit

Permalink
Merge pull request #426 from hellofresh/patch/update-deployment
Browse files Browse the repository at this point in the history
add labels option to helm template
  • Loading branch information
Ashley Schuett authored Dec 16, 2019
2 parents 78c4e28 + aea53ab commit e15425c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions janus/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: {{ include "janus.fullname" . }}
labels:
{{ include "janus.labels" . | indent 4 }}
{{ .Values.deployment.labels | indent 4 }}
spec:
replicas: {{ .Values.deployment.replicaCount }}
selector:
Expand All @@ -13,6 +14,7 @@ spec:
template:
metadata:
labels:
{{ .Values.deployment.labels | indent 8 }}
app.kubernetes.io/name: {{ include "janus.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if or (.Values.deployment.podAnnotations) (.Values.deployment.PodAnnotations) }}
Expand Down
2 changes: 2 additions & 0 deletions janus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ deployment:
replicaCount: 2
minAvailable: 1
databaseDSN: "mongodb://janus-database:27017/janus"
labels:
app: janus
valuesFrom:
- name: POD_NAME
valueFrom:
Expand Down

0 comments on commit e15425c

Please sign in to comment.