diff --git a/Chart.lock b/Chart.lock new file mode 100644 index 0000000..d344c96 --- /dev/null +++ b/Chart.lock @@ -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" diff --git a/Chart.yaml b/Chart.yaml index a0b9574..2e6cf95 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -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 diff --git a/charts/common-2.2.2.tgz b/charts/common-2.2.2.tgz new file mode 100644 index 0000000..5b86fd8 Binary files /dev/null and b/charts/common-2.2.2.tgz differ diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 8163fed..51c2240 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -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 }} diff --git a/values.yaml b/values.yaml index 64e41a1..7c9f912 100644 --- a/values.yaml +++ b/values.yaml @@ -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