Skip to content

Commit b619035

Browse files
committed
Fixed extraContainers
1 parent 136fdcf commit b619035

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

charts/sourcegraph/templates/cadvisor/cadvisor.DaemonSet.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ spec:
9494
- name: http
9595
containerPort: 48080
9696
protocol: TCP
97-
automountServiceAccountToken: false
98-
terminationGracePeriodSeconds: 30
9997
{{- if .Values.cadvisor.extraContainers }}
10098
{{- toYaml .Values.cadvisor.extraContainers | nindent 6 }}
10199
{{- end }}
100+
automountServiceAccountToken: false
101+
terminationGracePeriodSeconds: 30
102102
securityContext:
103103
{{- toYaml .Values.cadvisor.podSecurityContext | nindent 8 }}
104104
{{- include "sourcegraph.nodeSelector" (list . "cadvisor" ) | trim | nindent 6 }}

charts/sourcegraph/templates/codeintel-db/codeintel-db.StatefulSet.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
{{- toYaml .Values.alpine.resources | nindent 10 }}
5959
{{- end }}
6060
containers:
61-
- name: pgsql
61+
- name: pgsql # TODO: Evaluate renaming container to codeintel
6262
image: {{ include "sourcegraph.image" (list . "codeIntelDB") }}
6363
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
6464
{{- with .Values.codeIntelDB.args }}
@@ -108,9 +108,6 @@ spec:
108108
{{- if .Values.codeIntelDB.extraVolumeMounts }}
109109
{{- toYaml .Values.codeIntelDB.extraVolumeMounts | nindent 8 }}
110110
{{- end }}
111-
{{- if .Values.codeIntelDB.extraContainers }}
112-
{{- toYaml .Values.codeIntelDB.extraContainers | nindent 6 }}
113-
{{- end }}
114111
- name: pgsql-exporter
115112
env:
116113
{{- include "sourcegraph.dataSource" (list . "codeIntelDB" ) | nindent 8 }}
@@ -131,6 +128,9 @@ spec:
131128
securityContext:
132129
{{- toYaml .Values.postgresExporter.containerSecurityContext | nindent 10 }}
133130
terminationMessagePolicy: FallbackToLogsOnError
131+
{{- if .Values.codeIntelDB.extraContainers }}
132+
{{- toYaml .Values.codeIntelDB.extraContainers | nindent 6 }}
133+
{{- end }}
134134
terminationGracePeriodSeconds: 120
135135
securityContext:
136136
{{- toYaml .Values.codeIntelDB.podSecurityContext | nindent 8 }}

charts/sourcegraph/templates/node-exporter/node-exporter.DaemonSet.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ spec:
5858
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
5959
- --collector.netclass.ignored-devices=^(veth.*)$
6060
- --collector.netdev.device-exclude=^(veth.*)$
61-
{{- if .Values.nodeExporter.extraArgs }}
62-
{{ toYaml .Values.nodeExporter.extraArgs | indent 10 }}
63-
{{- end }}
61+
{{- if .Values.nodeExporter.extraArgs }}
62+
{{ toYaml .Values.nodeExporter.extraArgs }}
63+
{{- end }}
6464
env:
6565
{{- range $name, $item := .Values.nodeExporter.env}}
6666
- name: {{ $name }}
@@ -111,11 +111,11 @@ spec:
111111
successThreshold: 1
112112
timeoutSeconds: 1
113113
terminationMessagePolicy: FallbackToLogsOnError
114-
automountServiceAccountToken: false
115-
terminationGracePeriodSeconds: 30
116114
{{- if .Values.nodeExporter.extraContainers }}
117115
{{- toYaml .Values.nodeExporter.extraContainers | nindent 6 }}
118116
{{- end }}
117+
automountServiceAccountToken: false
118+
terminationGracePeriodSeconds: 30
119119
securityContext:
120120
{{- toYaml .Values.nodeExporter.podSecurityContext | nindent 8 }}
121121
{{- include "sourcegraph.nodeSelector" (list . "nodeExporter" ) | trim | nindent 6 }}

charts/sourcegraph/templates/prometheus/prometheus.Deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ spec:
8181
{{- end }}
8282
securityContext:
8383
{{- toYaml .Values.prometheus.containerSecurityContext | nindent 10 }}
84-
terminationGracePeriodSeconds: 120
8584
{{- if .Values.prometheus.extraContainers }}
8685
{{- toYaml .Values.prometheus.extraContainers | nindent 6 }}
8786
{{- end }}
87+
terminationGracePeriodSeconds: 120
8888
securityContext:
8989
{{- toYaml .Values.prometheus.podSecurityContext | nindent 8 }}
9090
{{- include "sourcegraph.nodeSelector" (list . "prometheus" ) | trim | nindent 6 }}

0 commit comments

Comments
 (0)