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 incorrect format string template for extraConfig (%s -> %d) #428

Merged
merged 3 commits into from
Dec 3, 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/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
Loading