Skip to content

Commit 0e9533d

Browse files
committed
Adding shareProcessNamespace support
1 parent 9221959 commit 0e9533d

File tree

8 files changed

+58
-0
lines changed

8 files changed

+58
-0
lines changed

charts/cronjob-multi/templates/cronjob-multi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ spec:
4747
{{- end }}
4848
{{- end }}
4949
spec:
50+
51+
{{- if $toplevel.Values.shareProcessNamespace }}
52+
{{- if (eq $toplevel.Values.shareProcessNamespace true) }}
53+
shareProcessNamespace: true
54+
{{- end }}
55+
{{- end }}
56+
5057
# If we have a priority class set, set it here
5158
{{- if $toplevel.Values.priorityClassName }}
5259
priorityClassName: "{{ $toplevel.Values.priorityClassName }}"

charts/cronjob-multi/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ startingDeadlineSeconds: 600
6767
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
6868
priorityClassName: ""
6969

70+
# Share process namespace to allow sidecars to see each others processes. You can use this feature to configure
71+
# cooperating containers, such as a log handler sidecar container, or to troubleshoot container images that don't
72+
# include debugging utilities like a shell.
73+
#
74+
# NOTE/WARNING: Enabling this may break certain containers that expect/demand their main process to be process #1.
75+
# See: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
76+
shareProcessNamespace: false
77+
7078
# How many retries this cronjob will have by default
7179
backoffLimit: 0
7280

charts/cronjob/templates/cronjob.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ spec:
4040
{{- end }}
4141
{{- end }}
4242
spec:
43+
44+
{{- if .Values.shareProcessNamespace }}
45+
{{- if (eq .Values.shareProcessNamespace true) }}
46+
shareProcessNamespace: true
47+
{{- end }}
48+
{{- end }}
49+
4350
# If we have a priority class set, set it here
4451
{{- if .Values.priorityClassName }}
4552
priorityClassName: "{{ .Values.priorityClassName }}"

charts/cronjob/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ activeDeadlineSeconds: null
3030
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
3131
priorityClassName: ""
3232

33+
# Share process namespace to allow sidecars to see each others processes. You can use this feature to configure
34+
# cooperating containers, such as a log handler sidecar container, or to troubleshoot container images that don't
35+
# include debugging utilities like a shell.
36+
#
37+
# NOTE/WARNING: Enabling this may break certain containers that expect/demand their main process to be process #1.
38+
# See: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
39+
shareProcessNamespace: false
40+
3341
# How many retries this cronjob will have by default
3442
backoffLimit: 0
3543

charts/deployment/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ spec:
6262
{{- end }}
6363
spec:
6464

65+
{{- if .Values.shareProcessNamespace }}
66+
{{- if (eq .Values.shareProcessNamespace true) }}
67+
shareProcessNamespace: true
68+
{{- end }}
69+
{{- end }}
70+
6571
# If we have a hostname set, set it here
6672
{{- if .Values.hostname }}
6773
hostname: {{ with .Values.hostname }}{{ tpl . $ | quote }}{{- end }}

charts/deployment/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ revisionHistoryLimit: 10
1616
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
1717
priorityClassName: ""
1818

19+
# Share process namespace to allow sidecars to see each others processes. You can use this feature to configure
20+
# cooperating containers, such as a log handler sidecar container, or to troubleshoot container images that don't
21+
# include debugging utilities like a shell.
22+
#
23+
# NOTE/WARNING: Enabling this may break certain containers that expect/demand their main process to be process #1.
24+
# See: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
25+
shareProcessNamespace: false
26+
1927
# Image repository location (override if needed)
2028
image:
2129
# Which image to release (NOTE: ONLY SPECIFY IF YOU ARE DEPLOYING EXTERNALLY, eg from dockerhub)

charts/statefulset/templates/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ spec:
6262
{{- end }}
6363
spec:
6464

65+
{{- if .Values.shareProcessNamespace }}
66+
{{- if (eq .Values.shareProcessNamespace true) }}
67+
shareProcessNamespace: true
68+
{{- end }}
69+
{{- end }}
70+
6571
# If we have a hostname set, set it here
6672
{{- if .Values.hostname }}
6773
hostname: {{ with .Values.hostname }}{{ tpl . $ | quote }}{{- end }}

charts/statefulset/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ revisionHistoryLimit: 10
1616
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
1717
priorityClassName: ""
1818

19+
# Share process namespace to allow sidecars to see each others processes. You can use this feature to configure
20+
# cooperating containers, such as a log handler sidecar container, or to troubleshoot container images that don't
21+
# include debugging utilities like a shell.
22+
#
23+
# NOTE/WARNING: Enabling this may break certain containers that expect/demand their main process to be process #1.
24+
# See: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
25+
shareProcessNamespace: false
26+
1927
# Image repository location (override if needed)
2028
image:
2129
# Which image to release (NOTE: ONLY SPECIFY IF YOU ARE DEPLOYING EXTERNALLY, eg from dockerhub)

0 commit comments

Comments
 (0)