Skip to content
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: make reduce defaults strings in values.yaml #22

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading