Skip to content

Commit

Permalink
chore(otellogs): move adding imagePullSecrets to ServiceAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
kasia-kujawa committed Apr 14, 2023
1 parent a0a8129 commit 0cb180b
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .changelog/2984.fixed.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fix(otellogs): configure imagePullSecrets for otellogs daemonset
fix(otellogs): configure imagePullSecrets for otellogs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ spec:
{{- else }}
priorityClassName: {{ include "sumologic.metadata.name.priorityclass" $ctx | quote }}
{{- end }}
{{- if $.Values.sumologic.pullSecrets }}
imagePullSecrets:
{{ toYaml $.Values.sumologic.pullSecrets | indent 8 }}
{{- end }}
containers:
- args:
- --config=/etc/otelcol/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ metadata:
app: {{ template "sumologic.labels.app.logs.collector.serviceaccount" . }}
{{- include "sumologic.labels.common" . | nindent 4 }}
{{- end }}
{{- if .Values.sumologic.pullSecrets }}
imagePullSecrets:
{{ toYaml .Values.sumologic.pullSecrets | indent 2 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ sumologic:
collector:
otelcol:
enabled: true
pullSecrets:
- name: myRegistryKeySecretName

fluent-bit:
enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ spec:
runAsGroup: 0
runAsUser: 0
priorityClassName: "prio"
imagePullSecrets:
- name: myRegistryKeySecretName
containers:
- args:
- --config=/etc/otelcol/config.yaml
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Source: sumologic/templates/logs/collector/otelcol/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: RELEASE-NAME-sumologic-otelcol-logs-collector
labels:
app: RELEASE-NAME-sumologic-otelcol-logs-collector
chart: "sumologic-%CURRENT_CHART_VERSION%"
release: "RELEASE-NAME"
heritage: "Helm"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sumologic:
pullSecrets:
- name: myRegistryKeySecretName
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Source: sumologic/templates/logs/collector/otelcol/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: RELEASE-NAME-sumologic-otelcol-logs-collector
labels:
app: RELEASE-NAME-sumologic-otelcol-logs-collector
chart: "sumologic-%CURRENT_CHART_VERSION%"
release: "RELEASE-NAME"
heritage: "Helm"
imagePullSecrets:
- name: myRegistryKeySecretName

0 comments on commit 0cb180b

Please sign in to comment.