Skip to content

Commit

Permalink
feat: add sidecars
Browse files Browse the repository at this point in the history
  • Loading branch information
royki committed Feb 6, 2023
1 parent 0afaf64 commit cb21442
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 2.2.2
digest: sha256:49ca75cf23ba5eb7df4becef52580f98c8bd8194eb80368b9d7b875f6eefa8e5
generated: "2023-02-06T08:34:45.246108195-05:00"
6 changes: 6 additions & 0 deletions Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ version: 0.1.3
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
tags:
- bitnami-common
version: 2.x.x
Binary file added charts/common-2.2.2.tgz
Binary file not shown.
3 changes: 3 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.sidecars }}
{{- include "common.tplvalues.render" ( dict "value" .Values.sidecars "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.pvc.enabled }}
volumeMounts:
- mountPath: {{ .Values.pvc.mountPath }}
Expand Down
10 changes: 10 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,13 @@ affinity: {}

# -- Extra lables to be added to all resources
extraLabels: {}

sidecars: []
# e.g.
# sidecars:
# - name: your-image-name
# image: your-image
# imagePullPolicy: Always
# ports:
# - name: portname
# containerPort: 1234

0 comments on commit cb21442

Please sign in to comment.