-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(logs): Changing the service name to metadata-logs to be provider independent #2610
Conversation
ddb0fda
to
0b395c4
Compare
0b395c4
to
1c53d10
Compare
1c53d10
to
a03cca7
Compare
@@ -3,6 +3,6 @@ kind: ConfigMap | |||
metadata: | |||
name: sumologic-configmap | |||
data: | |||
fluentdLogs: {{ template "sumologic.metadata.name.logs.service" . }} | |||
otelcolLogs: {{ template "sumologic.metadata.name.logs.service" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we name it logs
, metadataLogs
or logsMetadata
?
I always felt that using specific component name was bad decision
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, maybe I'll go for metadataLogs
@@ -412,15 +412,11 @@ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded | |||
{{- end -}} | |||
|
|||
{{- define "sumologic.metadata.name.logs" -}} | |||
{{- if eq .Values.sumologic.logs.metadata.provider "fluentd" -}} | |||
{{ template "sumologic.metadata.name.fluentd" . }}-logs | |||
{{- else if eq .Values.sumologic.logs.metadata.provider "otelcol" -}} | |||
{{ template "sumologic.metadata.name.otelcol" . }}-logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should leave statefulset names as they are. AFAIK, After this change we can end with fluentd statefulset named otelcol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what I was trying to do here was to use the otelcol
statefulset regardless of the provider. Is this not what is expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, I see what you mean, we can't change the name of a StatefulSet on upgrade. I'll change the default provider for logs and metrics to otelcol.
a03cca7
to
26af5b2
Compare
503964d
to
c10063f
Compare
58d6e02
to
531e187
Compare
531e187
to
814f738
Compare
814f738
to
a0d6963
Compare
b889b2b
to
b813bae
Compare
6a8bf41
to
452e29e
Compare
452e29e
to
cf4ef4f
Compare
Description
Checklist
Testing performed