Skip to content

Fix invalid JSON in disk-log-message-filelog.json and enforce config format#1318

Open
hakman wants to merge 1 commit into
kubernetes:masterfrom
hakman:fix-config-json-trailing-commas
Open

Fix invalid JSON in disk-log-message-filelog.json and enforce config format#1318
hakman wants to merge 1 commit into
kubernetes:masterfrom
hakman:fix-config-json-trailing-commas

Conversation

@hakman

@hakman hakman commented Jul 13, 2026

Copy link
Copy Markdown
Member

config/disk-log-message-filelog.json contained trailing commas and could not be parsed since it was added, so NPD would fail to start with it.

  • Fix the invalid JSON
  • Add a test that every shipped config/*.json parses (catches trailing commas, UTF-8 BOMs, syntax errors) and is in the canonical format (2-space indent, trailing newline), showing a diff on failure
  • Add make fmt-configs to rewrite nonconforming files in place (UPDATE_EXPECTED=y)
  • Normalize the existing config files to the canonical format (whitespace-only changes)

@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 13, 2026
@kubernetes-prow kubernetes-prow Bot requested a review from derekwaynecarr July 13, 2026 05:10
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot requested a review from klueska July 13, 2026 05:10
@kubernetes-prow kubernetes-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 13, 2026
@hakman hakman force-pushed the fix-config-json-trailing-commas branch from cef4e2d to c297b25 Compare July 13, 2026 14:26
@kubernetes-prow kubernetes-prow Bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 13, 2026
@hakman hakman force-pushed the fix-config-json-trailing-commas branch from c297b25 to 7b2d3e7 Compare July 13, 2026 14:27
@hakman hakman changed the title Fix invalid JSON in disk-log-message-filelog.json Fix invalid JSON in disk-log-message-filelog.json and enforce config format Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant