Skip to content

Commit

Permalink
Merge pull request #250 from klihub/fixes/helm-force-integer-plugin-i…
Browse files Browse the repository at this point in the history
…ndices

helm: add workaround for Helm int/float snafu.
fmuyassarov authored Jan 29, 2024
2 parents 8ca6a0d + 18cf5bf commit 9011f56
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deployment/helm/balloons/templates/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ spec:
- -metrics-interval
- 5s
- --nri-plugin-index
- "{{ printf "%02d" .Values.nri.pluginIndex }}"
- "{{ .Values.nri.pluginIndex | int | printf "%02d" }}"
{{- if .Values.configGroupLabel }}
- --config-group-label
- {{ .Values.configGroupLabel }}
2 changes: 1 addition & 1 deletion deployment/helm/memory-qos/templates/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ spec:
command:
- nri-memory-qos
- --idx
- "{{ printf "%02d" .Values.nri.pluginIndex }}"
- "{{ .Values.nri.pluginIndex | int | printf "%02d" }}"
- --config
- /etc/nri/memory-qos/config.yaml
- -v
2 changes: 1 addition & 1 deletion deployment/helm/memtierd/templates/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ spec:
command:
- nri-memtierd
- --idx
- "{{ printf "%02d" .Values.nri.pluginIndex }}"
- "{{ .Values.nri.pluginIndex | int | printf "%02d" }}"
- --config
- /etc/nri/memtierd/config.yaml
{{- if .Values.outputDir }}
2 changes: 1 addition & 1 deletion deployment/helm/sgx-epc/templates/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ spec:
command:
- nri-sgx-epc
- --idx
- "{{ printf "%02d" .Values.nri.pluginIndex }}"
- "{{ .Values.nri.pluginIndex | int | printf "%02d" }}"
image: {{ .Values.image.name }}:{{ .Values.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
2 changes: 1 addition & 1 deletion deployment/helm/template/templates/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ spec:
- -metrics-interval
- 5s
- --nri-plugin-index
- "{{ printf "%02d" .Values.nri.pluginIndex }}"
- "{{ .Values.nri.pluginIndex | int | printf "%02d" }}"
{{- if .Values.configGroupLabel }}
- --config-group-label
- {{ .Values.configGroupLabel }}
2 changes: 1 addition & 1 deletion deployment/helm/topology-aware/templates/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ spec:
- -metrics-interval
- 5s
- --nri-plugin-index
- "{{ printf "%02d" .Values.nri.pluginIndex }}"
- "{{ .Values.nri.pluginIndex | int | printf "%02d" }}"
{{- if .Values.configGroupLabel }}
- --config-group-label
- {{ .Values.configGroupLabel }}

0 comments on commit 9011f56

Please sign in to comment.