Skip to content

Drop key-ordering enforcement from .yamllint#140

Merged
weatherhog merged 1 commit into
mainfrom
drop-key-ordering
Jul 2, 2026
Merged

Drop key-ordering enforcement from .yamllint#140
weatherhog merged 1 commit into
mainfrom
drop-key-ordering

Conversation

@weatherhog

Copy link
Copy Markdown
Contributor

Summary

Phase 2 of giantswarm/roadmap#4121 — removes the alphabetical key-ordering rule from .yamllint.

That rule only ever existed to keep PR diffs readable, at the cost of forcing an unnatural key order on Kubernetes resources. Now that the yaml-diff bot posts clean semantic diffs on every PR (ignoring key reordering, verified over Phase 1), the restriction is no longer needed.

 rules:
-  key-ordering: {}
+rules: {}

key-ordering was the only rule this config enabled, so yamllint now enforces nothing (SOPS/.github/pre-commit ignores unchanged). This is a one-line revert if anything surprises us.

Closes #4121.

🤖 Generated with Claude Code

The alphabetical key-ordering rule only existed to keep PR diffs readable.
The yaml-diff bot (calling giantswarm/github-workflows yaml-diff.yaml) now
posts clean semantic diffs that ignore key reordering, so enforcing key
order is no longer necessary and is an unexpected restriction for users.

Closes giantswarm/roadmap#4121.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

No semantic YAML differences in changed source files. (Key reordering without value changes is ignored.)

Suppress with /no_diffs_printing on its own line in the PR body or as a comment.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Validation output log
yamllint: OK
kubeconform: OK

yamllint: OK
kubeconform: OK

yamllint: OK
kubeconform: OK

yamllint: OK
kubeconform: OK

yamllint: OK
kubeconform: OK

yamllint: OK
kubeconform: OK

yamllint: OK
kubeconform: OK

yamllint: OK
kubeconform: OK

yamllint: OK
kubeconform: OK


@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Rendered manifest diff output log

No diff detected

@weatherhog weatherhog merged commit f51228f into main Jul 2, 2026
9 checks passed
@weatherhog weatherhog deleted the drop-key-ordering branch July 2, 2026 14:49
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.

2 participants