Skip to content

Commit

Permalink
Fix incorrect format string template for extraConfig (%s -> %d)…
Browse files Browse the repository at this point in the history
… part 2 (#434)
  • Loading branch information
ps78674 authored Dec 6, 2024
1 parent 53026b0 commit 8ae7ad7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/netbox/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: netbox
version: 5.0.0-beta.156
version: 5.0.0-beta.157
appVersion: "v4.1.7"
type: application
kubeVersion: ^1.25.0-0
Expand Down
2 changes: 1 addition & 1 deletion charts/netbox/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Volume mounts for .Values.extraConfig entries
*/}}
{{- define "netbox.extraConfig.volumeMounts" -}}
{{- range $index, $config := .Values.extraConfig }}
- name: {{ printf "extra-config-%s" $index | quote }}
- name: {{ printf "extra-config-%d" $index | quote }}
mountPath: /run/config/extra/{{ $index }}
readOnly: true
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/netbox/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ data:

{{- range $index, $config := .Values.extraConfig }}
{{- if $config.values }}
{{ printf "extra-%s.yaml" $index }}: |-
{{ printf "extra-%d.yaml" $index }}: |-
{{- include "common.tplvalues.render" (dict "value" $config.values "context" $) | nindent 4 }}
{{- end }}
{{- end }}

0 comments on commit 8ae7ad7

Please sign in to comment.