Skip to content

Document Engine: small fixes#129

Merged
lazyoldbear merged 5 commits intomasterfrom
fix/ingress-extra-document-separator
Mar 12, 2026
Merged

Document Engine: small fixes#129
lazyoldbear merged 5 commits intomasterfrom
fix/ingress-extra-document-separator

Conversation

@lazyoldbear
Copy link
Copy Markdown
Collaborator

The {{- (left-trim) on the semverCompare conditional was eating the newline after the --- document separator, producing the invalid token ---apiVersion: networking.k8s.io/v1. Removed the leading dash to preserve the newline.

The `{{-` (left-trim) on the semverCompare conditional was eating the
newline after the `---` document separator, producing the invalid token
`---apiVersion: networking.k8s.io/v1`. Removed the leading dash to
preserve the newline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lazyoldbear lazyoldbear self-assigned this Mar 12, 2026
@lazyoldbear
Copy link
Copy Markdown
Collaborator Author

Oh, come on.

Ingvarr Zhmakin and others added 4 commits March 12, 2026 23:16
- test-api-documents.yaml: DELETE used document_id=test instead of
  test-document-id-13, so the delete assertion was vacuously passing
- httproute-extra.yaml: added guard comment above the --- separator
  to prevent the same whitespace trimming bug as ingress-extra.yaml
- values.yaml: fixed typos (amd→and, spreadhseet→spreadsheet,
  doubled "will use"), reordered customTags annotations
- CLAUDE.md: added Pre-commit Checklist section with helm-docs and
  helm-schema reminders

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Helm's linter misparses `{{- /* ... */ }}` (trim-dash followed by
comment opener) as a broken action. Switched to a plain YAML comment.
Added Template Pitfalls section to CLAUDE.md documenting both the
document separator and template comment gotchas.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Go's template engine parses all {{ delimiters before YAML, so
even {{ inside a YAML comment is treated as a template action.
Rewrote the comment to avoid template syntax entirely. Added
this as a third pitfall in CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lazyoldbear lazyoldbear changed the title Fix invalid YAML document separator in ingress-extra.yaml Document Engine: small fixes Mar 12, 2026
@lazyoldbear lazyoldbear merged commit 773e556 into master Mar 12, 2026
2 checks passed
@lazyoldbear lazyoldbear deleted the fix/ingress-extra-document-separator branch March 12, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant