Skip to content

Commit

Permalink
fix: make reduce defaults strings in values.yaml (#22)
Browse files Browse the repository at this point in the history
This avoids them being treated as large floating point numbers and
rendering with scientific notation.

ref: LOG-19501
  • Loading branch information
aholmberg authored Mar 18, 2024
1 parent d993378 commit 40c968e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/edge/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ icon: https://app.mezmo.com/assets/img/mz-logo-square-128.png
description: A Helm chart for deploying Mezmo Edge
type: application
appVersion: "3.7.3"
version: 1.0.1
version: 1.0.2
maintainers:
- name: Mezmo
email: [email protected]
16 changes: 8 additions & 8 deletions charts/edge/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: MEZMO_API_HOST
value: "{{ .Values.mezmoApiHost }}"
value: {{ .Values.mezmoApiHost | quote }}
- name: MEZMO_API_SCHEME
value: "{{ .Values.mezmoApiScheme }}"
value: {{ .Values.mezmoApiScheme | quote }}
- name: MEZMO_LOCAL_DEPLOY_AUTH_TOKEN
valueFrom:
secretKeyRef:
Expand All @@ -73,9 +73,9 @@ spec:
- name: MEZMO_TASKS_POST_ENDPOINT_URL
value: "{{include "edge.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/tasks/:task_id/results"
- name: MEZMO_EDGE_ID
value: "{{include "edge.Id" . }}"
value: {{include "edge.Id" . | quote }}
- name: VECTOR_LOG
value: "{{ .Values.logLevel }}"
value: {{ .Values.logLevel | quote }}
- name: POD_NAME
valueFrom:
fieldRef:
Expand All @@ -94,16 +94,16 @@ spec:
value: "1"
{{- if .Values.maxDiskBufferBytes }}
- name: MEZMO_DISK_BUFFER_MAX_BYTES
value: "{{ .Values.maxDiskBufferBytes }}"
value: {{ .Values.maxDiskBufferBytes | quote }}
{{- end }}
{{- if .Values.maxMemBufferEvents }}
- name: MEZMO_MEM_BUFFER_MAX_EVENTS
value: "{{ .Values.maxMemBufferEvents }}"
value: {{ .Values.maxMemBufferEvents | quote }}
{{- end }}
- name: REDUCE_BYTE_THRESHOLD_PER_STATE
value: "{{ .Values.reduceByteThresholdPerState }}"
value: {{ .Values.reduceByteThresholdPerState | quote }}
- name: REDUCE_BYTE_THRESHOLD_ALL_STATES
value: "{{ .Values.reduceByteThresholdAllStates }}"
value: {{ .Values.reduceByteThresholdAllStates | quote }}
args:
- --config-dir
- /etc/vector/
Expand Down
6 changes: 4 additions & 2 deletions charts/edge/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,7 @@ pvcName: ""
maxDiskBufferBytes: 0
maxMemBufferEvents: 0

reduceByteThresholdPerState: 104857600
reduceByteThresholdAllStates: 1073741824
# defaults defined as strings to avoid helm treating
# as floats and rendering scientific notation
reduceByteThresholdPerState: "104857600"
reduceByteThresholdAllStates: "1073741824"

0 comments on commit 40c968e

Please sign in to comment.