Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Support specifying image digest and container securityContext #95

Merged
merged 3 commits into from
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions charts/kafka-lag-exporter/templates/040-Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,21 @@ spec:
{{- end }}
containers:
- name: {{ .Chart.Name }}
{{- if .Values.image.digest }}
image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}"
{{- else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env: []
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 12 }}
{{- end }}
livenessProbe:
httpGet:
path: /
Expand Down
8 changes: 8 additions & 0 deletions charts/kafka-lag-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@ akkaLogLevel: DEBUG
image:
repository: lightbend/kafka-lag-exporter
tag: 0.5.5-SNAPSHOT
# If digest is set it will be used instead of tag to specify the image
# digest: sha256:0f6387aa011e6eb7952ea211ac139bf8613ad3ef6954a1a5d910676d293bd610
pullPolicy: Always
securityContext: {}
# allowPrivilegeEscalation: false
# runAsUser: 1001
# runAsNonRoot: true
# capabilities:
# drop: ["all"]
service:
type: ClusterIP
port: 8000
Expand Down