Skip to content

Commit

Permalink
Fix issue with only a single feature flag defined.
Browse files Browse the repository at this point in the history
- Ensure that the last item doesn't have a trailing comma.
- Update .gitignore to ignore test values for now
  • Loading branch information
mimartin12 committed Jun 21, 2024
1 parent bff9dff commit 2e0fbfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.cr-index
# Create a folder for placing user test files (Useful for the Dev Container)
values/*
test_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ data:
flags.json: |
{
"flagValues": {
{{- $first := true }}
{{- range $key, $value := .Values.featureFlags }}
"{{ $key }}": {{ $value | quote }},
{{- if not $first }},{{ end }}
"{{ $key }}": {{ $value | quote }}
{{- $first = false }}
{{- end }}
}
}
Expand Down

0 comments on commit 2e0fbfd

Please sign in to comment.