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
…#428)

Co-authored-by: Léo Colombaro <LeoColomb@users.noreply.github.com>
  • Loading branch information
spantaleev and LeoColomb authored Dec 3, 2024
1 parent 28fd016 commit 02e1c18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.152
version: 5.0.0-beta.153
appVersion: "v4.1.7"
type: application
kubeVersion: ^1.25.0-0
Expand Down
6 changes: 3 additions & 3 deletions charts/netbox/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ Volumes that need to be mounted for .Values.extraConfig entries
*/}}
{{- define "netbox.extraConfig.volumes" -}}
{{- range $index, $config := .Values.extraConfig }}
- name: {{ printf "extra-config-%s" $index | quote }}
- name: {{ printf "extra-config-%d" $index | quote }}
{{- if $config.values }}
configMap:
name: {{ include "common.names.fullname" $ }}
items:
- key: extra-{{ $index }}.yaml
path: extra-{{ $index }}.yaml
- key: {{ printf "extra-%d.yaml" $index | quote }}
path: {{ printf "extra-%d.yaml" $index | quote }}
{{- else if $config.configMap }}
configMap:
{{- include "common.tplvalues.render" (dict "value" $config.configMap "context" $) | nindent 4 }}
Expand Down

0 comments on commit 02e1c18

Please sign in to comment.