Skip to content

Commit c41123b

Browse files
committed
feat(initContainers): introduce init containers to pods
1 parent 104e22a commit c41123b

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

java/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
description: Java Helm Chart
33
name: java
4-
version: 10.0.1
4+
version: 10.1.0
55
dependencies:
66
- name: libchart
7-
version: 4.0.1
7+
version: 4.1.0
88
repository: file://../libchart

java/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ image:
1414
# - secret1
1515
# - secret2
1616

17+
initContainers:
18+
- name: network-proxy
19+
image: network-proxy:1.0
20+
restartPolicy: Always
21+
1722
nameOverride: ""
1823
fullnameOverride: ""
1924

libchart/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: library
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 4.0.1
18+
version: 4.1.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

libchart/templates/_pod.tpl

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ imagePullSecrets:
88
serviceAccountName: {{ include "libchart.serviceAccountName" . }}
99
securityContext:
1010
{{- toYaml .Values.podSecurityContext | nindent 2 }}
11+
12+
{{- if .Values.initContainers }}
13+
initContainers:
14+
{{ toYaml .Values.initContainers | nindent 2 }}
15+
{{- end }}
16+
1117
containers:
1218
- name: {{ .Chart.Name }}
1319
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

libchart/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ image:
1515
# - secret1
1616
# - secret2
1717

18+
initContainers:
19+
- name: network-proxy
20+
image: network-proxy:1.0
21+
restartPolicy: Always
22+
1823
nameOverride: ""
1924
fullnameOverride: ""
2025

0 commit comments

Comments
 (0)